summaryrefslogtreecommitdiff
path: root/libupower-glib/Makefile.am
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2013-02-12 10:53:49 +0000
committerRichard Hughes <richard@hughsie.com>2013-02-12 11:08:27 +0000
commit9843589d2d80e6dc2b3f51338e64bd1da1c53860 (patch)
treee93621e62b1903064c9029e5c62a8bd60fe0638f /libupower-glib/Makefile.am
parent7cc34d457e806f0e8486207f49dc8c6e92dee7df (diff)
downloadupower-9843589d2d80e6dc2b3f51338e64bd1da1c53860.tar.gz
Require applications to define UPOWER_ENABLE_DEPRECATED to use deprecated functionality
This can easily be done by doing #define UPOWER_ENABLE_DEPRECATED before "#include <upower.h>" or adding -DUPOWER_ENABLE_DEPRECATED to the cflags line in Makefile.am See http://lists.freedesktop.org/archives/devkit-devel/2013-January/001339.html for more information on future plans and for rationale.
Diffstat (limited to 'libupower-glib/Makefile.am')
-rw-r--r--libupower-glib/Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/libupower-glib/Makefile.am b/libupower-glib/Makefile.am
index 7444f54..5c03409 100644
--- a/libupower-glib/Makefile.am
+++ b/libupower-glib/Makefile.am
@@ -5,6 +5,7 @@ AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/libupower-glib \
-DUP_COMPILATION \
+ -DUPOWER_ENABLE_DEPRECATED \
-DG_LOG_DOMAIN=\"libupower-glib\" \
-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\"