forked from tuttleofx/TuttleOFX
-
Notifications
You must be signed in to change notification settings - Fork 1
/
SConscript
54 lines (42 loc) · 1.6 KB
/
SConscript
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
Import( 'project', 'libs' )
### To enable/disable python expressions in tuttle host
project.TUTTLE_HOST_WITH_PYTHON_EXPRESSION = False
### Define global flags for the whole project
# depending on the platform and compilation mode
tuttleFlags = {
'LIBPATH': [project.inOutputLib()],
'CCFLAGS': project.CC['warning3'],
'CPPDEFINES':
[('TUTTLE_PLUGIN_PATH','"'+project.inOutputPlugin()+'"')],
}
if project.env['mode'] == 'production' :
# In 'production' mode set a flag TUTTLE_PRODUCTION
tuttleFlags['CPPDEFINES'].append( 'TUTTLE_PRODUCTION' )
# If your compiler as a visibility flag, hide all plugin internal things
if 'visibilityhidden' in project.CC:
tuttleFlags['SHCCFLAGS'] = [project.CC['visibilityhidden']]
# If your compiler as a flag to mark undefined flags as error in shared libraries
if 'sharedNoUndefined' in project.CC:
tuttleFlags['SHLINKFLAGS'] = [project.CC['sharedNoUndefined']]
# Creates a dependency target without associated code or compiled object,
# but only associated with compilation flags
tuttle = project.ObjectLibrary( 'tuttleDefault', envFlags=tuttleFlags )
# Set this object library as a default library for all targets
project.commonLibs.append( tuttle )
### Load all SConscript files (in the correct order)
SConscript(
project.scanFiles( [
'libraries/boostHack',
'libraries/openfxHack',
'libraries/terry',
'libraries/sequenceParser',
], accept=['SConscript'] ) +
['libraries/tuttle/SConscript'] +
project.scanFiles( [
'plugins',
'applications',
'libraries/tuttle/tests',
'libraries/tuttle/pyTest',
'doc',
], accept=['SConscript'] )
)