SCsub 767 B

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