SCsub 617 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env python
  2. Import('env')
  3. Import('env_modules')
  4. env_ogg = env_modules.Clone()
  5. # Thirdparty source files
  6. if env['builtin_libogg']:
  7. thirdparty_dir = "#thirdparty/libogg/"
  8. thirdparty_sources = [
  9. "bitwise.c",
  10. "framing.c",
  11. ]
  12. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  13. env_ogg.Append(CPPPATH=[thirdparty_dir])
  14. env_thirdparty = env_ogg.Clone()
  15. env_thirdparty.disable_warnings()
  16. env_thirdparty.add_source_files(env.modules_sources, thirdparty_sources)
  17. # Godot source files
  18. env_ogg.add_source_files(env.modules_sources, "*.cpp")