Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import qbs
- Project {
- minimumQbsVersion: "1.7"
- Product {
- Depends { name: "cpp" }
- property bool haveFeature1: true
- property bool haveFeature2: true
- property pathList myIncludes: {
- var arr = [];
- if (haveFeature1) {
- arr.push("includes/feature1");
- }
- if (haveFeature2) {
- arr.push("includes/feature2");
- }
- return arr;
- }
- type: "staticlibrary"
- name: "ex"
- id: ex
- cpp.includePaths: myIncludes
- }
- CppApplication {
- name: "myapp"
- Depends { name: "ex" }
- consoleApplication: true
- files: "main.cpp"
- cpp.includePaths: [ "hello", "world" ].concat(ex.myIncludes)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement