[igt-dev] [PATCH i-g-t v2 4/8] meson: Add .so versioning

Lyude
2019-04-16T23:26:01Z

From: Lyude Paul <lyude@redhat.com>

While I'm pretty confident that no one cares to use libigt.so or
lib_aubdump.so anywhere outside of igt, many distributions including
Fedora and Debian strongly suggest that packages have some sort of so
versioning, even if it's just '0'. So, let's fulfill that minimum
requirement to make this easier to package.

Signed-off-by: Lyude Paul <lyude@redhat.com>
---
lib/meson.build | 3 ++-
tools/meson.build | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/meson.build b/lib/meson.build
index a8462933..2aad9d9e 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -132,7 +132,8 @@ lib_igt_build = shared_library('igt',
['dummy.c'],
link_whole: lib_intermediates,
dependencies: lib_deps,
- install : true
+ install : true,
+ soversion : '0',
)

lib_igt = declare_dependency(link_with : lib_igt_build,
diff --git a/tools/meson.build b/tools/meson.build
index 5d00f2e3..dfaed82a 100644
--- a/tools/meson.build
+++ b/tools/meson.build
@@ -93,7 +93,8 @@ install_subdir('registers', install_dir : datadir,
shared_library('intel_aubdump', 'aubdump.c',
dependencies : [ lib_igt_chipset, dlsym ],
name_prefix : '',
- install : true)
+ install : true,
+ soversion : '0')

executable('intel_gpu_top', 'intel_gpu_top.c',
install : true,
--
2.20.1