Skip to content

Commit 62ab2e5

Browse files
authored
Merge pull request #53 from Faless/fix/build_deps_target
[SCons] Apply "target" to dependencies.
2 parents b2654cc + a2fc27f commit 62ab2e5

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)