From be7cd6877353057ecbcf3c22888e5c19308b58ad Mon Sep 17 00:00:00 2001 From: Danny Angelo Carminati Grein Date: Wed, 24 Oct 2018 15:45:09 -0400 Subject: [PATCH] Correctly configure GTK3 to reflect recomended stable release settings (#4211) * Correctly configure GTK3 to reflect recomended release settings GTK/Glib packaging guidelines recomends a release build to use debugging facilities set to level 'minimum'. Disabling this is officially not recomended for stable releases. For more info read the following link, the section `--enable-debug`. https://developer.gnome.org/glib/stable/glib-building.html#extra-configuration-options * [gtk] Bump control version --- ports/gtk/CMakeLists.txt | 5 ++++- ports/gtk/CONTROL | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ports/gtk/CMakeLists.txt b/ports/gtk/CMakeLists.txt index a8be6b45a97376..22e30b1a78f7c1 100644 --- a/ports/gtk/CMakeLists.txt +++ b/ports/gtk/CMakeLists.txt @@ -76,8 +76,11 @@ add_definitions( -DGTK_DISABLE_SINGLE_INCLUDES -D_USE_MATH_DEFINES) +add_definitions(-DG_ENABLE_DEBUG) if(CMAKE_BUILD_TYPE STREQUAL Debug) - add_definitions(-DG_ENABLE_DEBUG) + add_definitions(-DG_ENABLE_CONSISTENCY_CHECKS) +else() + add_definitions(-DG_DISABLE_CAST_CHECKS) endif() macro(extract_vcproj_sources VC_PROJECT OUT_VAR) diff --git a/ports/gtk/CONTROL b/ports/gtk/CONTROL index e5931156d5bdf9..c470f8ac87ae8e 100644 --- a/ports/gtk/CONTROL +++ b/ports/gtk/CONTROL @@ -1,4 +1,4 @@ Source: gtk -Version: 3.22.19-1 +Version: 3.22.19-2 Description: Portable library for creating graphical user interfaces. Build-Depends: glib, atk, gdk-pixbuf, pango, cairo, libepoxy, gettext