summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2024-08-08 15:23:34 -0700
committerEric Engestrom <eric@engestrom.ch>2024-08-14 16:07:01 +0200
commit9f8856c5af60e49e4dfb48cce7343fde44c0cc68 (patch)
treeae23b89a36c2cafdb856dcef576114c5eff0f599 /src/gallium
parent10dfd5d13b81ff6604e80e8ffc3d366cea21c83d (diff)
gallium: Add option to not add version to libgallium filename
This is unneeded in some environments, like ChromeOS and Android. And for CrOS it specifically causes problems with the gpu sandbox rules.. we don't want to have to update the sandbox rules for each new mesa version. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30579> (cherry picked from commit 19ff16387a0c844552f4956dfbce176fd62c1cc8)
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/targets/dri/meson.build8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/targets/dri/meson.build b/src/gallium/targets/dri/meson.build
index c6cc48e503d..c58eaaa220c 100644
--- a/src/gallium/targets/dri/meson.build
+++ b/src/gallium/targets/dri/meson.build
@@ -22,8 +22,14 @@ if with_ld_dynamic_list
gallium_dri_link_depends += files('../dri.dyn')
endif
+if get_option('unversion-libgallium')
+ libgallium_name = 'gallium_dri'
+else
+ libgallium_name = 'gallium-@0@'.format(meson.project_version())
+endif
+
libgallium_dri = shared_library(
- 'gallium-@0@'.format(meson.project_version()),
+ libgallium_name,
files('dri_target.c'),
include_directories : [
inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_util, inc_gallium_drivers,