summaryrefslogtreecommitdiffstats
path: root/platform/x11/detect.py
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2019-06-22 19:34:26 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2020-02-11 11:57:11 +0100
commiteb48be51dbe97aa4fbbbe0d0ebd8a98bee6b263e (patch)
tree9a5b6bfd50e7ddb5b348c97bd60d30b290d27d49 /platform/x11/detect.py
parent4fe3ee1730167b90ec8ae70c871c1dad032981d5 (diff)
downloadredot-engine-eb48be51dbe97aa4fbbbe0d0ebd8a98bee6b263e.tar.gz
Add static Vulkan loader.
Initial Vulkan support for Windows. Initial Vulkan support for macOS.
Diffstat (limited to 'platform/x11/detect.py')
-rw-r--r--platform/x11/detect.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index 5f43d19151..eee439ceb4 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -319,9 +319,17 @@ def configure(env):
env.Prepend(CPPPATH=['#platform/x11'])
env.Append(CPPDEFINES=['X11_ENABLED', 'UNIX_ENABLED'])
- env.Append(CPPDEFINES=['VULKAN_ENABLED'])
- env.Append(LIBS=['vulkan'])
- env.Append(LIBS=['GL', 'pthread'])
+
+ if (env["renderer"] == "vulkan"):
+ env.Prepend(CPPPATH=['#thirdparty/vulkan/include/', "#thirdparty/vulkan/registry/"])
+ env.Append(CPPDEFINES=['VULKAN_ENABLED'])
+ if not env["builtin_vulkan_loader"]:
+ env.Append(LIBS=['vulkan'])
+ else:
+ env.Append(CPPDEFINES=['OPENGL_ENABLED'])
+ env.Append(LIBS=['GL'])
+
+ env.Append(LIBS=['pthread'])
if (platform.system() == "Linux"):
env.Append(LIBS=['dl'])