blob: 8aef7b9b6cedd908bc0bc03bbcba775c1c292dc4 (
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
Project {
Product {
name: "p1"
type: "p1"
Rule {
alwaysRun: true
multiplex: true
Artifact {
fileTags: "p1"
filePath: "p1-dummy"
}
prepare: {
var cmd = new JavaScriptCommand();
cmd.description = "generating " + output.fileName;
cmd.sourceCode = function() {};
return cmd;
}
}
}
Product {
name: "p2"
type: "p2"
Depends { name: "p1" }
Rule {
requiresInputs: false
multiplex: true
inputsFromDependencies: "p1"
Artifact {
fileTags: "p2"
filePath: "p2-dummy"
}
prepare: {
var cmd = new JavaScriptCommand();
cmd.description = "generating " + output.fileName;
cmd.sourceCode = function() {};
return cmd;
}
}
}
}
|