ayatana-commits team mailing list archive
-
ayatana-commits team
-
Mailing list archive
-
Message #02532
[Branch ~indicator-applet-developers/evolution-indicator/trunk] Rev 66: add some flags for deprecation
------------------------------------------------------------
revno: 66
committer: Didier Roche <didier.roche@xxxxxxxxxxxxx>
branch nick: evolution-indicator
timestamp: Tue 2010-10-12 18:33:57 +0200
message:
add some flags for deprecation
modified:
Makefile.am
configure.ac
--
lp:evolution-indicator
https://code.launchpad.net/~indicator-applet-developers/evolution-indicator/trunk
Your team ayatana-commits is subscribed to branch lp:evolution-indicator.
To unsubscribe from this branch go to https://code.launchpad.net/~indicator-applet-developers/evolution-indicator/trunk/+edit-subscription
=== modified file 'Makefile.am'
--- Makefile.am 2009-09-09 21:03:10 +0000
+++ Makefile.am 2010-10-12 16:33:57 +0000
@@ -1,6 +1,6 @@
SUBDIRS = data src po
-DISTCHECK_CONFIGURE_FLAGS = --enable-localinstall
+DISTCHECK_CONFIGURE_FLAGS = --enable-localinstall --enable-deprecations
dist-hook:
@if test -d "$(srcdir)/.bzr"; \
=== modified file 'configure.ac'
--- configure.ac 2010-06-22 13:08:42 +0000
+++ configure.ac 2010-10-12 16:33:57 +0000
@@ -11,6 +11,14 @@
AC_STDC_HEADERS
AC_PROG_LIBTOOL
+AC_ARG_ENABLE([deprecations],
+ [AS_HELP_STRING([--enable-deprecations],
+ [allow deprecated API usage @<:@default=yes@:>@])],
+ [],
+ [enable_deprecations=yes])
+AS_IF([test "x$enable_deprecations" = xno],
+ [CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DGTK_DISABLE_SINGLE_INCLUDES"])
+
dnl ******************************
dnl Install in correct location
dnl ******************************