Skip to content

Commit a2fc27f

Browse files
committed
[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).
1 parent e19b370 commit a2fc27f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

builders.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ def ssl_action(target, source, env):
6363
"--prefix=%s" % install_dir,
6464
"--openssldir=%s" % install_dir,
6565
]
66+
if env["target"] == "debug":
67+
args.append("-d")
68+
6669
if env["platform"] != "windows":
6770
args.append("no-shared") # Windows "app" doesn't like static-only builds.
6871
if env["platform"] == "linux":
@@ -160,6 +163,7 @@ def rtc_action(target, source, env):
160163
"-DOPENSSL_INCLUDE_DIR=%s" % get_ssl_include_dir(env),
161164
"-DOPENSSL_SSL_LIBRARY=%s/libssl.a" % get_ssl_build_dir(env),
162165
"-DOPENSSL_CRYPTO_LIBRARY=%s/libcrypto.a" % get_ssl_build_dir(env),
166+
"-DCMAKE_BUILD_TYPE=%s" % ("Release" if env["target"] == "release" else "Debug"),
163167
]
164168
if env["platform"] == "android":
165169
abi = {

0 commit comments

Comments
 (0)