blob: 6b538411056025ecb7d15f39f0765d2bfb5f97bc (
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.base 1.0
import qbs.fileinfo 1.0 as FileInfo
import '../QtModule.qbs' as QtModule
QtModule {
qtModuleName: "Gui"
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(product.module.binPath + '/uic', [input.fileName, '-o', output.fileName])
cmd.description = 'uic ' + FileInfo.fileName(input.fileName);
cmd.highlight = 'codegen';
return cmd;
}
}
}
|