blob: a1da4f5df3ea1eaf782a31a3068b40d95a1d88ac (
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 1.0
QtcTool {
name: "sdktool"
Depends { name: "Qt.core" }
Depends { name: "app_version_header" }
Depends { name: "Qt.testlib"; condition: project.withAutotests }
Depends { name: "sdktoolLib" }
cpp.defines: base.concat([
"UTILS_LIBRARY",
qbs.targetOS.contains("macos")
? 'DATA_PATH="."'
: qbs.targetOS.contains("windows") ? 'DATA_PATH="../share/qtcreator"'
: 'DATA_PATH="../../share/qtcreator"'
])
cpp.dynamicLibraries: {
if (qbs.targetOS.contains("windows"))
return ["user32", "shell32"]
}
Properties {
condition: qbs.targetOS.contains("macos")
cpp.frameworks: ["Foundation"]
}
files: [
"main.cpp",
]
}
|