[gnote/meson] Define DEBUG for debug builds



commit b56f20b94b6e2448d1bb1e5fa7723213a094f92e
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Mon Apr 5 14:05:56 2021 +0300

    Define DEBUG for debug builds

 meson.build | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/meson.build b/meson.build
index cc39a6a5..c9ad06e6 100644
--- a/meson.build
+++ b/meson.build
@@ -20,6 +20,10 @@ dependencies = [
   dependency('uuid'),
 ]
 
+if get_option('buildtype').startswith('debug')
+  add_project_arguments('-DDEBUG', language: 'cpp')
+endif
+
 
 conf_data = configuration_data()
 conf_data.set('package_name', 'gnote')


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