summaryrefslogtreecommitdiff
path: root/modules/websocket/SCsub
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-02-10 14:06:38 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-02-14 01:34:25 +0100
commitbd3c27ba7862d50b1bf54733e9f890f7084a9ea5 (patch)
tree0ccca56f5fbc3fde1bc00ee72e272b842329c62f /modules/websocket/SCsub
parent9e2b1b3b009f26fc24bbf02b4b66218f00133907 (diff)
Allow building with system wide mbedtls on X11
Using builtin_mbedtls=yes is still the default as many distributions do not ship with mbedtls included.
Diffstat (limited to 'modules/websocket/SCsub')
-rw-r--r--modules/websocket/SCsub5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/websocket/SCsub b/modules/websocket/SCsub
index 5138fc1335..3b0f920bbf 100644
--- a/modules/websocket/SCsub
+++ b/modules/websocket/SCsub
@@ -71,8 +71,9 @@ else:
wrapper_includes = ["#thirdparty/lws/mbedtls_wrapper/include/" + inc for inc in ["internal", "openssl", "platform", ""]]
env_lws.Append(CPPPATH=wrapper_includes)
- mbedtls_includes = "#thirdparty/mbedtls/include"
- env_lws.Append(CPPPATH=[mbedtls_includes])
+ if env['builtin_mbedtls']:
+ mbedtls_includes = "#thirdparty/mbedtls/include"
+ env_lws.Append(CPPPATH=[mbedtls_includes])
if env_lws["platform"] == "windows":
env_lws.Append(CPPPATH=[thirdparty_dir + helper_dir])