framework2
58 строк · 1.8 Кб
1import qbs
2import qbs.Process
3import qbs.File
4import qbs.FileInfo
5import qbs.TextFile
6import "../../../libs/openFrameworksCompiled/project/qtcreator/ofApp.qbs" as ofApp
7
8Project{
9property string of_root: "../../.."
10
11ofApp {
12name: { return FileInfo.baseName(path) }
13
14files: [
15'src/main.cpp',
16'src/ofApp.cpp',
17'src/ofApp.h',
18'src/testApp.cpp',
19'src/testApp.h',
20]
21
22of.addons: [
23'ofxPostProcessing',
24]
25
26// additional flags for the project. the of module sets some
27// flags by default to add the core libraries, search paths...
28// this flags can be augmented through the following properties:
29of.pkgConfigs: [] // list of additional system pkgs to include
30of.includePaths: [] // include search paths
31of.cFlags: [] // flags passed to the c compiler
32of.cxxFlags: [] // flags passed to the c++ compiler
33of.linkerFlags: [] // flags passed to the linker
34of.defines: [] // defines are passed as -D to the compiler
35// and can be checked with #ifdef or #if in the code
36
37// other flags can be set through the cpp module: http://doc.qt.io/qbs/cpp-module.html
38// eg: this will enable ccache when compiling
39//
40// cpp.compilerWrapper: 'ccache'
41
42Depends{
43name: "cpp"
44}
45
46// common rules that parse the include search paths, core libraries...
47Depends{
48name: "of"
49}
50
51// dependency with the OF library
52Depends{
53name: "openFrameworks"
54}
55}
56
57references: [FileInfo.joinPaths(of_root, "/libs/openFrameworksCompiled/project/qtcreator/openFrameworks.qbs")]
58}
59