blob: 6aaca4dd85a86a59b8463b2bc1d254ff149046c9 (
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
|
import qbs 1.0
import qbs.FileInfo
import '../QtModule.qbs' as QtModule
import '../../utils.js' as ModUtils
QtModule {
qtModuleName: "Gui"
property string uicName: "uic"
FileTagger {
pattern: "*.ui"
fileTags: ["ui"]
}
Rule {
inputs: ["ui"]
Artifact {
// ### TODO we want to access the module's property "Qt.core.generatedFilesDir" here. But without evaluating all available properties a priori.
fileName: 'GeneratedFiles/' + product.name + '/ui_' + input.completeBaseName + '.h'
fileTags: ["hpp"]
}
prepare: {
var cmd = new Command(ModUtils.moduleProperty(product, "binPath") + '/'
+ ModUtils.moduleProperty(product, "uicName"),
[input.fileName, '-o', output.fileName])
cmd.description = 'uic ' + FileInfo.fileName(input.fileName);
cmd.highlight = 'codegen';
return cmd;
}
}
Properties {
condition: Qt.core.staticBuild && qbs.targetOS.contains("ios")
cpp.frameworks: base.concat(["UIKit", "QuartzCore", "CoreText", "CoreGraphics",
"Foundation", "CoreFoundation"])
}
cpp.frameworks: base
}
|