summaryrefslogtreecommitdiff
path: root/platform/x11/detect.py
diff options
context:
space:
mode:
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'])