SCsub 702 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/env python
  2. Import("env")
  3. Import("env_modules")
  4. # Only kept to build the thirdparty library used by the theora and webm
  5. # modules.
  6. env_ogg = env_modules.Clone()
  7. # Thirdparty source files
  8. if env["builtin_libogg"]:
  9. thirdparty_dir = "#thirdparty/libogg/"
  10. thirdparty_sources = [
  11. "bitwise.c",
  12. "framing.c",
  13. ]
  14. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  15. env_ogg.Prepend(CPPPATH=[thirdparty_dir])
  16. env_thirdparty = env_ogg.Clone()
  17. env_thirdparty.disable_warnings()
  18. env_thirdparty.add_source_files(env.modules_sources, thirdparty_sources)
  19. # Godot source files
  20. env_ogg.add_source_files(env.modules_sources, "*.cpp")