summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-06-18 03:00:48 +0200
committerGitHub <noreply@github.com>2022-06-18 03:00:48 +0200
commit62ab2e59f8781286724b1347a0bf97b88ccc63e6 (patch)
tree5333c277c01d228192f4061ec056febe905ce721
parentb2654cc2bd5487943c44b4bdee646113d4cf45f3 (diff)
parenta2fc27f64690d57b0d1946385dd8ec2257e7dcab (diff)
downloadfork-godot-webrtc-native-62ab2e59f8781286724b1347a0bf97b88ccc63e6.tar.gz
fork-godot-webrtc-native-62ab2e59f8781286724b1347a0bf97b88ccc63e6.tar.bz2
fork-godot-webrtc-native-62ab2e59f8781286724b1347a0bf97b88ccc63e6.zip
Merge pull request #53 from Faless/fix/build_deps_target
[SCons] Apply "target" to dependencies.
-rw-r--r--builders.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/builders.py b/builders.py
index 32dd1f3..2c682bc 100644
--- a/builders.py
+++ b/builders.py
@@ -63,6 +63,9 @@ def ssl_action(target, source, env):
"--prefix=%s" % install_dir,
"--openssldir=%s" % install_dir,
]
+ if env["target"] == "debug":
+ args.append("-d")
+
if env["platform"] != "windows":
args.append("no-shared") # Windows "app" doesn't like static-only builds.
if env["platform"] == "linux":
@@ -160,6 +163,7 @@ def rtc_action(target, source, env):
"-DOPENSSL_INCLUDE_DIR=%s" % get_ssl_include_dir(env),
"-DOPENSSL_SSL_LIBRARY=%s/libssl.a" % get_ssl_build_dir(env),
"-DOPENSSL_CRYPTO_LIBRARY=%s/libcrypto.a" % get_ssl_build_dir(env),
+ "-DCMAKE_BUILD_TYPE=%s" % ("Release" if env["target"] == "release" else "Debug"),
]
if env["platform"] == "android":
abi = {