SCsub 410 B

12345678910111213141516171819202122
  1. #!/usr/bin/env python
  2. Import("env")
  3. # Thirdparty code
  4. thirdparty_obj = []
  5. env_thirdparty = env.Clone()
  6. env_thirdparty.disable_warnings()
  7. env.scene_sources += thirdparty_obj
  8. # Godot source files
  9. scene_obj = []
  10. env.add_source_files(scene_obj, "*.cpp")
  11. env.scene_sources += scene_obj
  12. # Needed to force rebuilding the scene files when the thirdparty code is updated.
  13. env.Depends(scene_obj, thirdparty_obj)