mirror of
https://github.com/godotengine/godot
synced 2024-11-02 11:59:10 +00:00
18 lines
460 B
Text
18 lines
460 B
Text
|
#!/usr/bin/env python
|
||
|
|
||
|
Import("env")
|
||
|
Import("env_modules")
|
||
|
|
||
|
env_minimp3 = env_modules.Clone()
|
||
|
|
||
|
thirdparty_dir = "#thirdparty/minimp3/"
|
||
|
|
||
|
# 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])
|
||
|
|
||
|
# Godot's own source files
|
||
|
env_minimp3.add_source_files(env.modules_sources, "*.cpp")
|