2022-03-15 13:29:32 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
Import("env")
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2022-03-23 20:46:05 +01:00
|
|
|
# Pandemonium source files
|
2022-03-15 13:29:32 +01:00
|
|
|
|
|
|
|
scene_obj = []
|
|
|
|
env.add_source_files(scene_obj, "*.cpp")
|
2023-12-10 13:55:20 +01:00
|
|
|
|
2023-12-10 14:23:24 +01:00
|
|
|
# 2d navigation
|
|
|
|
navigation_2d_obj = []
|
|
|
|
env.add_source_files(navigation_2d_obj, "navigation_2d/*.cpp")
|
|
|
|
|
|
|
|
for o in navigation_2d_obj:
|
|
|
|
scene_obj.append(o)
|
|
|
|
|
|
|
|
# 3d navigation
|
|
|
|
navigation_obj = []
|
|
|
|
env.add_source_files(navigation_obj, "navigation/*.cpp")
|
|
|
|
|
|
|
|
for o in navigation_obj:
|
|
|
|
scene_obj.append(o)
|
|
|
|
|
2023-12-10 14:42:30 +01:00
|
|
|
# font
|
|
|
|
font_obj = []
|
|
|
|
env.add_source_files(font_obj, "font/*.cpp")
|
|
|
|
|
|
|
|
for o in font_obj:
|
|
|
|
scene_obj.append(o)
|
|
|
|
|
2023-12-10 14:59:22 +01:00
|
|
|
# material
|
|
|
|
material_obj = []
|
|
|
|
env.add_source_files(material_obj, "material/*.cpp")
|
|
|
|
|
|
|
|
for o in material_obj:
|
|
|
|
scene_obj.append(o)
|
|
|
|
|
2022-03-15 13:29:32 +01:00
|
|
|
env.scene_sources += scene_obj
|
|
|
|
|
2023-12-10 15:22:09 +01:00
|
|
|
# mesh
|
|
|
|
mesh_obj = []
|
|
|
|
env.add_source_files(mesh_obj, "mesh/*.cpp")
|
|
|
|
|
|
|
|
for o in mesh_obj:
|
|
|
|
scene_obj.append(o)
|
|
|
|
|
|
|
|
env.scene_sources += scene_obj
|
|
|
|
|
2022-03-15 13:29:32 +01:00
|
|
|
# Needed to force rebuilding the scene files when the thirdparty code is updated.
|
|
|
|
env.Depends(scene_obj, thirdparty_obj)
|
|
|
|
|
|
|
|
SConscript("default_theme/SCsub")
|