[gnome-initial-setup: 4/20] build: Add GLib minimum and maximum dependencies



commit 309b6757866c2357f265ea2c273a5ffdf097689a
Author: Philip Withnall <withnall endlessm com>
Date:   Thu Feb 6 12:55:57 2020 +0000

    build: Add GLib minimum and maximum dependencies
    
    The minimum required version is set inline with our pkg-config
    dependency. The maximum allowed version is arbitrarily set at the
    current GLib stable release.
    
    This should ensure that we don’t accidentally start using new GLib API
    without bumping our dependency (or making use of the new API optional).
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 meson.build | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/meson.build b/meson.build
index 4c3ec4f..464e629 100644
--- a/meson.build
+++ b/meson.build
@@ -29,6 +29,8 @@ conf.set_quoted('GNOMELOCALEDIR', locale_dir)
 conf.set_quoted('PKGDATADIR', pkgdata_dir)
 conf.set('SECRET_API_SUBJECT_TO_CHANGE', true)
 conf.set_quoted('G_LOG_DOMAIN', 'InitialSetup')
+conf.set('GLIB_VERSION_MIN_REQUIRED', 'GLIB_VERSION_2_64')
+conf.set('GLIB_VERSION_MAX_ALLOWED', 'GLIB_VERSION_2_64')
 
 version_arr = meson.project_version().split('.')
 major_version = version_arr[0].to_int()


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