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
|
import qbs 1.0
QtcTool {
name: "sdktool"
Depends { name: "Qt.core" }
Depends { name: "app_version_header" }
property string libsDir: path + "/../../libs"
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"]
}
cpp.includePaths: base.concat([libsDir])
files: [
"addabiflavor.cpp", "addabiflavor.h",
"addcmakeoperation.cpp", "addcmakeoperation.h",
"adddebuggeroperation.cpp", "adddebuggeroperation.h",
"adddeviceoperation.cpp", "adddeviceoperation.h",
"addkeysoperation.cpp",
"addkeysoperation.h",
"addkitoperation.cpp",
"addkitoperation.h",
"addqtoperation.cpp",
"addqtoperation.h",
"addtoolchainoperation.cpp",
"addtoolchainoperation.h",
"findkeyoperation.cpp",
"findkeyoperation.h",
"findvalueoperation.cpp",
"findvalueoperation.h",
"getoperation.cpp",
"getoperation.h",
"main.cpp",
"operation.cpp",
"operation.h",
"rmcmakeoperation.cpp", "rmcmakeoperation.h",
"rmdebuggeroperation.cpp", "rmdebuggeroperation.h",
"rmdeviceoperation.cpp", "rmdeviceoperation.h",
"rmkeysoperation.cpp",
"rmkeysoperation.h",
"rmkitoperation.cpp",
"rmkitoperation.h",
"rmqtoperation.cpp",
"rmqtoperation.h",
"rmtoolchainoperation.cpp",
"rmtoolchainoperation.h",
"settings.cpp",
"settings.h",
]
Group {
name: "Utils"
prefix: libsDir + "/utils/"
files: [
"environment.cpp", "environment.h",
"fileutils.cpp", "fileutils.h",
"hostosinfo.cpp", "hostosinfo.h",
"persistentsettings.cpp", "persistentsettings.h",
"qtcassert.cpp", "qtcassert.h",
"qtcprocess.cpp", "qtcprocess.h",
"savefile.cpp", "savefile.h"
]
}
Group {
name: "Utils/macOS"
condition: qbs.targetOS.contains("macos")
prefix: libsDir + "/utils/"
files: [
"fileutils_mac.h",
"fileutils_mac.mm",
]
}
}
|