diff options
author | Sergey Minakov <naithar@icloud.com> | 2020-07-16 20:04:09 +0300 |
---|---|---|
committer | Sergey Minakov <naithar@icloud.com> | 2020-07-25 21:55:25 +0200 |
commit | fe60815d665ab49662ad570609389276b2ec6038 (patch) | |
tree | 63433e9fa8b08e3286e64d6b4fe5dde23c2227d1 /platform/iphone/detect.py | |
parent | 8e82ab4bf5c518a322cf3a86ae88ffc7bb05b1f9 (diff) | |
download | redot-engine-fe60815d665ab49662ad570609389276b2ec6038.tar.gz |
iOS SCons: static Vulkan binary usage
Add VMA to iphone platform Use linkflag for iphone building to enforce static linking. Works fine with dynamic '.framework' library
Updated xcode project to use '.a' static library
Diffstat (limited to 'platform/iphone/detect.py')
-rw-r--r-- | platform/iphone/detect.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/platform/iphone/detect.py b/platform/iphone/detect.py index 09304d40f6..6f67fc53c2 100644 --- a/platform/iphone/detect.py +++ b/platform/iphone/detect.py @@ -231,8 +231,7 @@ def configure(env): env.Append(CPPDEFINES=["VULKAN_ENABLED"]) env.Append(LINKFLAGS=["-framework", "IOSurface"]) - if env["use_static_mvk"]: - env.Append(LINKFLAGS=["-framework", "MoltenVK"]) - env["builtin_vulkan"] = False - elif not env["builtin_vulkan"]: - env.Append(LIBS=["vulkan"]) + + # Use Static Vulkan for iOS. Dynamic Framework works fine too. + env.Append(LINKFLAGS=["-framework", "MoltenVK"]) + env["builtin_vulkan"] = False |