Tree.qbs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import qbs
  2. import qbs.Process
  3. import qbs.File
  4. import qbs.FileInfo
  5. import qbs.TextFile
  6. import "../../../libs/openFrameworksCompiled/project/qtcreator/ofApp.qbs" as ofApp
  7. Project{
  8. property string of_root: "../../.."
  9. ofApp {
  10. name: { return FileInfo.baseName(sourceDirectory) }
  11. files: [
  12. 'src/main.cpp',
  13. 'src/ofApp.cpp',
  14. 'src/ofApp.h',
  15. ]
  16. of.addons: [
  17. ]
  18. // additional flags for the project. the of module sets some
  19. // flags by default to add the core libraries, search paths...
  20. // this flags can be augmented through the following properties:
  21. of.pkgConfigs: [] // list of additional system pkgs to include
  22. of.includePaths: [] // include search paths
  23. of.cFlags: [] // flags passed to the c compiler
  24. of.cxxFlags: [] // flags passed to the c++ compiler
  25. of.linkerFlags: [] // flags passed to the linker
  26. of.defines: [] // defines are passed as -D to the compiler
  27. // and can be checked with #ifdef or #if in the code
  28. of.frameworks: [] // osx only, additional frameworks to link with the project
  29. of.staticLibraries: [] // static libraries
  30. of.dynamicLibraries: [] // dynamic libraries
  31. // other flags can be set through the cpp module: http://doc.qt.io/qbs/cpp-module.html
  32. // eg: this will enable ccache when compiling
  33. //
  34. // cpp.compilerWrapper: 'ccache'
  35. Depends{
  36. name: "cpp"
  37. }
  38. // common rules that parse the include search paths, core libraries...
  39. Depends{
  40. name: "of"
  41. }
  42. // dependency with the OF library
  43. Depends{
  44. name: "openFrameworks"
  45. }
  46. }
  47. property bool makeOF: true // use makfiles to compile the OF library
  48. // will compile OF only once for all your projects
  49. // otherwise compiled per project with qbs
  50. property bool precompileOfMain: false // precompile ofMain.h
  51. // faster to recompile when including ofMain.h
  52. // but might use a lot of space per project
  53. references: [FileInfo.joinPaths(of_root, "/libs/openFrameworksCompiled/project/qtcreator/openFrameworks.qbs")]
  54. }