build: Add glib_debug option

To allow disabling debug infrastructure in builds with debug symbols.
This commit is contained in:
Ole André Vadla Ravnås
2021-01-20 00:37:22 +01:00
parent 2e3e35157e
commit 670b84ca30
3 changed files with 12 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ GLib's configure options and corresponding macros
none
--buildtype={debug,debugoptimized} [debugoptimized is the default]
-DG_ENABLE_DEBUG -g
-Dglib_debug=disabled
Omits G_ENABLE_DEBUG when implied by --buildtype/-Ddebug
-Dglib_debug=enabled
Defines G_ENABLE_DEBUG regardless of --buildtype/-Ddebug
-Dglib_asserts=false
-DG_DISABLE_ASSERT
-Dglib_checks=false