aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/grpc/grpc_cpp.qbs
blob: a7debfa076242c9273ad73e4dd8df60ab9baf19a (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
31
32
33
import qbs.Host

CppApplication {
    name: "grpc_cpp"
    consoleApplication: true
    condition: {
        var result = qbs.targetPlatform === Host.platform();
        if (!result)
            console.info("targetPlatform differs from hostPlatform");
        return result && hasDependencies;
    }

    Depends { name: "cpp" }
    cpp.cxxLanguageVersion: "c++14"
    cpp.minimumMacosVersion: "10.8"
    cpp.warningLevel: "none"

    Depends { name: "protobuf.cpp"; required: false }
    protobuf.cpp.useGrpc: true

    property bool hasDependencies: {
        console.info("has grpc: " + protobuf.cpp.present);
        console.info("has modules: " + grpcpp.present);
        return protobuf.cpp.present;
    }

    files: "grpc.cpp"

    Group {
        files: "grpc.proto"
        fileTags: "protobuf.grpc"
    }
}