SCsub 1.1 KB

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