[gnome-builder: 13/139] build: use major.minor for ABI version



commit c1cbec5e0033cb70893f745cf305ecd9c0c58491
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jan 9 15:05:01 2019 -0800

    build: use major.minor for ABI version
    
    We will start being a bit more strict with ABI during minor releases. This
    also allows us to start checking for the ABI of plugins and ensure they
    match our version expected.

 meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index d285122f1..65672ea55 100644
--- a/meson.build
+++ b/meson.build
@@ -14,7 +14,7 @@ MAJOR_VERSION = version_split[0]
 MINOR_VERSION = version_split[1]
 MICRO_VERSION = version_split[2]
 
-libide_api_version = '1.0'
+libide_api_version = '@0@.@1@'.format(MAJOR_VERSION, MINOR_VERSION)
 
 pkgdocdir_abs = join_paths(get_option('prefix'), get_option('datadir'), 'doc', 'gnome-builder')
 pkglibdir_abs = join_paths(get_option('prefix'), get_option('libdir'), 'gnome-builder')
@@ -78,6 +78,8 @@ status += [
 
 config_h = configuration_data()
 config_h.set_quoted('PACKAGE_NAME', 'gnome-builder')
+config_h.set_quoted('PACKAGE_ABI_S', libide_api_version)
+config_h.set('PACKAGE_ABI', libide_api_version)
 config_h.set_quoted('PACKAGE_VERSION', meson.project_version())
 config_h.set_quoted('PACKAGE_STRING', 'gnome-builder-' + meson.project_version())
 config_h.set_quoted('PACKAGE_DATADIR', join_paths(get_option('prefix'), get_option('datadir')))


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