[gtk/wip/fanc999/gtk-3-24-meson-msvc: 1/14] meson: Specify the library version
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/fanc999/gtk-3-24-meson-msvc: 1/14] meson: Specify the library version
- Date: Fri, 22 Mar 2019 09:35:22 +0000 (UTC)
commit 55d5f3c7beff93636677c4b3939ac7b9b1f90acd
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Mar 22 13:37:24 2019 +0800
meson: Specify the library version
Since we are on a API/ABI release series of GTK, let's not include the
soversion in the DLL filename that we build, so that we don't need to
look for a specific versioned DLL (plus, we will build the version
resource).
gtk/meson.build | 1 +
meson.build | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gtk/meson.build b/gtk/meson.build
index bb4f179149..fd6af239d8 100644
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -894,6 +894,7 @@ endif
# Library
libgtk = shared_library('gtk-3',
+ version: gtk_library_version,
soversion: gtk_soversion,
sources: [typefuncs, gtk_sources, gtkmarshal_h, gtkprivatetypebuiltins_h],
c_args: gtk_cargs + common_cflags,
diff --git a/meson.build b/meson.build
index f8b94f2548..16e9b4c58f 100644
--- a/meson.build
+++ b/meson.build
@@ -77,7 +77,9 @@ gtk_binary_version = '3.0.0'
gtk_binary_age = 100 * gtk_minor_version + gtk_micro_version
-gtk_soversion = '0.@0@.@1@'.format(gtk_binary_age - gtk_interface_age, gtk_interface_age)
+
+gtk_soversion = 0
+gtk_library_version = '@0@.@1@.@2@'.format(gtk_soversion, gtk_binary_age - gtk_interface_age,
gtk_interface_age)
gtk_osxversions = [(100 * gtk_minor_version) + 1, '@0@.@1@.0'.format((100 * gtk_minor_version) + 1,
gtk_micro_version)]
gtk_api_version = '@0@.0'.format(gtk_major_version)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]