SCsub 548 B

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