[planner: 11/32] build: Pass GTK_VERSION_{MIN, MAX}_REQUIRED for compilation




commit 2ffdb1d093e0ae7470f8d5108291a28b418f871c
Author: Mart Raudsepp <leio gentoo org>
Date:   Sat May 29 23:14:41 2021 +0300

    build: Pass GTK_VERSION_{MIN,MAX}_REQUIRED for compilation
    
    This removes deprecation warnings added in newer GTK than we currently
    require and use. There is plenty to modernize without caring for the
    newest GTK deprecations for now.

 meson.build | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/meson.build b/meson.build
index 8c90e92e..a2bdf550 100644
--- a/meson.build
+++ b/meson.build
@@ -66,9 +66,15 @@ glib_version_arr = glib_req_version.split('.')
 glib_major_version = glib_version_arr[0]
 glib_minor_version = glib_version_arr[1]
 
+gtk_version_arr = gtk_req_version.split('.')
+gtk_major_version = gtk_version_arr[0]
+gtk_minor_version = gtk_version_arr[1]
+
 add_project_arguments([
   '-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_@0@_@1@'.format(glib_major_version, glib_minor_version),
   '-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_@0@_@1@'.format(glib_major_version, glib_minor_version),
+  '-DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_@0@_@1@'.format(gtk_major_version, gtk_minor_version),
+  '-DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_@0@_@1@'.format(gtk_major_version, gtk_minor_version),
 ], language: 'c')
 
 subdir('po')


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