aboutsummaryrefslogtreecommitdiff
path: root/tools/macos_osxcross.py
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2023-09-23 01:58:11 +0200
committer Spartan322 <Megacake1234@gmail.com>2023-09-23 04:12:25 +0200
commit348668afee5bfbbc376d0615b51dca210213c1ec (patch)
tree6b3cbbc9f6d5e793d6c337023e95d94105ca888f /tools/macos_osxcross.py
parent977661f6f4301be19fa64abfc6cda5040c3899b1 (diff)
Move actions and scripts to separate reusable repos
Diffstat (limited to 'tools/macos_osxcross.py')
-rw-r--r--tools/macos_osxcross.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/tools/macos_osxcross.py b/tools/macos_osxcross.py
deleted file mode 100644
index 8ed9a5d..0000000
--- a/tools/macos_osxcross.py
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copied from https://github.com/godotengine/godot-cpp/blob/0ee980abae91c481009152cdccab8e61c9625303/tools/macos_osxcross.py
-import os
-
-
-def options(opts):
- opts.Add("osxcross_sdk", "OSXCross SDK version", "darwin16")
-
-
-def exists(env):
- return "OSXCROSS_ROOT" in os.environ
-
-
-def generate(env):
- root = os.environ.get("OSXCROSS_ROOT", "")
- if env["arch"] == "arm64":
- basecmd = root + "/target/bin/arm64-apple-" + env["osxcross_sdk"] + "-"
- else:
- basecmd = root + "/target/bin/x86_64-apple-" + env["osxcross_sdk"] + "-"
-
- env["CC"] = basecmd + "clang"
- env["CXX"] = basecmd + "clang++"
- env["AR"] = basecmd + "ar"
- env["RANLIB"] = basecmd + "ranlib"
- env["AS"] = basecmd + "as"
-
- binpath = os.path.join(root, "target", "bin")
- if binpath not in env["ENV"]["PATH"]:
- # Add OSXCROSS bin folder to PATH (required for linking).
- env["ENV"]["PATH"] = "%s:%s" % (binpath, env["ENV"]["PATH"])