diff options
| author | tim <tim@eclectronics.org> | 2017-03-21 22:10:44 +0000 |
|---|---|---|
| committer | tim <tim@eclectronics.org> | 2017-03-21 22:10:44 +0000 |
| commit | d96c5943f817e63be4a3edb6ed3dfd33b919bd7a (patch) | |
| tree | 15ad2ca6f22decff78b252aede937092a1dac0e4 /menuApp/menuApp.qbs | |
initial commit
Diffstat (limited to 'menuApp/menuApp.qbs')
| -rw-r--r-- | menuApp/menuApp.qbs | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/menuApp/menuApp.qbs b/menuApp/menuApp.qbs new file mode 100644 index 0000000..3437176 --- /dev/null +++ b/menuApp/menuApp.qbs @@ -0,0 +1,55 @@ +import qbs +import qbs.Process +import qbs.File +import qbs.FileInfo +import qbs.TextFile +import "../../../libs/openFrameworksCompiled/project/qtcreator/ofApp.qbs" as ofApp + +Project{ + property string of_root: "../../.." + + ofApp { + name: { return FileInfo.baseName(path) } + + files: [ + 'src/main.cpp', + 'src/ofApp.cpp', + 'src/ofApp.h', + ] + + of.addons: [ + ] + + // additional flags for the project. the of module sets some + // flags by default to add the core libraries, search paths... + // this flags can be augmented through the following properties: + of.pkgConfigs: [] // list of additional system pkgs to include + of.includePaths: [] // include search paths + of.cFlags: [] // flags passed to the c compiler + of.cxxFlags: [] // flags passed to the c++ compiler + of.linkerFlags: [] // flags passed to the linker + of.defines: [] // defines are passed as -D to the compiler + // and can be checked with #ifdef or #if in the code + + // other flags can be set through the cpp module: http://doc.qt.io/qbs/cpp-module.html + // eg: this will enable ccache when compiling + // + // cpp.compilerWrapper: 'ccache' + + Depends{ + name: "cpp" + } + + // common rules that parse the include search paths, core libraries... + Depends{ + name: "of" + } + + // dependency with the OF library + Depends{ + name: "openFrameworks" + } + } + + references: [FileInfo.joinPaths(of_root, "/libs/openFrameworksCompiled/project/qtcreator/openFrameworks.qbs")] +} |
