2
0

SCsub 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. We now use stb_vorbis for AudioStreamOGGVorbis.
  6. env_vorbis = env_modules.Clone()
  7. stub = True
  8. # Thirdparty source files
  9. if env['builtin_libvorbis']:
  10. thirdparty_dir = "#thirdparty/libvorbis/"
  11. thirdparty_sources = [
  12. #"analysis.c",
  13. #"barkmel.c",
  14. "bitrate.c",
  15. "block.c",
  16. "codebook.c",
  17. "envelope.c",
  18. "floor0.c",
  19. "floor1.c",
  20. "info.c",
  21. "lookup.c",
  22. "lpc.c",
  23. "lsp.c",
  24. "mapping0.c",
  25. "mdct.c",
  26. "psy.c",
  27. #"psytune.c",
  28. "registry.c",
  29. "res0.c",
  30. "sharedbook.c",
  31. "smallft.c",
  32. "synthesis.c",
  33. #"tone.c",
  34. #"vorbisenc.c",
  35. "vorbisfile.c",
  36. "window.c",
  37. ]
  38. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  39. env_vorbis.Prepend(CPPPATH=[thirdparty_dir])
  40. # also requires libogg
  41. if env['builtin_libogg']:
  42. env_vorbis.Prepend(CPPPATH=["#thirdparty/libogg"])
  43. env_thirdparty = env_vorbis.Clone()
  44. env_thirdparty.disable_warnings()
  45. env_thirdparty.add_source_files(env.modules_sources, thirdparty_sources)
  46. # Module files
  47. env_vorbis.add_source_files(env.modules_sources, "register_types.cpp")