SCsub 636 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python
  2. Import("env")
  3. Import("env_modules")
  4. env_stb_vorbis = env_modules.Clone()
  5. # Thirdparty source files
  6. thirdparty_obj = []
  7. thirdparty_sources = ["#thirdparty/misc/stb_vorbis.c"]
  8. env_thirdparty = env_stb_vorbis.Clone()
  9. env_thirdparty.disable_warnings()
  10. env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources)
  11. env.modules_sources += thirdparty_obj
  12. # Godot source files
  13. module_obj = []
  14. env_stb_vorbis.add_source_files(module_obj, "*.cpp")
  15. env.modules_sources += module_obj
  16. # Needed to force rebuilding the module files when the thirdparty library is updated.
  17. env.Depends(module_obj, thirdparty_obj)