SCsub 587 B

12345678910111213141516171819202122
  1. #!/usr/bin/env python
  2. from misc.utility.scons_hints import *
  3. Import("env")
  4. Import("env_modules")
  5. env_minimp3 = env_modules.Clone()
  6. thirdparty_dir = "#thirdparty/minimp3/"
  7. # Treat minimp3 headers as system headers to avoid raising warnings. Not supported on MSVC.
  8. if not env.msvc:
  9. env_minimp3.Append(CPPFLAGS=["-isystem", Dir(thirdparty_dir).path])
  10. else:
  11. env_minimp3.Prepend(CPPPATH=[thirdparty_dir])
  12. if not env["minimp3_extra_formats"]:
  13. env_minimp3.Append(CPPDEFINES=["MINIMP3_ONLY_MP3"])
  14. # Godot source files
  15. env_minimp3.add_source_files(env.modules_sources, "*.cpp")