aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/protobuf/addressbook_nanopb.qbs
blob: 92243d31ff60358facf2f0812832dc3d1c4251e1 (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
CppApplication {
    condition: {
        var result = qbs.targetPlatform === qbs.hostPlatform;
        if (!result)
            console.info("targetPlatform differs from hostPlatform");
        return result && hasProtobuf;
    }
    name: "addressbook_nanopb"
    consoleApplication: true

    Depends { name: "cpp" }
    cpp.cxxLanguageVersion: "c++11"
    cpp.minimumMacosVersion: "10.8"

    Depends { name: "protobuf.nanopb"; required: false }
    property bool hasProtobuf: {
        console.info("has protobuf: " + protobuf.nanopb.present);
        return protobuf.nanopb.present;
    }
    protobuf.nanopb.importPaths: product.sourceDirectory

    files: [
        "addressbook_nanopb.proto",
        "addressbook_nanopb.options",
        "main_nanopb.cpp",
    ]
}