[gssdp] build: Bind library version to project version
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp] build: Bind library version to project version
- Date: Sat, 3 Jul 2021 15:36:29 +0000 (UTC)
commit 71bca5f8961e7e0fd7496a06698326b203459a68
Author: Jens Georg <mail jensge org>
Date: Sat Jul 3 17:19:34 2021 +0200
build: Bind library version to project version
libgssdp/meson.build | 7 ++++++-
meson.build | 7 +++++++
2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/libgssdp/meson.build b/libgssdp/meson.build
index dcebe1a..074f551 100644
--- a/libgssdp/meson.build
+++ b/libgssdp/meson.build
@@ -48,7 +48,12 @@ if generic_unix
sources += 'gssdp-net-posix.c'
endif
-version = '0.0.0'
+v = meson.project_version().split('.')
+soversion = 0
+library_minor = v[0].to_int() * 100 + v[1].to_int()
+library_micro = v[2].to_int()
+
+version = '@0@.@1@.@2@'.format(soversion, library_minor, library_micro)
version_arr = version.split('.')
major_version = version_arr[0].to_int()
minor_version = version_arr[1].to_int()
diff --git a/meson.build b/meson.build
index 2683c70..debb900 100644
--- a/meson.build
+++ b/meson.build
@@ -100,3 +100,10 @@ endif
if not meson.is_subproject()
meson.add_dist_script('build-aux/dist-docs.py')
endif
+
+summary({'Version': meson.project_version(),
+ 'Library version': version,
+ 'Darwin version': darwin_versions},
+ section: 'Versioning')
+
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]