Use Prepend instead of Append for mbedTLS include
Fixes build on FreeBSD when system-wide mbedTLS and/or openSSL are installed
This commit is contained in:
parent
ea7af81460
commit
659c62ee33
@ -85,7 +85,7 @@ if env['builtin_mbedtls']:
|
|||||||
thirdparty_dir = "#thirdparty/mbedtls/library/"
|
thirdparty_dir = "#thirdparty/mbedtls/library/"
|
||||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||||
env_mbed_tls.add_source_files(env.modules_sources, thirdparty_sources)
|
env_mbed_tls.add_source_files(env.modules_sources, thirdparty_sources)
|
||||||
env_mbed_tls.Append(CPPPATH=["#thirdparty/mbedtls/include/"])
|
env_mbed_tls.Prepend(CPPPATH=["#thirdparty/mbedtls/include/"])
|
||||||
|
|
||||||
# Module sources
|
# Module sources
|
||||||
env_mbed_tls.add_source_files(env.modules_sources, "*.cpp")
|
env_mbed_tls.add_source_files(env.modules_sources, "*.cpp")
|
||||||
|
@ -69,11 +69,11 @@ else:
|
|||||||
env_lws.Append(CPPPATH=[thirdparty_dir])
|
env_lws.Append(CPPPATH=[thirdparty_dir])
|
||||||
|
|
||||||
wrapper_includes = ["#thirdparty/lws/mbedtls_wrapper/include/" + inc for inc in ["internal", "openssl", "platform", ""]]
|
wrapper_includes = ["#thirdparty/lws/mbedtls_wrapper/include/" + inc for inc in ["internal", "openssl", "platform", ""]]
|
||||||
env_lws.Append(CPPPATH=wrapper_includes)
|
env_lws.Prepend(CPPPATH=wrapper_includes)
|
||||||
|
|
||||||
if env['builtin_mbedtls']:
|
if env['builtin_mbedtls']:
|
||||||
mbedtls_includes = "#thirdparty/mbedtls/include"
|
mbedtls_includes = "#thirdparty/mbedtls/include"
|
||||||
env_lws.Append(CPPPATH=[mbedtls_includes])
|
env_lws.Prepend(CPPPATH=[mbedtls_includes])
|
||||||
|
|
||||||
if env_lws["platform"] == "windows" or env_lws["platform"] == "uwp":
|
if env_lws["platform"] == "windows" or env_lws["platform"] == "uwp":
|
||||||
env_lws.Append(CPPPATH=[thirdparty_dir + helper_dir])
|
env_lws.Append(CPPPATH=[thirdparty_dir + helper_dir])
|
||||||
|
Loading…
Reference in New Issue
Block a user