About Social Code
aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2025-09-25 13:40:14 +0100
committerMarge Bot <marge-bot@fdo.invalid>2025-09-26 10:47:31 +0000
commitbe8cac52d3e81abd082d7b36751d661161dc7698 (patch)
tree79e52cfebec0ddf12e78f4180873f0eea95cf918 /meson.build
parent2a14b7224b45f242e1756bd83a81ce48fa3dd755 (diff)
vulkan: Consistently form driver library names as prefix + name + suffix
This consistently uses `NAME.dll` on Windows, `libNAME.dylib` on Darwin derivatives such as macOS, and `libNAME.so` on Linux, *BSD and so on. It's also consistent about using the local variable name `icd_file_name` for this name in every Vulkan driver, which was already the case in many but not all drivers. Some of these drivers probably don't make sense (or don't work) on Windows and/or macOS, but if this is kept consistent for all drivers, it should avoid the need for driver-specific commits like commit 611e9f29e "lavapipe: fix icd generation for windows", commit 951f3287 "lavapipe: set empty dll prefix", commit 13e7a39f "lavapipe: fixes for macOS support", commit 7008e655 "radv: Update JSON generator if Windows" and so on, each time a driver is found to be relevant on more platforms than previously believed. Signed-off-by: Simon McVittie <smcv@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37576>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 5d6ee648f24..c5564e9c2c1 100644
--- a/meson.build
+++ b/meson.build
@@ -20,10 +20,13 @@ project(
if host_machine.system() == 'darwin'
add_languages('objc', native : false)
add_project_arguments('-fobjc-arc', language : 'objc')
+ libname_prefix = 'lib'
libname_suffix = 'dylib'
elif host_machine.system() == 'windows'
+ libname_prefix = ''
libname_suffix = 'dll'
else
+ libname_prefix = 'lib'
libname_suffix = 'so'
endif