summaryrefslogtreecommitdiff
path: root/modules/openxr/SCsub
diff options
context:
space:
mode:
authorRiteo <riteo@posteo.net>2022-07-20 03:42:15 +0200
committerRiteo <riteo@posteo.net>2022-07-20 19:48:35 +0200
commita21f8b7c13f9888d9c896f53dce0b6689374e019 (patch)
treecf890b497ab075645e58fefaa42046e05abc3b49 /modules/openxr/SCsub
parent5777ec590bb311a8ca3e2daf20d86e483cce7101 (diff)
Improve `linuxbsd` headless building, cleanup build scripts
Now the `linuxbsd` platform can be built headlessly (e.g. without X11 development libraries). I also cleaned up some weird (old?) usages of the `env` variable which seem to make no difference and are used nowhere else.
Diffstat (limited to 'modules/openxr/SCsub')
-rw-r--r--modules/openxr/SCsub6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/openxr/SCsub b/modules/openxr/SCsub
index 8783e061d2..593d1ff3c1 100644
--- a/modules/openxr/SCsub
+++ b/modules/openxr/SCsub
@@ -35,7 +35,11 @@ if env["platform"] == "android":
# may need to include java parts of the openxr loader
elif env["platform"] == "linuxbsd":
- env_thirdparty.AppendUnique(CPPDEFINES=["XR_OS_LINUX", "XR_USE_PLATFORM_XLIB"])
+ env_thirdparty.AppendUnique(CPPDEFINES=["XR_OS_LINUX"])
+
+ if env["x11"]:
+ env_thirdparty.AppendUnique(CPPDEFINES=["XR_USE_PLATFORM_XLIB"])
+
# FIXME: Review what needs to be set for Android and macOS.
env_thirdparty.AppendUnique(CPPDEFINES=["HAVE_SECURE_GETENV"])
elif env["platform"] == "windows":