blob: cc1b7b2a26a8b74f7fb6fc02a2a1ce34acf1d04a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import qbs 1.0
Project {
Application {
name: {
if (!(dummy.cFlags instanceof Array))
throw new Error("dummy.cFlags: Array type expected.");
if (!(dummy.cxxFlags instanceof Array))
throw new Error("dummy.cxxFlags: Array type expected.");
if (!(dummy.defines instanceof Array))
throw new Error("dummy.defines: Array type expected.");
return "product1";
}
Depends { name: "dummy" }
// dummy.cxxFlags is set via profile and is not overridden
dummy.defines: ["IN_FILE"] // set in profile, overridden in file
dummy.cFlags: ["IN_FILE"] // set in profile, overridden on command line
}
}
|