[gegl] meson: define macro GEGL_ENABLE_DEBUG on debug builds.



commit b8283d6489a617aeffda0a9dca49dea8214a0e3e
Author: Jehan <jehan girinstud io>
Date:   Tue May 5 18:34:46 2020 +0200

    meson: define macro GEGL_ENABLE_DEBUG on debug builds.
    
    It seems this got lost with the meson port, as this macro was never set.
    Now it will be set for debug and debugoptimized builds.

 meson.build | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/meson.build b/meson.build
index 70c598d19..ee932ee4a 100644
--- a/meson.build
+++ b/meson.build
@@ -107,6 +107,10 @@ if buildtype == 'debugoptimized' or buildtype == 'release'
   cflags_common += ['-Ofast']
 endif
 
+if buildtype == 'debugoptimized' or buildtype == 'debug'
+  cflags_common += ['-DGEGL_ENABLE_DEBUG']
+endif
+
 cflags_common += [
   '-Winit-self',
   '-Wmissing-declarations',


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