| 1 |
|
| 2 |
from misc.utility.scons_hints import * |
| 3 |
|
| 4 |
Import("env") |
| 5 |
Import("env_modules") |
| 6 |
|
| 7 |
env_navigation_2d = env_modules.Clone() |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
thirdparty_obj = [] |
| 12 |
|
| 13 |
|
| 14 |
if env["builtin_rvo2_2d"]: |
| 15 |
thirdparty_dir = "#thirdparty/rvo2/rvo2_2d/" |
| 16 |
thirdparty_sources = [ |
| 17 |
"Agent2d.cpp", |
| 18 |
"Obstacle2d.cpp", |
| 19 |
"KdTree2d.cpp", |
| 20 |
"RVOSimulator2d.cpp", |
| 21 |
] |
| 22 |
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources] |
| 23 |
|
| 24 |
env_navigation_2d.Prepend(CPPPATH=[thirdparty_dir]) |
| 25 |
|
| 26 |
env_thirdparty = env_navigation_2d.Clone() |
| 27 |
env_thirdparty.disable_warnings() |
| 28 |
env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources) |
| 29 |
|
| 30 |
|
| 31 |
env.modules_sources += thirdparty_obj |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
module_obj = [] |
| 36 |
|
| 37 |
env_navigation_2d.add_source_files(module_obj, "*.cpp") |
| 38 |
env_navigation_2d.add_source_files(module_obj, "2d/*.cpp") |
| 39 |
if env.editor_build: |
| 40 |
env_navigation_2d.add_source_files(module_obj, "editor/*.cpp") |
| 41 |
env.modules_sources += module_obj |
| 42 |
|
| 43 |
|
| 44 |
env.Depends(module_obj, thirdparty_obj) |