[empathy: 1/2] Use autotools magic to take care of disabling deprecated symbols



commit e71bed8e3b0016f489ea420114cbe89dabf77896
Author: Laurent Bigonville <bigon bigon be>
Date:   Fri Apr 17 18:24:42 2009 +0200

    Use autotools magic to take care of disabling deprecated symbols
    
    Passing --enable-maintainer-mode to the configure will disable
    deprecated symbols
---
 configure.ac                    |    7 ++-----
 extensions/Makefile.am          |    2 ++
 libempathy-gtk/Makefile.am      |    3 ++-
 libempathy/Makefile.am          |    3 ++-
 megaphone/src/Makefile.am       |    2 +-
 nothere/src/Makefile.am         |    2 +-
 python/pyempathy/Makefile.am    |    3 ++-
 python/pyempathygtk/Makefile.am |    3 ++-
 src/Makefile.am                 |    3 ++-
 tests/Makefile.am               |    3 ++-
 10 files changed, 18 insertions(+), 13 deletions(-)

diff --git a/configure.ac b/configure.ac
index a071ea8..397e61b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,11 +36,8 @@ ISO_CODES_REQUIRED=0.35
 LIBNOTIFY_REQUIRED=0.4.4
 LIBCANBERRA_GTK_REQUIRED=0.4
 
-# Uncomment that to build with deprecated symbols disabled
-#AC_DEFINE(G_DISABLE_DEPRECATED, [], [Disable deprecated GLib symbols])
-#AC_DEFINE(GDK_PIXBUF_DISABLE_DEPRECATED, [], [Disable deprecated GDK pixbuf symbols])
-#AC_DEFINE(GDK_DISABLE_DEPRECATED, [], [Disable deprecated GDK symbols])
-#AC_DEFINE(GTK_DISABLE_DEPRECATED, [], [Disable deprecated GTK symbols])
+# Use --enable-maintainer-mode to disabled deprecated symbols
+GNOME_MAINTAINER_MODE_DEFINES
 
 # Uncomment that to build with single include disabled
 #AC_DEFINE(G_DISABLE_SINGLE_INCLUDES, [], [Disable single includes for GLib])
diff --git a/extensions/Makefile.am b/extensions/Makefile.am
index 0a57fe3..e5b1ea1 100644
--- a/extensions/Makefile.am
+++ b/extensions/Makefile.am
@@ -1,5 +1,7 @@
 tools_dir = $(top_srcdir)/tools
 
+AM_CPPFLAGS = $(DISABLE_DEPRECATED)
+
 AM_CFLAGS = \
     -I$(top_srcdir) \
     -I$(top_builddir) \
diff --git a/libempathy-gtk/Makefile.am b/libempathy-gtk/Makefile.am
index c192aff..6f3b99b 100644
--- a/libempathy-gtk/Makefile.am
+++ b/libempathy-gtk/Makefile.am
@@ -5,7 +5,8 @@ AM_CPPFLAGS =                                           \
 	-DPKGDATADIR=\""$(pkgdatadir)"\"		\
 	$(LIBEMPATHYGTK_CFLAGS)				\
 	$(ENCHANT_CFLAGS)				\
-	$(WARN_CFLAGS)
+	$(WARN_CFLAGS)					\
+	$(DISABLE_DEPRECATED)
 
 BUILT_SOURCES = 					\
 	empathy-gtk-marshal.h				\
diff --git a/libempathy/Makefile.am b/libempathy/Makefile.am
index 3870682..f82f4cc 100644
--- a/libempathy/Makefile.am
+++ b/libempathy/Makefile.am
@@ -5,7 +5,8 @@ AM_CPPFLAGS =                                           \
 	-DDATADIR=\""$(datadir)"\"              	\
 	-DLOCALEDIR=\""$(datadir)/locale"\"		\
 	$(LIBEMPATHY_CFLAGS)				\
-	$(WARN_CFLAGS)
+	$(WARN_CFLAGS)					\
+	$(DISABLE_DEPRECATED)
 
 BUILT_SOURCES = 					\
 	empathy-marshal.h				\
diff --git a/megaphone/src/Makefile.am b/megaphone/src/Makefile.am
index d587694..9bb330b 100644
--- a/megaphone/src/Makefile.am
+++ b/megaphone/src/Makefile.am
@@ -3,7 +3,7 @@ AM_CPPFLAGS = \
 	-DPKGDATADIR=\""$(pkgdatadir)"\" \
 	-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
 	-DIMAGEDIR=\"$(datadir)/empathy\" \
-	$(MEGAPHONE_CFLAGS) $(WARN_CFLAGS)
+	$(MEGAPHONE_CFLAGS) $(WARN_CFLAGS) $(DISABLE_DEPRECATED)
 
 libexec_PROGRAMS = megaphone-applet
 megaphone_applet_SOURCES = 					\
diff --git a/nothere/src/Makefile.am b/nothere/src/Makefile.am
index b4b016a..d2ff7fe 100644
--- a/nothere/src/Makefile.am
+++ b/nothere/src/Makefile.am
@@ -3,7 +3,7 @@ AM_CPPFLAGS = \
 	-DPKGDATADIR=\""$(pkgdatadir)"\" \
 	-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
 	-DIMAGEDIR=\"$(datadir)/empathy\" \
-	$(NOTHERE_CFLAGS) $(WARN_CFLAGS)
+	$(NOTHERE_CFLAGS) $(WARN_CFLAGS) $(DISABLE_DEPRECATED)
 
 libexec_PROGRAMS = nothere-applet
 nothere_applet_SOURCES = 					\
diff --git a/python/pyempathy/Makefile.am b/python/pyempathy/Makefile.am
index fa973bf..8ec61ff 100644
--- a/python/pyempathy/Makefile.am
+++ b/python/pyempathy/Makefile.am
@@ -8,7 +8,8 @@ AM_CPPFLAGS =                                           \
 	-DDATADIR=\""$(datadir)"\"              	\
 	$(PYTHON_BINDING_CFLAGS)			\
 	$(PYTHON_INCLUDES)				\
-	$(WARN_CFLAGS)
+	$(WARN_CFLAGS)					\
+	$(DISABLE_DEPRECATED)
 
 BUILT_SOURCES = 					\
 	pyempathy.c					
diff --git a/python/pyempathygtk/Makefile.am b/python/pyempathygtk/Makefile.am
index ba0ee11..84204e7 100644
--- a/python/pyempathygtk/Makefile.am
+++ b/python/pyempathygtk/Makefile.am
@@ -7,7 +7,8 @@ AM_CPPFLAGS =                                           \
 	-I$(top_srcdir)                                 \
 	-DDATADIR=\""$(datadir)"\"              	\
 	$(PYTHON_BINDING_CFLAGS)			\
-	$(PYTHON_INCLUDES)
+	$(PYTHON_INCLUDES)				\
+	$(DISABLE_DEPRECATED)
 
 BUILT_SOURCES = 					\
 	pyempathygtk.c					
diff --git a/src/Makefile.am b/src/Makefile.am
index 4b15413..76a5aa7 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,7 +2,8 @@ AM_CPPFLAGS =						\
 	-I$(top_srcdir)                          	\
 	$(EMPATHY_CFLAGS)				\
 	$(LIBNOTIFY_CFLAGS)				\
-	$(WARN_CFLAGS)
+	$(WARN_CFLAGS)					\
+	$(DISABLE_DEPRECATED)
 
 LDADD =								\
 	$(top_builddir)/libempathy-gtk/libempathy-gtk.la	\
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 42ebea5..67f6ec9 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -14,7 +14,8 @@ AM_CPPFLAGS =						\
 	-I$(top_srcdir)                          	\
 	-DPKGDATADIR=\""$(pkgdatadir)"\"		\
 	$(EMPATHY_CFLAGS)				\
-	$(WARN_CFLAGS)
+	$(WARN_CFLAGS)					\
+	$(DISABLE_DEPRECATED)
 
 LDADD =								\
 	$(top_builddir)/libempathy-gtk/libempathy-gtk.la	\



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