[gtk+] 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+] meson: use add_project_arguments() instead of add_global_arguments()
- Date: Wed, 3 May 2017 14:25:54 +0000 (UTC)
commit b8a017b08195e374bf9a376cfcd9ec8374a40cd6
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]