Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mhilbrunner/18cc8d7f8c78644d1eed020a90c1aeb3 to your computer and use it in GitHub Desktop.
Save mhilbrunner/18cc8d7f8c78644d1eed020a90c1aeb3 to your computer and use it in GitHub Desktop.
#!/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