SCsub 747 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/env python
  2. from misc.utility.scons_hints import *
  3. Import("env")
  4. Import("env_modules")
  5. env_betsy = env_modules.Clone()
  6. env_betsy.GLSL_HEADER("bc6h.glsl")
  7. env_betsy.GLSL_HEADER("bc1.glsl")
  8. env_betsy.Depends(Glob("*.glsl.gen.h"), ["#glsl_builders.py"])
  9. # Thirdparty source files
  10. thirdparty_obj = []
  11. thirdparty_dir = "#thirdparty/betsy/"
  12. env_betsy.Prepend(CPPPATH=[thirdparty_dir])
  13. env_thirdparty = env_betsy.Clone()
  14. env_thirdparty.disable_warnings()
  15. env.modules_sources += thirdparty_obj
  16. # Godot source files
  17. module_obj = []
  18. env_betsy.add_source_files(module_obj, "*.cpp")
  19. env.modules_sources += module_obj
  20. # Needed to force rebuilding the module files when the thirdparty library is updated.
  21. env.Depends(module_obj, thirdparty_obj)