This repository has been archived by the owner on Oct 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
karmaMapper.qbs
308 lines (274 loc) · 12.6 KB
/
karmaMapper.qbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
import qbs
import qbs.Process
import qbs.File
import qbs.FileInfo
import qbs.TextFile
//import qbs.base 1.0
import "../../../libs/openFrameworksCompiled/project/qtcreator/ofApp.qbs" as ofApp
Project{
property string of_root: '../../..'
ofApp {
name: { return FileInfo.baseName(path) }
//cpp.minimumMacosVersion: "10.9"
cpp.minimumOsxVersion: "10.9"
//cpp.includePaths: of.cpp.includePaths.concat(Helpers.listDirsRecursive(project.sourceDirectory + '/src'))
files: [
'src/main.cpp',
'src/ofApp.cpp',
'src/ofApp.h',
'src/KMSettings.h',
'src/ofAppEditor.cpp',
'src/ofAppEditor.h',
// CORE
'src/core/animationController.cpp',
'src/core/animationController.h',
'src/core/karmaConsole.cpp',
'src/core/karmaConsole.h',
'src/core/karmaFboLayer.h',
'src/core/karmaUtilities.h',
// MODULES (CORE)
'src/modules/karmaModule.cpp',
'src/modules/karmaModule.h',
'src/modules/singletonModule.cpp',
'src/modules/singletonModule.h',
'src/modules/moduleFactory.cpp',
'src/modules/moduleFactory.h',
// MODULES
'src/modules/fboRecorder/fboRecorder.cpp',
'src/modules/fboRecorder/fboRecorder.h',
'src/modules/soundAnalyser/karmaSoundAnalyser.cpp',
'src/modules/soundAnalyser/karmaSoundAnalyser.h',
'src/modules/mirOSC/mirEvents.h',
'src/modules/mirOSC/mirReceiver.cpp',
'src/modules/mirOSC/mirReceiver.h',
'src/modules/durationOSC/durationEvents.h',
'src/modules/durationOSC/durationReceiver.cpp',
'src/modules/durationOSC/durationReceiver.h',
'src/modules/durationOSC/durationRC.cpp',
'src/modules/durationOSC/durationRC.h',
'src/modules/oscRouter/OSCNode.cpp',
'src/modules/oscRouter/OSCNode.h',
'src/modules/oscRouter/OSCRouter.cpp',
'src/modules/oscRouter/OSCRouter.h',
'src/modules/liveGrabberOSC/liveGrabberEvents.h',
'src/modules/liveGrabberOSC/liveGrabberOSC.cpp',
'src/modules/liveGrabberOSC/liveGrabberOSC.h',
// PARAMS
'src/parameters/animationParams.cpp',
'src/parameters/animationParams.h',
'src/parameters/animationParamsServer.cpp',
'src/parameters/animationParamsServer.h',
'src/parameters/karmaParam.cpp',
'src/parameters/karmaParam.h',
// EFFECTS
'src/effects/effects.h',
'src/effects/effectFactory.cpp',
'src/effects/effectFactory.h',
'src/effects/basicEffect.cpp',
'src/effects/basicEffect.h',
'src/effects/distortEffect/distortEffect.cpp',
'src/effects/distortEffect/distortEffect.h',
'src/effects/imageShader/imageShader.cpp',
'src/effects/imageShader/imageShader.h',
'src/effects/lineEffect/lineEffect.cpp',
'src/effects/lineEffect/lineEffect.h',
'src/effects/lineEffect/lineEffectLine.cpp',
'src/effects/lineEffect/lineEffectLine.h',
'src/effects/lineDrawEffect/lineDrawEffect.cpp',
'src/effects/lineDrawEffect/lineDrawEffect.h',
'src/effects/lineDrawEffect/lineDrawEffectLine.cpp',
'src/effects/lineDrawEffect/lineDrawEffectLine.h',
'src/effects/gpuGlitchEffect/gpuGlitchEffect.cpp',
'src/effects/gpuGlitchEffect/gpuGlitchEffect.h',
'src/effects/fboEraser/fboEraser.cpp',
'src/effects/fboEraser/fboEraser.h',
'src/effects/shaderEffect/shaderEffect.cpp',
'src/effects/shaderEffect/shaderEffect.h',
'src/effects/videoShader/videoShader.cpp',
'src/effects/videoShader/videoShader.h',
'src/effects/textureDistortionEffect/textureDistortionEffect.cpp',
'src/effects/textureDistortionEffect/textureDistortionEffect.h',
// SHAPES
'src/shapes/shapeFactory.cpp',
'src/shapes/shapeFactory.hpp',
'src/shapes/shapes/basicPoint.cpp',
'src/shapes/shapes/basicPoint.h',
'src/shapes/shapes/basicShape.cpp',
'src/shapes/shapes/basicShape.h',
'src/shapes/shapes/shapes.h',
'src/shapes/shapes/vertexShape.cpp',
'src/shapes/shapes/vertexShape.h',
'src/shapes/shapes/fullScreenShape.cpp',
'src/shapes/shapes/fullScreenShape.h',
'src/shapes/shapesDB.cpp',
'src/shapes/shapesDB.h',
'src/shapes/shapesEditor.cpp',
'src/shapes/shapesEditor.h',
'src/shapes/shapesScene.cpp',
'src/shapes/shapesScene.h',
'src/shapes/shapesTransformator.cpp',
'src/shapes/shapesTransformator.h',
'src/shapes/shapeUtils.h'
]
// This project is using addons.make to include the addons
// since it was imported from old code. To change it to include
// the addons from the qbs file change the following lines to
// the list of used addons in array format. eg:
//
of.addons: [
//'ofxOpenCv',
//'ofxAbletonLiveSet',
//'ofxAssimpModelLoader',
'ofxGuiExtended',
'ofxOsc',
'ofxTextBox',
//'ofxTrueTypeFontUC',
'ofxVLCRemote',
'ofxVideoRecorder',
'ofxXmlSettings',
'ofxImGui',
'ofxMSATimer',
'ofxFps',
//'ofxUVC',
'ofxDelaunay',
//'ofxSyphon',
];
// 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
// For now, please enter these manually, later on they will be scanned automatically.
of.includePaths: [
'src/shapes/shapes/',
'src/shapes/',
'src',
'src/core',
'src/effects',
'src/effects/distortEffect',
'src/effects/imageShader',
'src/effects/lineDrawEffect',
'src/effects/lineEffect',
'src/effects/shaderEffect',
'src/effects/videoShader',
'src/parameters',
'src/modules',
'src/modules/mirOSC',
'src/modules/oscRouter',
'src/modules/fboRecorder',
'src/modules/soundAnalyser',
'src/modules/mirOSC',
'src/modules/durationOSC',
] // include search paths
of.cFlags: [
//'-fpermissive',
] // flags passed to the c compiler
//of.cxxFlags: ['-x objective-c++'] // flags passed to the c++ compiler
//of.cxxFlags: ['-ObjC++']
of.linkerFlags: [
'-v', // shows more detailed linker errors
] // flags passed to the linker
//of.defines: ['KM_EDITOR_APP', 'KM_QT_CREATOR'] // defines are passed as -D to the compiler
of.defines: ['KM_ANIMATOR_APP', 'KM_QT_CREATOR'] // and can be checked with #ifdef or #if in the code
//of.frameworks: ['Syphon'] // note: osx only
// general compilation fixes for OF0.9 + OSX 10.12
Properties {
condition: qbs.targetOS.contains("osx") || qbs.targetOS.contains("macos")
of.linkerFlags: outer.concat([
'-L'+Helpers.normalize(FileInfo.joinPaths(sourceDirectory,"../../../libs/curl/lib/osx/")),
'-lcurl'
]);
}
Properties {
// osx only, additional frameworks to link with the project
condition: qbs.targetOS.contains("osx") || qbs.targetOS.contains("macos")
// Add Syphon support
//of.addons: outer.concat(['ofxSyphon'])
//of.frameworks: outer.concat(['Syphon'])
of.linkerFlags: outer.concat([
'-F../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon',
'-framework Syphon',
// '-lSyphon',
])
//of.includePaths: outer.concat(['../../../addons/ofxSyphon/libs/Syhpon/src/']);
// of.includePaths: outer.concat([
// '../../../addons/ofxSyphon/libs',
// '../../../addons/ofxSyphon/libs/Syphon',
// '../../../addons/ofxSyphon/libs/Syphon/lib',
// '../../../addons/ofxSyphon/libs/Syphon/lib/osx',
// '../../../addons/ofxSyphon/libs/Syphon/src',
// '../../../addons/ofxSyphon/src',
// //'../../../libs/openssl/include',
// ]);
// add UVC support on osx
of.addons: outer.concat(['ofxUVC','ofxSyphon'])
// add QTKit support on osx
of.frameworks: outer.concat(['Qtkit'/*,'Syphon'*/]);
// osx only, tmp ofxVideoRecorder
//of.addons: ['ofxPoco'].concat(outer)
//of.linkerFlags: Helpers.listDirsRecursive(project.sourceDirectory + "../../../addons/ofxPoco/libs/poco/lib/osx/*.a").concat(outer);
//-L
//'-l/addons/ofxPoco/libs/poco/lib/osx/*.a'
// osx only, tmp poco mess
//of.addons: ['ofxPoco'].concat(outer)
//of.staticLibraries: outer.concat('Poco');
//of.frameworks: outer.concat(['Poco'])
// '-L/addons/ofxPoco/libs/poco/lib/',
// '-lPoco',
// ADDON_INCLUDES += libs/openssl/include
// '-L/addons/ofxPoco/libs/poco/lib/PocoNetSSL.a',
// '-L/addons/ofxPoco/libs/poco/lib/PocoNet.a',
// '-L/addons/ofxPoco/libs/poco/lib/PocoCrypto.a',
// '-L/addons/ofxPoco/libs/poco/lib/PocoUtil.a',
// '-L/addons/ofxPoco/libs/poco/lib/PocoJSON.a',
// '-L/addons/ofxPoco/libs/poco/lib/PocoXML.a',
// '-L/addons/ofxPoco/libs/poco/lib/PocoFoundation.a',
// '-F/libs/openssl/lib/osx/crypto.a',
// '-F/libs/openssl/lib/osx/ssl.a',
}
// // Syphon missing file
// Group {
// name: 'Missing Syphon Files'
// // osx only, additional frameworks to link with the project
// condition: qbs.targetOS.contains("osx") || qbs.targetOS.contains("macos")
// // dirty fix for .mm files
// files: base.concat([
//// '../../../addons/ofxSyphon/src/ofxSyphonClient.mm',
//// '../../../addons/ofxSyphon/src/ofxSyphonServer.mm',
//// '../../../addons/ofxSyphon/src/ofxSyphonServerDirectory.mm',
//// '../../../addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m'
//// '../../../addons/ofxSyphon/src/ofxSyphon.h',
//// '../../../addons/ofxSyphon/src/ofxSyphonClient.cpp',
//// '../../../addons/ofxSyphon/src/ofxSyphonServer.cpp',
//// '../../../addons/ofxSyphon/src/ofxSyphonServerDirectory.cpp',
//// '../../../addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m',
// ])
// }
// Group {
// name: 'ofxUVC Files DirtyFix'
// // osx only, additional frameworks to link with the project
// condition: qbs.targetOS.contains("osx") || qbs.targetOS.contains("macos")
// // dirty fix for .mm files
// files: base.concat([
// //'../../../addons/ofxUVC/src/ofxUVC.mm',
// //'../../../addons/ofxUVC/src/UVCCameraControl.m',
// //'../../../addons/ofxUVC/src/UVCCameraControl.h',
// ])
// }
// 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"
}
} // end ofApp
references: [FileInfo.joinPaths(of_root, "/libs/openFrameworksCompiled/project/qtcreator/openFrameworks.qbs")]
}