summaryrefslogtreecommitdiff
path: root/builders.py
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-06-18 02:00:18 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-06-18 02:00:18 +0200
commita2fc27f64690d57b0d1946385dd8ec2257e7dcab (patch)
tree5333c277c01d228192f4061ec056febe905ce721 /builders.py
parente19b3701260d4a855736c623b8c8a270413f041e (diff)
downloadfork-godot-webrtc-native-a2fc27f64690d57b0d1946385dd8ec2257e7dcab.tar.gz
fork-godot-webrtc-native-a2fc27f64690d57b0d1946385dd8ec2257e7dcab.tar.bz2
fork-godot-webrtc-native-a2fc27f64690d57b0d1946385dd8ec2257e7dcab.zip
[SCons] Apply "target" to dependencies.
Dependencies used to be built with the default option (release for OpenSSL, debug for libdachannel). They now follow the desired target (producing smaller binaries in release, and bigger in debug).
Diffstat (limited to 'builders.py')
-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 = {