SCsub 781 B

1234567891011121314151617181920212223242526272829
  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.GLSL_HEADER("bc4.glsl")
  9. env_betsy.Depends(Glob("*.glsl.gen.h"), ["#glsl_builders.py"])
  10. # Thirdparty source files
  11. thirdparty_obj = []
  12. thirdparty_dir = "#thirdparty/betsy/"
  13. env_betsy.Prepend(CPPPATH=[thirdparty_dir])
  14. env_thirdparty = env_betsy.Clone()
  15. env_thirdparty.disable_warnings()
  16. env.modules_sources += thirdparty_obj
  17. # Godot source files
  18. module_obj = []
  19. env_betsy.add_source_files(module_obj, "*.cpp")
  20. env.modules_sources += module_obj
  21. # Needed to force rebuilding the module files when the thirdparty library is updated.
  22. env.Depends(module_obj, thirdparty_obj)