From c88cd24e97a4ee76efe50ac31b1beeca63594269 Mon Sep 17 00:00:00 2001 From: Sebastian Wick Date: Thu, 9 Feb 2023 14:42:53 +0100 Subject: [PATCH] build: Set the library version and SOVERSION We use semantic versioning but will still have ABI breaks in the 0.x.x series so we will just bump the SONAME every new minor release. Signed-off-by: Sebastian Wick --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 4b3fd6f..18baf99 100644 --- a/meson.build +++ b/meson.build @@ -10,6 +10,8 @@ project( ], ) +assert(meson.project_version().split('.')[0] == '0') + dep_hwdata = dependency('hwdata', required: false, native: true) if dep_hwdata.found() hwdata_dir = dep_hwdata.get_variable(pkgconfig: 'pkgdatadir') @@ -67,6 +69,8 @@ di_lib = library( link_args: symbols_flag, link_depends: symbols_file, install: true, + version: meson.project_version(), + soversion: meson.project_version().split('.')[1], ) install_subdir(