Advertisement
Guest User

Untitled

a guest
May 24th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. import qbs
  2.  
  3. Project {
  4.  
  5. minimumQbsVersion: "1.7"
  6.  
  7. Product {
  8. Depends { name: "cpp" }
  9. property bool haveFeature1: true
  10. property bool haveFeature2: true
  11. property pathList myIncludes: {
  12. var arr = [];
  13. if (haveFeature1) {
  14. arr.push("includes/feature1");
  15. }
  16. if (haveFeature2) {
  17. arr.push("includes/feature2");
  18. }
  19. return arr;
  20. }
  21.  
  22. type: "staticlibrary"
  23. name: "ex"
  24. id: ex
  25. cpp.includePaths: myIncludes
  26. }
  27.  
  28. CppApplication {
  29.  
  30. name: "myapp"
  31.  
  32. Depends { name: "ex" }
  33.  
  34. consoleApplication: true
  35. files: "main.cpp"
  36.  
  37. cpp.includePaths: [ "hello", "world" ].concat(ex.myIncludes)
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement