[tracker/configure-for-binaries: 17/23] tracker-status-icon: Cleaned up CFLAGS/LIBS
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/configure-for-binaries: 17/23] tracker-status-icon: Cleaned up CFLAGS/LIBS
- Date: Fri, 22 Oct 2010 17:07:02 +0000 (UTC)
commit 2059379ce62893cbafeea9397aa25e340326beae
Author: Martyn Russell <martyn lanedo com>
Date: Fri Oct 22 15:55:39 2010 +0100
tracker-status-icon: Cleaned up CFLAGS/LIBS
configure.ac | 32 +++++++++++++++++++++-----------
src/tracker-status-icon/Makefile.am | 9 +++------
2 files changed, 24 insertions(+), 17 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c93b495..964d607 100644
--- a/configure.ac
+++ b/configure.ac
@@ -368,6 +368,22 @@ PKG_CHECK_MODULES(TRACKER_PREFERENCES, [$TRACKER_PREFERENCES_REQUIRED],
[have_tracker_preferences=yes],
[have_tracker_preferences=no])
+# Check requirements for tracker-status-icon
+TRACKER_STATUS_ICON_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
+ gio-unix-2.0 >= $GLIB_REQUIRED
+ gthread-2.0 >= $GLIB_REQUIRED
+ gmodule-2.0 >= $GLIB_REQUIRED
+ gtk+-2.0 >= $GTK_REQUIRED
+ pango >= $PANGO_REQUIRED
+ dbus-1 >= $DBUS_REQUIRED
+ dbus-glib-1 >= $DBUS_GLIB_REQUIRED"
+
+PKG_CHECK_MODULES(TRACKER_STATUS_ICON, [$TRACKER_STATUS_ICON_REQUIRED],
+ [have_tracker_status_icon=yes],
+ [have_tracker_status_icon=no])
+
+TRACKER_STATUS_ICON_LIBS="$TRACKER_STATUS_ICON_LIBS -lX11"
+
# Check for enca, detects defect Russian or Cyrillic language specifics in mp3s
AC_ARG_WITH(enca,
AS_HELP_STRING([--with-enca],
@@ -1253,19 +1269,13 @@ AC_ARG_ENABLE([tracker-status-icon],
[enable tracker-status-icon [[default=auto]]]),,
[enable_tracker_status_icon=auto])
-if test "x$enable_tracker_status_icon" != "xno" ; then
- if test "x$have_app_requirements" != "xyes"; then
- have_tracker_status_icon="no"
- else
- have_tracker_status_icon="yes"
+if test "x$enable_tracker_status_icon" = "xyes" ; then
+ if test "x$have_tracker_status_icon" != "xyes"; then
+ AC_MSG_ERROR([Couldn't find tracker-status-icon dependencies ($TRACKER_STATUS_ICON_REQUIRED).])
fi
else
- have_tracker_status_icon="no (disabled)"
-fi
-
-if test "x$enable_tracker_status_icon" = "xyes"; then
- if test "x$have_tracker_status_icon" != "xyes"; then
- AC_MSG_ERROR([Couldn't find tracker-status-icon dependencies ($APP_REQUIREMENTS).])
+ if test "x$enable_tracker_status_icon" = "xno" ; then
+ have_tracker_status_icon="no (disabled)"
fi
fi
diff --git a/src/tracker-status-icon/Makefile.am b/src/tracker-status-icon/Makefile.am
index 7964b5c..165912a 100644
--- a/src/tracker-status-icon/Makefile.am
+++ b/src/tracker-status-icon/Makefile.am
@@ -8,10 +8,9 @@ INCLUDES = \
-DTRACKER_COMPILATION \
-I$(top_srcdir)/src \
-I$(top_builddir)/src \
- $(TRACKER_APPS_CFLAGS) \
- $(PANGO_CFLAGS) \
$(WARN_CFLAGS) \
- $(GCOV_CFLAGS)
+ $(GCOV_CFLAGS) \
+ $(TRACKER_STATUS_ICON_CFLAGS)
bin_PROGRAMS = tracker-status-icon
@@ -20,10 +19,8 @@ tracker_status_icon_LDADD = \
$(top_builddir)/src/libtracker-miner/libtracker-miner- TRACKER_API_VERSION@.la \
$(top_builddir)/src/libtracker-sparql/libtracker-sparql- TRACKER_API_VERSION@.la \
$(top_builddir)/src/libtracker-common/libtracker-common.la \
- $(TRACKER_APPS_LIBS) \
- $(PANGO_LIBS) \
$(GCOV_LIBS) \
- -lX11
+ $(TRACKER_STATUS_ICON_LIBS)
tracker_status_icon_SOURCES = \
tomboykeybinder.c \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]