[gtk+/wip/meson: 60/136] meson: use add_project_arguments() instead of add_global_arguments()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/meson: 60/136] meson: use add_project_arguments() instead of add_global_arguments()
- Date: Fri, 28 Apr 2017 14:32:01 +0000 (UTC)
commit 13666ad7aa001e80de0d939884d503764a729eb0
Author: Tim-Philipp Müller <tim centricular com>
Date: Sun Mar 12 16:28:11 2017 +0000
meson: use add_project_arguments() instead of add_global_arguments()
So Gtk+ can be used as a subproject.
meson.build | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index 543aa78..195d7ed 100644
--- a/meson.build
+++ b/meson.build
@@ -9,16 +9,17 @@ project('gtk+-3.0', 'c',
gnome = import('gnome')
-add_global_arguments('-DG_LOG_USE_STRUCTURED=1', language: 'c')
-add_global_arguments('-DG_ENABLE_DEBUG', language: 'c')
-add_global_arguments('-DG_ENABLE_CONSISTENCY_CHECKS', language: 'c')
+# FIXME: add GLIB_MIN_REQUIRED_VERSION and GLIB_MAX_ALLOWED_VERSION
+add_project_arguments('-DG_LOG_USE_STRUCTURED=1', language: 'c')
+add_project_arguments('-DG_ENABLE_DEBUG', language: 'c')
+add_project_arguments('-DG_ENABLE_CONSISTENCY_CHECKS', language: 'c')
gtk_version = meson.project_version().split('.')
gtk_major_version = gtk_version[0].to_int()
gtk_minor_version = gtk_version[1].to_int()
gtk_micro_version = gtk_version[2].to_int()
gtk_interface_age = 0
-add_global_arguments('-DGTK_VERSION="' + meson.project_version() + '"', language: 'c')
+add_project_arguments('-DGTK_VERSION="' + meson.project_version() + '"', language: 'c')
add_project_arguments('-D_GNU_SOURCE', language : 'c')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]