summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-06-21 04:34:38 +0200
committerGitHub <noreply@github.com>2023-06-21 04:34:38 +0200
commitb03099f7b4d29acd06eca67914155f9425da92c1 (patch)
treeb929a16bde002200f430ec4df0d44defd90f0481 /SConstruct
parent32ae1d11958dcf04d0bd9c5c5ca98e21221a57d7 (diff)
parent85efdfd6ce365a0ac8502777b8c142be463cfe29 (diff)
downloadfork-godot-webrtc-native-b03099f7b4d29acd06eca67914155f9425da92c1.tar.gz
fork-godot-webrtc-native-b03099f7b4d29acd06eca67914155f9425da92c1.tar.bz2
fork-godot-webrtc-native-b03099f7b4d29acd06eca67914155f9425da92c1.zip
Merge pull request #105 from Faless/build/tool_options
Linux ARM32/ARM64, better toolchains support.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct8
1 files changed, 6 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index fffebea..58b501b 100644
--- a/SConstruct
+++ b/SConstruct
@@ -145,9 +145,13 @@ for tool in ["openssl", "cmake", "rtc"]:
ssl = env.OpenSSL()
-rtc = env.BuildLibDataChannel()
+rtc = env.BuildLibDataChannel(ssl)
-env.Depends(sources, [ssl, rtc])
+# Forces building our sources after OpenSSL and libdatachannel.
+# This is because OpenSSL headers are generated by their build system and SCons doesn't know about them.
+# Note: This might not be necessary in this specific case since our sources doesn't include OpenSSL headers directly,
+# but it's better to be safe in case of indirect inclusions by one of our other dependencies.
+env.Depends(sources, ssl + rtc)
# Make the shared library
result_name = "libwebrtc_native{}{}".format(env["suffix"], env["SHLIBSUFFIX"])