audioInputExample.qbs 2.6 KB

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