diff options
author | mhilbrunner <m.hilbrunner@gmail.com> | 2018-05-11 02:00:16 +0200 |
---|---|---|
committer | mhilbrunner <m.hilbrunner@gmail.com> | 2018-06-07 01:52:04 +0200 |
commit | c21da40de5fb20ade5b07dcc961c9364ba3815af (patch) | |
tree | 0afa8202296f30dcd939bc24492e97d4864f4fb1 /modules/upnp/SCsub | |
parent | e854a71fac776cf49a0d65468e8130401eff3c6b (diff) |
Add UPnP support (port forwarding, querying external IP)
Diffstat (limited to 'modules/upnp/SCsub')
-rw-r--r-- | modules/upnp/SCsub | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/upnp/SCsub b/modules/upnp/SCsub new file mode 100644 index 0000000000..cde231867f --- /dev/null +++ b/modules/upnp/SCsub @@ -0,0 +1,32 @@ +#!/usr/bin/env python + +Import('env') +Import('env_modules') + +env_upnp = env_modules.Clone() + +# Thirdparty source files + +if env['builtin_miniupnpc']: + thirdparty_dir = "#thirdparty/miniupnpc/" + thirdparty_sources = [ + "miniupnpc.c", + "upnpcommands.c", + "miniwget.c", + "upnpdev.c", + "igd_desc_parse.c", + "minissdpc.c", + "minisoap.c", + "minixml.c", + "connecthostport.c", + "receivedata.c", + "portlistingparse.c", + "upnpreplyparse.c", + ] + thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources] + + env_upnp.add_source_files(env.modules_sources, thirdparty_sources) + env_upnp.Append(CPPPATH=[thirdparty_dir]) + env_upnp.Append(CPPFLAGS=["-DMINIUPNP_STATICLIB"]) + +env_upnp.add_source_files(env.modules_sources, "*.cpp") |