| 1 |
|
| 2 |
from misc.utility.scons_hints import * |
| 3 |
|
| 4 |
Import("env") |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
thirdparty_obj = [] |
| 9 |
|
| 10 |
thirdparty_dir = "#thirdparty/misc/" |
| 11 |
thirdparty_sources = [ |
| 12 |
"mikktspace.c", |
| 13 |
"qoa.c", |
| 14 |
] |
| 15 |
|
| 16 |
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources] |
| 17 |
|
| 18 |
env_thirdparty = env.Clone() |
| 19 |
env_thirdparty.disable_warnings() |
| 20 |
env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources) |
| 21 |
env.scene_sources += thirdparty_obj |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
scene_obj = [] |
| 26 |
|
| 27 |
env.add_source_files(scene_obj, "*.cpp") |
| 28 |
env.scene_sources += scene_obj |
| 29 |
|
| 30 |
|
| 31 |
env.Depends(scene_obj, thirdparty_obj) |
| 32 |
|
| 33 |
SConscript("2d/SCsub") |
| 34 |
if not env["disable_3d"]: |
| 35 |
SConscript("3d/SCsub") |