0.2.0-dev Download ZIP
22 lines ·449 B Raw
| 1 | #!/usr/bin/env python |
| 2 | from misc.utility.scons_hints import * |
| 3 | |
| 4 | Import("env") |
| 5 | |
| 6 | # Thirdparty code |
| 7 | |
| 8 | thirdparty_obj = [] |
| 9 | |
| 10 | env_thirdparty = env.Clone() |
| 11 | env_thirdparty.disable_warnings() |
| 12 | env.scene_sources += thirdparty_obj |
| 13 | |
| 14 | # Godot source files |
| 15 | |
| 16 | scene_obj = [] |
| 17 | |
| 18 | env.add_source_files(scene_obj, "*.cpp") |
| 19 | env.scene_sources += scene_obj |
| 20 | |
| 21 | # Needed to force rebuilding the scene files when the thirdparty code is updated. |
| 22 | env.Depends(scene_obj, thirdparty_obj) |