SCsub 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/usr/bin/env python
  2. Import('env')
  3. Import('env_modules')
  4. env_vorbis = env_modules.Clone()
  5. # Thirdparty source files
  6. if (env['builtin_libvorbis'] != 'no'):
  7. thirdparty_dir = "#thirdparty/libvorbis/"
  8. thirdparty_sources = [
  9. #"analysis.c",
  10. #"barkmel.c",
  11. "bitrate.c",
  12. "block.c",
  13. "codebook.c",
  14. "envelope.c",
  15. "floor0.c",
  16. "floor1.c",
  17. "info.c",
  18. "lookup.c",
  19. "lpc.c",
  20. "lsp.c",
  21. "mapping0.c",
  22. "mdct.c",
  23. "psy.c",
  24. #"psytune.c",
  25. "registry.c",
  26. "res0.c",
  27. "sharedbook.c",
  28. "smallft.c",
  29. "synthesis.c",
  30. #"tone.c",
  31. #"vorbisenc.c",
  32. "vorbisfile.c",
  33. "window.c",
  34. ]
  35. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  36. env_vorbis.add_source_files(env.modules_sources, thirdparty_sources)
  37. env_vorbis.Append(CPPPATH=[thirdparty_dir])
  38. # also requires libogg
  39. if (env['builtin_libogg'] != 'no'):
  40. env_vorbis.Append(CPPPATH=["#thirdparty/libogg"])
  41. # Godot source files
  42. env_vorbis.add_source_files(env.modules_sources, "*.cpp")