SCsub 581 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env python
  2. Import('env')
  3. Import('env_modules')
  4. env_opensimplex = env_modules.Clone()
  5. # Thirdparty source files
  6. thirdparty_dir = "#thirdparty/misc/"
  7. thirdparty_sources = [
  8. "open-simplex-noise.c",
  9. ]
  10. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  11. env_opensimplex.Append(CPPPATH=[thirdparty_dir])
  12. env_thirdparty = env_opensimplex.Clone()
  13. env_thirdparty.disable_warnings()
  14. env_thirdparty.add_source_files(env.modules_sources, thirdparty_sources)
  15. # Godot's own source files
  16. env_opensimplex.add_source_files(env.modules_sources, "*.cpp")