summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd/detect.py
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-16 14:47:31 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-06-16 16:25:04 +0200
commit34a07b81ae640dc877a47091ca9a63d1a2cba07b (patch)
tree5ce7452cdaaecda25de4e002258ee95d3c54200b /platform/linuxbsd/detect.py
parent598378513b256e69e9b824c36136774c41cc763c (diff)
downloadredot-engine-34a07b81ae640dc877a47091ca9a63d1a2cba07b.tar.gz
Allow unbundling OpenXR (for Linux distros)
Copy XrMatrix4x4f_CreateProjectionFov to our OpenXRUtil, instead of relying on a private header.
Diffstat (limited to 'platform/linuxbsd/detect.py')
-rw-r--r--platform/linuxbsd/detect.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py
index dadc03685b..11fd2fc809 100644
--- a/platform/linuxbsd/detect.py
+++ b/platform/linuxbsd/detect.py
@@ -291,6 +291,9 @@ def configure(env: "Environment"):
# No pkgconfig file so far, hardcode expected lib name.
env.Append(LIBS=["embree3"])
+ if not env["builtin_openxr"]:
+ env.ParseConfig("pkg-config openxr --cflags --libs")
+
if env["fontconfig"]:
if not env["use_sowrap"]:
if os.system("pkg-config --exists fontconfig") == 0: # 0 means found