diff options
Diffstat (limited to '3rdParty/OpenSSL/SConscript')
| -rw-r--r-- | 3rdParty/OpenSSL/SConscript | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/3rdParty/OpenSSL/SConscript b/3rdParty/OpenSSL/SConscript index c95ea05..6e114e4 100644 --- a/3rdParty/OpenSSL/SConscript +++ b/3rdParty/OpenSSL/SConscript @@ -1,17 +1,22 @@ Import("env", "conf_env") openssl_bundle_dir = "openssl" +if env["PLATFORM"] == "win32" : + systemIncludeFlag = "/I" +else: + systemIncludeFlag = "-isystem" + if env.get("OPENSSL_BUNDLED", False) : if env["SCONS_STAGE"] == "flags" : env["OPENSSL_FLAGS"] = { - "CPPPATH": [Dir(openssl_bundle_dir + "/include")], + "CCFLAGS": [systemIncludeFlag + Dir(openssl_bundle_dir + "/include").abspath], "LIBPATH": [Dir(".")], "LIBS": ["ssl", "crypto"] } if env["SCONS_STAGE"] == "build" : openssl_env = env.Clone() openssl_env["OPENSSL_BUNDLE_DIR"] = openssl_bundle_dir openssl_env.Replace(CCFLAGS = [flag for flag in env["CCFLAGS"] if flag not in ["-W", "-Wall"]]) openssl_env.Append(CPPPATH = [ |
Swift