aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/separate-debug-info/separate-debug-info.qbs
blob: 0b16d198424b42b3ae5ae475c13006fef04e53fe (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
Project {
    CppApplication {
        name: "app1"
        type: ["application"]
        files: ["main.cpp"]
        cpp.separateDebugInformation: true

        Probe {
            id: osProbe
            property stringList targetOS: qbs.targetOS
            configure: {
                console.info("is windows: " + (targetOS.contains("windows") ? "yes" : "no"));
                console.info("is darwin: " + (targetOS.contains("darwin") ? "yes" : "no"));
            }
        }
    }
    DynamicLibrary {
        Depends { name: "cpp" }
        name: "foo1"
        type: ["dynamiclibrary"]
        files: ["foo.cpp"]
        cpp.separateDebugInformation: true
    }
    LoadableModule {
        Depends { name: "cpp" }
        name: "bar1"
        files: ["foo.cpp"]
        cpp.separateDebugInformation: true
    }

    CppApplication {
        name: "app2"
        type: ["application"]
        files: ["main.cpp"]
        cpp.separateDebugInformation: false
    }
    DynamicLibrary {
        Depends { name: "cpp" }
        name: "foo2"
        type: ["dynamiclibrary"]
        files: ["foo.cpp"]
        cpp.separateDebugInformation: false
    }
    LoadableModule {
        Depends { name: "cpp" }
        name: "bar2"
        files: ["foo.cpp"]
        cpp.separateDebugInformation: false
    }

    CppApplication {
        name: "app3"
        type: ["application"]
        files: ["main.cpp"]
        cpp.separateDebugInformation: true
        Properties {
            condition: qbs.targetOS.contains("darwin")
            cpp.dsymutilFlags: ["--flat"]
        }
    }
    DynamicLibrary {
        Depends { name: "cpp" }
        name: "foo3"
        type: ["dynamiclibrary"]
        files: ["foo.cpp"]
        cpp.separateDebugInformation: true
        Properties {
            condition: qbs.targetOS.contains("darwin")
            cpp.dsymutilFlags: ["--flat"]
        }
    }
    LoadableModule {
        Depends { name: "cpp" }
        name: "bar3"
        files: ["foo.cpp"]
        cpp.separateDebugInformation: true
        Properties {
            condition: qbs.targetOS.contains("darwin")
            cpp.dsymutilFlags: ["--flat"]
        }
    }

    CppApplication {
        name: "app4"
        type: ["application"]
        files: ["main.cpp"]
        consoleApplication: true
        cpp.separateDebugInformation: true
    }
    DynamicLibrary {
        Depends { name: "cpp" }
        name: "foo4"
        type: ["dynamiclibrary"]
        files: ["foo.cpp"]
        Properties {
            condition: qbs.targetOS.contains("darwin")
            bundle.isBundle: false
        }
        cpp.separateDebugInformation: true
    }
    LoadableModule {
        Depends { name: "cpp" }
        name: "bar4"
        files: ["foo.cpp"]
        Properties {
            condition: qbs.targetOS.contains("darwin")
            bundle.isBundle: false
        }
        cpp.separateDebugInformation: true
    }

    CppApplication {
        name: "app5"
        type: ["application"]
        files: ["main.cpp"]
        Properties {
            condition: qbs.targetOS.contains("darwin")
            bundle.isBundle: false
        }
        cpp.separateDebugInformation: true
        Properties {
            condition: qbs.targetOS.contains("darwin")
            cpp.dsymutilFlags: ["--flat"]
        }
    }
    DynamicLibrary {
        Depends { name: "cpp" }
        name: "foo5"
        type: ["dynamiclibrary"]
        files: ["foo.cpp"]
        Properties {
            condition: qbs.targetOS.contains("darwin")
            bundle.isBundle: false
        }
        cpp.separateDebugInformation: true
        Properties {
            condition: qbs.targetOS.contains("darwin")
            cpp.dsymutilFlags: ["--flat"]
        }
    }
    LoadableModule {
        Depends { name: "cpp" }
        name: "bar5"
        files: ["foo.cpp"]
        Properties {
            condition: qbs.targetOS.contains("darwin")
            bundle.isBundle: false
        }
        cpp.separateDebugInformation: true
        Properties {
            condition: qbs.targetOS.contains("darwin")
            cpp.dsymutilFlags: ["--flat"]
        }
    }
}