[gupnp/wip/phako/55: 1/3] build: Bind library version to project version
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp/wip/phako/55: 1/3] build: Bind library version to project version
- Date: Sat, 3 Jul 2021 17:31:01 +0000 (UTC)
commit b6c27fa9470098b3038d19e60c94ac65fec288b9
Author: Jens Georg <mail jensge org>
Date: Sat Jul 3 18:56:42 2021 +0200
build: Bind library version to project version
libgupnp/meson.build | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/libgupnp/meson.build b/libgupnp/meson.build
index 266a138..d63d07e 100644
--- a/libgupnp/meson.build
+++ b/libgupnp/meson.build
@@ -90,7 +90,12 @@ sources = files(
'xml-util.c'
)
-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()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]