-
Notifications
You must be signed in to change notification settings - Fork 4
/
SConscript
40 lines (30 loc) · 1.42 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
Import( 'project' )
Import( 'libs' )
mvpPlayerFlags = { 'LIBPATH': [project.inOutputLib()],
'CCFLAGS': [project.CC['warning3'],project.CC['sharedobject'] ],
'CXXFLAGS':[],
'CPPDEFINES':['BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS', 'BOOST_MPL_LIMIT_LIST_SIZE=30'],
}
if project.env['mode'] == 'production' :
mvpPlayerFlags['CPPDEFINES'].append( 'FACTIZ_PRODUCTION' )
if 'visibilityhidden' in project.CC:
mvpPlayerFlags['SHCCFLAGS'] = [project.CC['visibilityhidden']]
# If your compiler as a flag to mark undefined flags as error in shared libraries
if 'sharedNoUndefined' in project.CC:
mvpPlayerFlags['SHLINKFLAGS'] = [project.CC['sharedNoUndefined']]
mvpPlayer = project.ObjectLibrary( 'mvpPlayer',
envFlags=mvpPlayerFlags )
project.commonLibs.append( mvpPlayer )
SConscript( [
'libraries/boost-adds/SConscript',
'libraries/mvp-player-core/SConscript',
'libraries/mvp-player-fmod/SConscript',
'libraries/mvp-player-gui/SConscript',
'libraries/mvp-player-net/SConscript',
'libraries/mvp-player-pluger/SConscript',
'libraries/mvp-player-qtgui/SConscript',
'libraries/mvp-player-ncursesgui/SConscript',
]
+
project.scanFiles( ['plugins', 'applications', 'tests'], accept=['SConscript'] )
)