summaryrefslogtreecommitdiff
path: root/tools/common.py
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-12-29 19:19:55 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-12-30 14:34:15 +0100
commitbdd9d5074534db22ef0030f52db35aa04721ed09 (patch)
tree02e7cb119a26e52b3c472c5c0ed7b03a5095da05 /tools/common.py
parent5348407de99ccfa49033170674060397f56490e6 (diff)
downloadfork-godot-webrtc-native-bdd9d5074534db22ef0030f52db35aa04721ed09.tar.gz
fork-godot-webrtc-native-bdd9d5074534db22ef0030f52db35aa04721ed09.tar.bz2
fork-godot-webrtc-native-bdd9d5074534db22ef0030f52db35aa04721ed09.zip
[SCons] Refactor build tools.
Split dependency builders into separate tools, optimize OpenSSL builds.
Diffstat (limited to 'tools/common.py')
-rw-r--r--tools/common.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/common.py b/tools/common.py
new file mode 100644
index 0000000..aa99c5c
--- /dev/null
+++ b/tools/common.py
@@ -0,0 +1,8 @@
+
+def exists(env):
+ return True
+
+
+def generate(env):
+ env["DEPS_SOURCE"] = env.Dir("#thirdparty").abspath
+ env["DEPS_BUILD"] = env.Dir("#bin/thirdparty").abspath + "/{}.{}.dir".format(env["suffix"][1:], "RelWithDebInfo" if env["debug_symbols"] else "Release")