blob: 07be566cb59caf47ed9acf0b0a73862cf7314f4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
import qbs.Host
CppApplication {
condition: {
var result = qbs.targetPlatform === Host.platform();
if (!result)
console.info("targetPlatform differs from hostPlatform");
return result && hasProtobuf;
}
name: "app"
consoleApplication: true
property path theImportDir
protobuf.cpp.importPaths: (theImportDir ? [theImportDir] : []).concat([sourceDirectory])
cpp.minimumMacosVersion: "10.8"
Depends { name: "protobuf.cpp"; required: false }
property bool hasProtobuf: {
console.info("has protobuf: " + protobuf.cpp.present);
console.info("has modules: " + protobuflib.present);
return protobuf.cpp.present;
}
files: [
"needs-import-dir.proto",
"needs-import-dir-main.cpp",
"subdir/myenum.proto",
]
}
|