Created
May 8, 2018 19:01
-
-
Save mhilbrunner/18cc8d7f8c78644d1eed020a90c1aeb3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
Import('env') | |
Import('env_modules') | |
env_enet = env_modules.Clone() | |
# Thirdparty source files | |
if env['builtin_miniupnpc']: | |
print("HIT UPNP") | |
thirdparty_dir = "#thirdparty/miniupnpc/" | |
thirdparty_sources = [ | |
"miniupnpc.c", | |
"upnpcommands.c", | |
] | |
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources] | |
env_enet.add_source_files(env.modules_sources, thirdparty_sources) | |
env_enet.Append(CPPPATH=[thirdparty_dir]) | |
env_enet.Append(CPPFLAGS=["-DMINIUPNP_STATICLIB"]) | |
env_enet.add_source_files(env.modules_sources, "*.cpp") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment