summaryrefslogtreecommitdiff
path: root/platform/linuxbsd/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 /platform/linuxbsd/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 'platform/linuxbsd/SCsub')
-rw-r--r--platform/linuxbsd/SCsub12
1 files changed, 6 insertions, 6 deletions
diff --git a/platform/linuxbsd/SCsub b/platform/linuxbsd/SCsub
index 09a432eae2..636a3c7db2 100644
--- a/platform/linuxbsd/SCsub
+++ b/platform/linuxbsd/SCsub
@@ -12,7 +12,7 @@ common_linuxbsd = [
"freedesktop_screensaver.cpp",
]
-if "x11" in env and env["x11"]:
+if env["x11"]:
common_linuxbsd += [
"gl_manager_x11.cpp",
"detect_prime_x11.cpp",
@@ -20,13 +20,13 @@ if "x11" in env and env["x11"]:
"key_mapping_x11.cpp",
]
-if "speechd" in env and env["speechd"]:
- common_linuxbsd.append(["speechd-so_wrap.c", "tts_linux.cpp"])
+ if env["vulkan"]:
+ common_linuxbsd.append("vulkan_context_x11.cpp")
-if "vulkan" in env and env["vulkan"]:
- common_linuxbsd.append("vulkan_context_x11.cpp")
+if env["speechd"]:
+ common_linuxbsd.append(["speechd-so_wrap.c", "tts_linux.cpp"])
-if "udev" in env and env["udev"]:
+if env["udev"]:
common_linuxbsd.append("libudev-so_wrap.c")
prog = env.add_program("#bin/godot", ["godot_linuxbsd.cpp"] + common_linuxbsd)