[gtk/library-versioning] build: Prepare library versioning



commit 6870159c1d5a81f9ddf30e6a441783ffb2cf1f7d
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Apr 14 09:15:31 2020 -0400

    build: Prepare library versioning
    
    Set version and soversion separately for the library.
    When we do the 4.0 release, we will set:
    
    gtk_soversion = '1'
    gtk_library_version = '1.0.0'
    
    See https://gitlab.gnome.org/GNOME/gtk/-/issues/1963

 gtk/meson.build | 1 +
 meson.build     | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gtk/meson.build b/gtk/meson.build
index 28e23b6781..71fb901e21 100644
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -987,6 +987,7 @@ endif
 # Library
 libgtk = library('gtk-4',
                  soversion: gtk_soversion,
+                 version: gtk_library_version,
                  sources: [typefuncs, gtk_sources, gtkmarshal_h, gtkprivatetypebuiltins_h],
                  c_args: gtk_cargs + common_cflags,
                  include_directories: [confinc, gdkinc, gskinc, gtkinc],
diff --git a/meson.build b/meson.build
index ecf4228b40..d471be510d 100644
--- a/meson.build
+++ b/meson.build
@@ -85,7 +85,8 @@ gtk_binary_version = '4.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.@0@.@1@'.format(gtk_binary_age - gtk_interface_age, gtk_interface_age)
 
 gtk_api_version = '4.0'
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]