summaryrefslogtreecommitdiffstats
path: root/platform/osx/detect.py
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2019-07-12 16:18:30 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2020-02-11 11:57:34 +0100
commitb456bfad5cee3922f55621bf7c133cc67337636a (patch)
treed3c77c49894591ea67dac3ad1551e9f36206b9c1 /platform/osx/detect.py
parenteb48be51dbe97aa4fbbbe0d0ebd8a98bee6b263e (diff)
downloadredot-engine-b456bfad5cee3922f55621bf7c133cc67337636a.tar.gz
Add runtime GLES2 / Vulkan context selection.
Diffstat (limited to 'platform/osx/detect.py')
-rw-r--r--platform/osx/detect.py30
1 files changed, 13 insertions, 17 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py
index 989bf6d425..c4e8779523 100644
--- a/platform/osx/detect.py
+++ b/platform/osx/detect.py
@@ -154,20 +154,16 @@ def configure(env):
env.Append(LINKFLAGS=['-framework', 'Cocoa', '-framework', 'Carbon', '-framework', 'AudioUnit', '-framework', 'CoreAudio', '-framework', 'CoreMIDI', '-framework', 'IOKit', '-framework', 'ForceFeedback', '-framework', 'CoreVideo', '-framework', 'AVFoundation', '-framework', 'CoreMedia'])
env.Append(LIBS=['pthread', 'z'])
- if (env["renderer"] == "vulkan"):
- env.Prepend(CPPPATH=['#thirdparty/vulkan/include/', "#thirdparty/vulkan/registry/"])
- env.Append(CPPDEFINES=['VULKAN_ENABLED'])
- env.Append(LINKFLAGS=['-framework', 'Metal', '-framework', 'QuartzCore', '-framework', 'IOSurface'])
- if (env['use_static_mvk']):
- env.Append(LINKFLAGS=['-framework', 'MoltenVK'])
- elif not env["builtin_vulkan_loader"]:
- env.Append(LIBS=['vulkan'])
-
- env.Append(CCFLAGS=['-mmacosx-version-min=10.11'])
- env.Append(LINKFLAGS=['-mmacosx-version-min=10.11'])
- else:
- env.Append(CPPDEFINES=['GLES_ENABLED'])
- env.Append(LINKFLAGS=['-framework', 'OpenGL', '-framework', 'AGL'])
-
- env.Append(CCFLAGS=['-mmacosx-version-min=10.9'])
- env.Append(LINKFLAGS=['-mmacosx-version-min=10.9'])
+ env.Prepend(CPPPATH=['#thirdparty/vulkan/include/', "#thirdparty/vulkan/registry/"])
+ env.Append(CPPDEFINES=['VULKAN_ENABLED'])
+
+ #env.Append(CPPDEFINES=['GLES_ENABLED', 'OPENGL_ENABLED'])
+
+ env.Append(LINKFLAGS=['-framework', 'Metal', '-framework', 'QuartzCore', '-framework', 'IOSurface'])
+ if (env['use_static_mvk']):
+ env.Append(LINKFLAGS=['-framework', 'MoltenVK'])
+ elif not env["builtin_vulkan_loader"]:
+ env.Append(LIBS=['vulkan'])
+
+ env.Append(CCFLAGS=['-mmacosx-version-min=10.11'])
+ env.Append(LINKFLAGS=['-mmacosx-version-min=10.11'])