[gtksourceview] build: fix min/max GTK version check
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] build: fix min/max GTK version check
- Date: Fri, 9 Apr 2021 15:20:33 +0000 (UTC)
commit 79a6fd67f511eba0da462e74d80c45207e3f23ac
Author: Christian Hergert <chergert redhat com>
Date: Fri Apr 9 08:20:26 2021 -0700
build: fix min/max GTK version check
We dependend on 4.1 GTK (developement branch) for our release, but 4.2
(stable) is out now. Mark that as our dependency and ensure that we set
the flags for deprecation and availability tracking.
meson.build | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index 0cb4bf8c..9e712957 100644
--- a/meson.build
+++ b/meson.build
@@ -68,7 +68,7 @@ build_gtk_doc = get_option('gtk_doc')
cc = meson.get_compiler('c')
glib_req_version = '2.66'
-gtk_req_version = '4.1'
+gtk_req_version = '4.2'
libm_dep = cc.find_library('m', required: false)
@@ -118,10 +118,9 @@ glib_version_arr = glib_req_version.split('.')
glib_major_version = glib_version_arr[0]
glib_minor_version = glib_version_arr[1]
-# XXX: Override until GTK 4 is released
gtk_version_arr = gtk_req_version.split('.')
-gtk_major_version = '4' # gtk_version_arr[0]
-gtk_minor_version = '0' # gtk_version_arr[1]
+gtk_major_version = gtk_version_arr[0]
+gtk_minor_version = gtk_version_arr[1]
# Configurations
add_project_arguments([
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]