SCsub 648 B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/env python
  2. from misc.utility.scons_hints import *
  3. Import("env")
  4. # Thirdparty code
  5. thirdparty_obj = []
  6. thirdparty_sources = "#thirdparty/misc/mikktspace.c"
  7. env_thirdparty = env.Clone()
  8. env_thirdparty.disable_warnings()
  9. env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources)
  10. env.scene_sources += thirdparty_obj
  11. # Godot source files
  12. scene_obj = []
  13. env.add_source_files(scene_obj, "*.cpp")
  14. env.scene_sources += scene_obj
  15. # Needed to force rebuilding the scene files when the thirdparty code is updated.
  16. env.Depends(scene_obj, thirdparty_obj)
  17. SConscript("2d/SCsub")
  18. if not env["disable_3d"]:
  19. SConscript("3d/SCsub")