Allow unbundling OpenXR (for Linux distros)

Copy XrMatrix4x4f_CreateProjectionFov to our OpenXRUtil, instead of relying
on a private header.
This commit is contained in:
Rémi Verschelde 2023-02-16 14:47:31 +01:00
parent 598378513b
commit 34a07b81ae
No known key found for this signature in database
GPG key ID: C3336907360768E1
9 changed files with 164 additions and 50 deletions

View file

@ -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