-
Notifications
You must be signed in to change notification settings - Fork 6
/
SCsub
36 lines (28 loc) · 1016 Bytes
/
SCsub
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
#!/usr/bin/env python
Import('env')
env_module = env.Clone()
thirdparty_dir = 'thirdparty/anl/'
thirdparty_dirs = [
thirdparty_dir + 'VM/',
thirdparty_dir + 'Expression/',
thirdparty_dir + 'Imaging/',
thirdparty_dir + 'Processing/',
]
env_module.Append(CPPPATH=thirdparty_dirs)
# ANL sources
env_thirdparty = env_module.Clone()
for d in thirdparty_dirs:
env_thirdparty.add_source_files(env.modules_sources, d + '*.cpp')
# Suppress warnings
env_thirdparty.disable_warnings()
if env.msvc:
suppress_multiple_copy_constructors = '/wd4521'
env_thirdparty.Append(CXXFLAGS=[suppress_multiple_copy_constructors])
if env["anl_use_long_period"]:
env_module.Append(CPPDEFINES=["ANL_LONG_PERIOD_HASHING"])
if env["anl_use_expressions_camelcase"]:
env_module.Append(CPPDEFINES=["ANL_EXPRESSION_BUILDER_CAMELCASE"])
# Module sources
env_module.add_source_files(env.modules_sources, '*.cpp')
env_module.add_source_files(env.modules_sources, 'plugins/*.cpp')
Export('env_module')