[gxml] Making library LT version consistent



commit 7cc29e7f73ddc9376006f685d394b2854dfa5a91
Author: Daniel Espinosa <esodan gmail com>
Date:   Sun Dec 3 08:53:53 2017 -0600

    Making library LT version consistent
    
    Fixed politic for library LT version update to make it
    consistent.
    
    Now Meson build system can create SO versions following same
    politics that Autotools and make then interchangagle when
    producing SO/DLL binaries.

 configure.ac     |    5 ++---
 gxml/meson.build |   10 +++++++++-
 2 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 1d276cf..9d44d79 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,11 +16,10 @@ m4_define([project_micro_version], [3])
 m4_define([project_nano_version], [0])
 
 # LT_VERSION
+#   If public symbols have been removed or changed since last release,
+#     increment current and set revision and age to 0
 #   If library source has changed since last release, increment revision
-#   If public symbols have been added, removed or changed since last release,
-#     increment current and set revision to 0
 #   If public symbols have been added since last release, increment age
-#   If public symbols have been removed since last release, set age to 0
 m4_define([project_lt_current], [15])
 m4_define([project_lt_revision], [0])
 m4_define([project_lt_age], [0])
diff --git a/gxml/meson.build b/gxml/meson.build
index dadfd75..fe2059a 100644
--- a/gxml/meson.build
+++ b/gxml/meson.build
@@ -130,9 +130,17 @@ sources = files ([
 inc_libh = include_directories ('.')
 inc_libh_dep = declare_dependency (include_directories : inc_libh)
 
+#   If public symbols have been removed or changed since last release,
+#     increment current and set revision and age to 0
+#   If library source has changed since last release, increment revision
+#   If public symbols have been added since last release, increment age
+LT_CURRENT='15'
+LT_REVISION='0'
+LT_AGE='0'
 lib = library(VERSIONED_PROJECT_NAME,
        valasources+sources+configvapi,
-       version : PROJECT_VERSION,
+       version : LT_CURRENT+'.'+LT_REVISION+'.'+LT_AGE,
+       soversion : LT_CURRENT,
        vala_header : PROJECT_NAME+'.h',
        vala_vapi : VAPI_NAME,
        vala_gir : GIR_NAME,


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