diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-01-26 11:01:27 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-02-01 16:03:04 +0200 |
commit | b84ef16aa7ef7a871ccc3a06aca52fe820b47967 (patch) | |
tree | 90ee2dd8dfd5f402046c86ebdb325edd330e0bce /platform/osx/detect.py | |
parent | 33d6d4bdf718c9d71e9e97339a5181ae53706880 (diff) | |
download | redot-engine-b84ef16aa7ef7a871ccc3a06aca52fe820b47967.tar.gz |
[macOS] Cleanup and split Objective-C objects to the separate files
Diffstat (limited to 'platform/osx/detect.py')
-rw-r--r-- | platform/osx/detect.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py index cf601eaa7f..e7fe37d4b5 100644 --- a/platform/osx/detect.py +++ b/platform/osx/detect.py @@ -78,9 +78,9 @@ def configure(env): env["osxcross"] = True if env["arch"] == "arm64": - print("Building for macOS 10.15+, platform arm64.") - env.Append(CCFLAGS=["-arch", "arm64", "-mmacosx-version-min=10.15"]) - env.Append(LINKFLAGS=["-arch", "arm64", "-mmacosx-version-min=10.15"]) + print("Building for macOS 11.00+, platform arm64.") + env.Append(CCFLAGS=["-arch", "arm64", "-mmacosx-version-min=11.00"]) + env.Append(LINKFLAGS=["-arch", "arm64", "-mmacosx-version-min=11.00"]) else: print("Building for macOS 10.12+, platform x86_64.") env.Append(CCFLAGS=["-arch", "x86_64", "-mmacosx-version-min=10.12"]) @@ -190,6 +190,8 @@ def configure(env): env.Append(CCFLAGS=["-Wno-deprecated-declarations"]) # Disable deprecation warnings env.Append(LINKFLAGS=["-framework", "OpenGL"]) + env.Append(LINKFLAGS=["-rpath", "@executable_path/../Frameworks", "-rpath", "@executable_path"]) + if env["vulkan"]: env.Append(CPPDEFINES=["VULKAN_ENABLED"]) env.Append(LINKFLAGS=["-framework", "Metal", "-framework", "QuartzCore", "-framework", "IOSurface"]) |