From 02d0b2d5604d4a9e0ddfa8234db4c92682de0e69 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Wed, 1 Jul 2020 11:54:32 +0200 Subject: [PATCH] meson: Add versioning for xvmc tracker The xvmc tracker used to be versionned with autotool but this seems to have been lost in the meson switch. Fixes: 22a817af8a89eb3c762f ("meson: build gallium xvmc state tracker") Reviewed-by: Eric Engestrom Signed-off-by: Emmanuel Vadot Part-of: --- src/gallium/frontends/xvmc/meson.build | 3 +++ src/gallium/targets/xvmc/meson.build | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/frontends/xvmc/meson.build b/src/gallium/frontends/xvmc/meson.build index 6ed9f30248b..75a2716a239 100644 --- a/src/gallium/frontends/xvmc/meson.build +++ b/src/gallium/frontends/xvmc/meson.build @@ -18,6 +18,9 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +XVMC_MAJOR = 1 +XVMC_MINOR = 0 + libxvmc_st = static_library( 'xvmc_st', files('attributes.c', 'block.c', 'context.c', 'surface.c', 'subpicture.c'), diff --git a/src/gallium/targets/xvmc/meson.build b/src/gallium/targets/xvmc/meson.build index 6ae5a4f7282..9fa0f659c17 100644 --- a/src/gallium/targets/xvmc/meson.build +++ b/src/gallium/targets/xvmc/meson.build @@ -50,11 +50,12 @@ libxvmc_gallium = shared_library( install : true, install_dir : xvmc_drivers_path, name_suffix : 'so', + version : '@0@.@1@.0'.format(XVMC_MAJOR, XVMC_MINOR), ) foreach d : [[with_gallium_r600, 'r600'], [with_gallium_nouveau, 'nouveau']] if d[0] - xvmc_drivers += 'libXvMC@0@.so'.format(d[1]) + xvmc_drivers += 'libXvMC@0@.so.@1@.@2@.0'.format(d[1], XVMC_MAJOR, XVMC_MINOR) endif endforeach -- 2.30.2