blob: 56ad8fc78b1a73ed4f1ab042ec27f80113b7cdc2 (
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
|
import qbs 1.0
import qbs.TextFile
Product {
name: "blubb_header"
type: "hpp"
files: "blubb_header.h.in"
property string blubbProp: project.blubbProp
Transformer {
Artifact {
fileName: "blubb_header.h"
fileTags: "hpp"
}
prepare: {
var cmd = new JavaScriptCommand();
cmd.description = "generating blubb_header.h";
cmd.highlight = "codegen";
cmd.blubbProp = product.blubbProp;
cmd.sourceCode = function() {
file = new TextFile(output.filePath, TextFile.WriteOnly);
file.truncate();
file.write("#define BLUBB_PROP " + blubbProp);
file.close();
}
return cmd;
}
}
Export {
Depends { name: "cpp" }
cpp.includePaths: product.buildDirectory
}
}
|