SCsub 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/usr/bin/env python
  2. from misc.utility.scons_hints import *
  3. Import("env")
  4. Import("env_modules")
  5. env_cvtt = env_modules.Clone()
  6. # Thirdparty source files
  7. thirdparty_obj = []
  8. thirdparty_dir = "#thirdparty/cvtt/"
  9. thirdparty_sources = [
  10. "ConvectionKernels_API.cpp",
  11. "ConvectionKernels_ETC.cpp",
  12. "ConvectionKernels_BC67.cpp",
  13. "ConvectionKernels_IndexSelector.cpp",
  14. "ConvectionKernels_BC6H_IO.cpp",
  15. "ConvectionKernels_S3TC.cpp",
  16. "ConvectionKernels_BC7_PrioData.cpp",
  17. "ConvectionKernels_SingleFile.cpp",
  18. "ConvectionKernels_BCCommon.cpp",
  19. "ConvectionKernels_Util.cpp",
  20. ]
  21. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  22. env_cvtt.Prepend(CPPPATH=[thirdparty_dir])
  23. env_thirdparty = env_cvtt.Clone()
  24. env_thirdparty.disable_warnings()
  25. env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources)
  26. env.modules_sources += thirdparty_obj
  27. # Godot source files
  28. module_obj = []
  29. env_cvtt.add_source_files(module_obj, "*.cpp")
  30. env.modules_sources += module_obj
  31. # Needed to force rebuilding the module files when the thirdparty library is updated.
  32. env.Depends(module_obj, thirdparty_obj)