meson: Set .so version for xa like autotools does

Fixes: 0ba909f0f1
       ("meson: build gallium xa state tracker")
Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
Dylan Baker 2018-04-04 10:53:16 -07:00
parent 7728720f07
commit 19dbed6477
1 changed files with 3 additions and 1 deletions

View File

@ -30,6 +30,7 @@ if with_ld_version_script
xa_link_depends += files('xa.sym') xa_link_depends += files('xa.sym')
endif endif
_xa_version = '.'.join(xa_version)
libxatracker = shared_library( libxatracker = shared_library(
'xatracker', 'xatracker',
@ -49,12 +50,13 @@ libxatracker = shared_library(
dependencies : [ dependencies : [
dep_thread, driver_nouveau, driver_i915, driver_svga, driver_freedreno, dep_thread, driver_nouveau, driver_i915, driver_svga, driver_freedreno,
], ],
version : _xa_version,
install : true, install : true,
) )
pkg.generate( pkg.generate(
name : 'xatracker', name : 'xatracker',
description : 'Xorg gallium3D acceleration library', description : 'Xorg gallium3D acceleration library',
version : '.'.join(xa_version), version : _xa_version,
libraries : libxatracker, libraries : libxatracker,
) )