[gnome-common] Chech for single header includes.
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-common] Chech for single header includes.
- Date: Sat, 8 Aug 2009 13:23:47 +0000 (UTC)
commit aac1a8ec119d49276257c198327315c234ed2a0d
Author: Christian Persch <chpe gnome org>
Date: Sat Aug 8 15:22:23 2009 +0200
Chech for single header includes.
When maintainer mode is enabled, check for single header includes as
well as deprecated flags (#557070).
macros2/gnome-common.m4 | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/macros2/gnome-common.m4 b/macros2/gnome-common.m4
index 21f3ef1..5dfa67e 100644
--- a/macros2/gnome-common.m4
+++ b/macros2/gnome-common.m4
@@ -38,10 +38,12 @@ AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
[
AC_REQUIRE([AM_MAINTAINER_MODE])
+ DISABLE_DEPRECATED=""
if test $USE_MAINTAINER_MODE = yes; then
- DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGCONF_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -DGNOME_VFS_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED -DWNCK_DISABLE_DEPRECATED -DLIBSOUP_DISABLE_DEPRECATED"
- else
- DISABLE_DEPRECATED=""
- fi
+ DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
+ for DOMAIN in $DOMAINS; do
+ DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
+ done
+
AC_SUBST(DISABLE_DEPRECATED)
])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]