[gtk/wip/fanc999/gtk-3-24-meson-msvc: 422/434] meson: Specify the library version



commit a8127ac554a516c76ee76faf61b7aecc98ebe6f7
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..6a881582bf 100644
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -894,6 +894,7 @@ endif
 
 # Library
 libgtk = shared_library('gtk-3',
+                        library_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]