meson: Add versioning for xvmc tracker
authorEmmanuel Vadot <manu@FreeBSD.org>
Wed, 1 Jul 2020 09:54:32 +0000 (11:54 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 3 Jul 2020 09:25:52 +0000 (09:25 +0000)
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 <eric@engestrom.ch>
Signed-off-by: Emmanuel Vadot <manu@FreeBSD.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5708>

src/gallium/frontends/xvmc/meson.build
src/gallium/targets/xvmc/meson.build

index 6ed9f30248b4e8c01e82dc1f45338116e4ab0deb..75a2716a239f752a8f584e255d6ff5b1dcb91719 100644 (file)
@@ -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'),
index 6ae5a4f72824f25e81823408465de11de60394a3..9fa0f659c17b037630996e9583e4552ae2873ba8 100644 (file)
@@ -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