SCsub 855 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/env python
  2. Import("env")
  3. Import("env_modules")
  4. env_noise = env_modules.Clone()
  5. # Thirdparty source files
  6. thirdparty_obj = []
  7. thirdparty_dir = "#thirdparty/noise/"
  8. thirdparty_sources = [
  9. # Add C++ source files for noise modules here
  10. ]
  11. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  12. env_noise.Prepend(CPPPATH=[thirdparty_dir])
  13. env_thirdparty = env_noise.Clone()
  14. env_thirdparty.disable_warnings()
  15. env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources)
  16. env.modules_sources += thirdparty_obj
  17. # Godot source files
  18. module_obj = []
  19. env_noise.add_source_files(module_obj, "*.cpp")
  20. env_noise.add_source_files(module_obj, "editor/*.cpp")
  21. env.modules_sources += module_obj
  22. # Needed to force rebuilding the module files when the thirdparty library is updated.
  23. env.Depends(module_obj, thirdparty_obj)