summaryrefslogtreecommitdiff
path: root/builders.py
diff options
context:
space:
mode:
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 = {