generated from hertog/godot-module-template
Initial commit
This commit is contained in:
commit
65227bf3a5
12416 changed files with 6001067 additions and 0 deletions
21
engine/modules/minimp3/SCsub
Normal file
21
engine/modules/minimp3/SCsub
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env python
|
||||
from misc.utility.scons_hints import *
|
||||
|
||||
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])
|
||||
|
||||
if not env["minimp3_extra_formats"]:
|
||||
env_minimp3.Append(CPPDEFINES=["MINIMP3_ONLY_MP3"])
|
||||
|
||||
# Godot source files
|
||||
env_minimp3.add_source_files(env.modules_sources, "*.cpp")
|
||||
Loading…
Add table
Add a link
Reference in a new issue