2016-10-17 14:50:25 +08:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2020-03-30 14:28:32 +08:00
|
|
|
Import("env")
|
2014-02-10 09:10:30 +08:00
|
|
|
|
2020-12-17 23:01:36 +08:00
|
|
|
# Thirdparty code
|
|
|
|
|
|
|
|
thirdparty_obj = []
|
|
|
|
|
|
|
|
thirdparty_sources = "#thirdparty/misc/mikktspace.c"
|
|
|
|
|
|
|
|
env_thirdparty = env.Clone()
|
|
|
|
env_thirdparty.disable_warnings()
|
|
|
|
env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources)
|
|
|
|
env.scene_sources += thirdparty_obj
|
|
|
|
|
|
|
|
# Godot source files
|
|
|
|
|
|
|
|
scene_obj = []
|
|
|
|
|
|
|
|
env.add_source_files(scene_obj, "*.cpp")
|
|
|
|
env.scene_sources += scene_obj
|
|
|
|
|
|
|
|
# Needed to force rebuilding the scene files when the thirdparty code is updated.
|
|
|
|
env.Depends(scene_obj, thirdparty_obj)
|
2021-03-16 14:27:53 +08:00
|
|
|
|
|
|
|
SConscript("2d/SCsub")
|
2024-02-26 20:34:53 +08:00
|
|
|
if not env["disable_3d"]:
|
|
|
|
SConscript("3d/SCsub")
|