forked from EIRTeam/qodot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SCsub
42 lines (28 loc) · 843 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
37
38
39
40
41
42
#!/usr/bin/env python
Import("env")
Import("env_modules")
module_path = Dir('.').srcnode().abspath
thirdparty_obj = []
thirdparty_dir = "%s/thirdparty/libmap_cpp/src/" % module_path
thirdparty_sources = [
"geo_generator.cpp",
"map_data.cpp",
"map_parser.cpp",
"matrix.cpp",
"surface_gatherer.cpp",
"vector.cpp"
]
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
env_qodot = env_modules.Clone()
env_qodot.Prepend(CPPPATH=[thirdparty_dir])
env_thirdparty = env_qodot.Clone()
env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources)
env.modules_sources += thirdparty_obj
module_obj = []
module_files = [
"qodot.cpp",
"register_types.cpp"
]
env_qodot.add_source_files(module_obj, "*.cpp")
env.modules_sources += module_obj
env.Depends(module_obj, thirdparty_obj)