diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-06-07 02:10:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-07 02:10:48 +0200 |
commit | b4c65093d72bf9b48cc3ddce50a0d913d3d75ed3 (patch) | |
tree | 50dba3db0348294fb88852b92bf9a66d57c70451 /modules/upnp/SCsub | |
parent | aaf93f92d8ba9bef29f42b590782fc6f0fad6fdc (diff) | |
parent | c21da40de5fb20ade5b07dcc961c9364ba3815af (diff) |
Merge pull request #18780 from mhilbrunner/upnp
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") |