summaryrefslogtreecommitdiff
path: root/modules/websocket/SCsub
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2018-02-20 15:03:57 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-02-20 15:11:50 +0100
commita2ef49f8b977a16bbfa7ad1a179aeb43a3a6be18 (patch)
tree5e2471b90d3e5b1d654a6dea7fd3b82a7ec23a64 /modules/websocket/SCsub
parentad5ac052a447f5121e96f2c3964e14a880b397a7 (diff)
Websocket module properly recognize UWP (by @vnen)
Diffstat (limited to 'modules/websocket/SCsub')
-rw-r--r--modules/websocket/SCsub7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/websocket/SCsub b/modules/websocket/SCsub
index 3b0f920bbf..1a36e05863 100644
--- a/modules/websocket/SCsub
+++ b/modules/websocket/SCsub
@@ -54,7 +54,7 @@ thirdparty_sources = [
if env_lws["platform"] == "android": # Builtin getifaddrs
thirdparty_sources += ["misc/getifaddrs.c"]
-if env_lws["platform"] == "windows": # Winsock
+if env_lws["platform"] == "windows" or env_lws["platform"] == "uwp": # Winsock
thirdparty_sources += ["plat/lws-plat-win.c", helper_dir + "getopt.c", helper_dir + "getopt_long.c", helper_dir + "gettimeofday.c"]
else: # Unix socket
thirdparty_sources += ["plat/lws-plat-unix.c"]
@@ -75,7 +75,10 @@ else:
mbedtls_includes = "#thirdparty/mbedtls/include"
env_lws.Append(CPPPATH=[mbedtls_includes])
- if env_lws["platform"] == "windows":
+ if env_lws["platform"] == "windows" or env_lws["platform"] == "uwp":
env_lws.Append(CPPPATH=[thirdparty_dir + helper_dir])
+ if env_lws["platform"] == "uwp":
+ env_lws.Append(CCFLAGS=["/DLWS_MINGW_SUPPORT"])
+
env_lws.add_source_files(env.modules_sources, "*.cpp")