aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/dynamic-library-in-module/theapp.qbs
blob: 26b3f2cab01533543e3b43ccb88692881bdcbdae (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
34
35
36
37
Project {
    CppApplication {
        condition: {
            var result = qbs.targetPlatform === qbs.hostPlatform;
            if (!result)
                console.info("targetPlatform differs from hostPlatform");
            return result;
        }
        name: "theapp"
        cpp.minimumMacosVersion: "10.7" // For -rpath
        Depends { name: "theotherlib" }
        Depends { name: "thethirdlib" }
        Depends { name: "thefourthlib" }
        Depends { name: "staticlib" }
        files: "main.cpp"
        Group {
            fileTagsFilter: "dynamiclibrary"
            qbs.install: true
            qbs.installSourceBase: buildDirectory
        }
    }
    Dll {
        name: "thefourthlib"
        Depends { name: "thelib" }
        files: "lib4.cpp"
        Export {
            Depends { name: "cpp" }
            cpp.rpaths: [qbs.installRoot]
        }
    }
    StaticLibrary {
        name: "staticlib"
        Depends { name: "cpp" }
        Depends { name: "theotherlib" }
        files: "lib5.cpp"
    }
}