SCsub 702 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env python
  2. Import('env')
  3. Import('env_modules')
  4. env_mpc = env_modules.Clone()
  5. # Thirdparty source files
  6. if (env['builtin_libmpcdec'] != 'no'):
  7. thirdparty_dir = "#thirdparty/libmpcdec/"
  8. thirdparty_sources = [
  9. "huffman.c",
  10. "mpc_bits_reader.c",
  11. "mpc_decoder.c",
  12. "mpc_demux.c",
  13. "mpc_reader.c",
  14. "requant.c",
  15. "streaminfo.c",
  16. "synth_filter.c",
  17. ]
  18. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  19. env_mpc.add_source_files(env.modules_sources, thirdparty_sources)
  20. env_mpc.Append(CPPPATH=[thirdparty_dir])
  21. # Godot source files
  22. env_mpc.add_source_files(env.modules_sources, "*.cpp")