summaryrefslogtreecommitdiff
path: root/modules/minimp3/SCsub
blob: 20e3165f38b045823b2f7a90be38a560dd1e9b33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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 source files
env_minimp3.add_source_files(env.modules_sources, "*.cpp")