[gssdp] build: fix macOS dylib versioning
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp] build: fix macOS dylib versioning
- Date: Thu, 24 Oct 2019 07:46:38 +0000 (UTC)
commit 84ac385c0fa6c986e9e9880c617ab14baa393369
Author: Tom Schoonjans <Tom Schoonjans diamond ac uk>
Date: Thu Mar 14 12:31:27 2019 +0000
build: fix macOS dylib versioning
libgssdp/meson.build | 12 +++++++++++-
meson.build | 2 +-
2 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/libgssdp/meson.build b/libgssdp/meson.build
index aa66def..a022609 100644
--- a/libgssdp/meson.build
+++ b/libgssdp/meson.build
@@ -48,8 +48,18 @@ if generic_unix
sources += 'gssdp-net-posix.c'
endif
+version = '0.0.0'
+version_arr = version.split('.')
+major_version = version_arr[0].to_int()
+minor_version = version_arr[1].to_int()
+micro_version = version_arr[2].to_int()
+current = major_version + minor_version + 1
+interface_age = micro_version
+darwin_versions = [current, '@0@.@1@'.format(current, interface_age)]
+
libgssdp = library('gssdp-1.2', sources + enums,
- version : '0.0.0',
+ version : version,
+ darwin_versions : darwin_versions,
dependencies : dependencies + system_deps,
include_directories : include_directories('..'),
install : true)
diff --git a/meson.build b/meson.build
index 7e898eb..3d75cc9 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,4 @@
-project('gssdp', 'c', version: '1.2.0')
+project('gssdp', 'c', version: '1.2.0', meson_version : '>= 0.48.0')
gnome = import('gnome')
pkg = import('pkgconfig')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]