summaryrefslogtreecommitdiff
path: root/platform/osx/detect.py
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-11-02 23:22:01 +0100
committerGitHub <noreply@github.com>2021-11-02 23:22:01 +0100
commitaf80bc8abecc30c77901967281679e380fb9f952 (patch)
tree6038ee632cd2d62ef1fede8e1431fdb9de90ed8e /platform/osx/detect.py
parent81c93caf021c301a1e94132dab3bb15670f4bcb7 (diff)
parent1ad14eb14b0b25319d47c987edb0d096c470dc64 (diff)
Merge pull request #54505 from bruvzg/macos_opengles3
Diffstat (limited to 'platform/osx/detect.py')
-rw-r--r--platform/osx/detect.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py
index d9b55631cd..6bd79c7d4f 100644
--- a/platform/osx/detect.py
+++ b/platform/osx/detect.py
@@ -183,10 +183,13 @@ def configure(env):
)
env.Append(LIBS=["pthread", "z"])
+ if env["opengl3"]:
+ env.Append(CPPDEFINES=["GLES_ENABLED", "GLES3_ENABLED"])
+ env.Append(CCFLAGS=["-Wno-deprecated-declarations"]) # Disable deprecation warnings
+ env.Append(LINKFLAGS=["-framework", "OpenGL"])
+
if env["vulkan"]:
env.Append(CPPDEFINES=["VULKAN_ENABLED"])
env.Append(LINKFLAGS=["-framework", "Metal", "-framework", "QuartzCore", "-framework", "IOSurface"])
if not env["use_volk"]:
env.Append(LINKFLAGS=["-L$VULKAN_SDK_PATH/MoltenVK/MoltenVK.xcframework/macos-arm64_x86_64/", "-lMoltenVK"])
-
- # env.Append(CPPDEFINES=['GLES_ENABLED', 'GLES3_ENABLED'])