2020-10-22 08:33:40 +08:00
|
|
|
#!/usr/bin/env python
|
2024-06-12 04:19:07 +08:00
|
|
|
from misc.utility.scons_hints import *
|
2020-10-22 08:33:40 +08:00
|
|
|
|
|
|
|
Import("env")
|
|
|
|
Import("env_modules")
|
|
|
|
|
|
|
|
env_minimp3 = env_modules.Clone()
|
|
|
|
|
|
|
|
thirdparty_dir = "#thirdparty/minimp3/"
|
|
|
|
|
2023-06-19 19:34:56 +08:00
|
|
|
# Treat minimp3 headers as system headers to avoid raising warnings. Not supported on MSVC.
|
|
|
|
if not env.msvc:
|
|
|
|
env_minimp3.Append(CPPFLAGS=["-isystem", Dir(thirdparty_dir).path])
|
|
|
|
else:
|
|
|
|
env_minimp3.Prepend(CPPPATH=[thirdparty_dir])
|
2020-10-22 08:33:40 +08:00
|
|
|
|
2023-02-05 17:58:35 +08:00
|
|
|
if not env["minimp3_extra_formats"]:
|
|
|
|
env_minimp3.Append(CPPDEFINES=["MINIMP3_ONLY_MP3"])
|
|
|
|
|
2022-08-06 06:09:11 +08:00
|
|
|
# Godot source files
|
2023-06-19 19:34:56 +08:00
|
|
|
env_minimp3.add_source_files(env.modules_sources, "*.cpp")
|