[tracker/configure-for-binaries: 16/27] tracker-preferences: Cleaned up CFLAGS/LIBS
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/configure-for-binaries: 16/27] tracker-preferences: Cleaned up CFLAGS/LIBS
- Date: Mon, 25 Oct 2010 12:31:00 +0000 (UTC)
commit 3f71cab095e9e3eec2f6c409f9e717c4645fd6f8
Author: Martyn Russell <martyn lanedo com>
Date: Fri Oct 22 14:43:53 2010 +0100
tracker-preferences: Cleaned up CFLAGS/LIBS
configure.ac | 29 ++++++++++++++++++-----------
src/tracker-preferences/Makefile.am | 8 ++++----
2 files changed, 22 insertions(+), 15 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ac117e6..c93b495 100644
--- a/configure.ac
+++ b/configure.ac
@@ -355,6 +355,19 @@ PKG_CHECK_MODULES(TRACKER_SEARCH_TOOL, [$TRACKER_SEARCH_TOOL_REQUIRED],
[have_tracker_search_tool=yes],
[have_tracker_search_tool=no])
+# Check requirements for tracker-preferences
+TRACKER_PREFERENCES_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
+ dbus-1 >= $DBUS_REQUIRED
+ dbus-glib-1 >= $DBUS_GLIB_REQUIRED"
+
+PKG_CHECK_MODULES(TRACKER_PREFERENCES, [$TRACKER_PREFERENCES_REQUIRED],
+ [have_tracker_preferences=yes],
+ [have_tracker_preferences=no])
+
# Check for enca, detects defect Russian or Cyrillic language specifics in mp3s
AC_ARG_WITH(enca,
AS_HELP_STRING([--with-enca],
@@ -1353,19 +1366,13 @@ AC_ARG_ENABLE([tracker-preferences],
[enable the tracker preferences dialog [[default=auto]]]),,
[enable_tracker_preferences=auto])
-if test "x$enable_tracker_preferences" != "xno" ; then
- if test "x$have_app_requirements" != "xyes"; then
- have_tracker_preferences="no"
- else
- have_tracker_preferences="yes"
+if test "x$enable_tracker_preferences" = "xyes" ; then
+ if test "x$have_tracker_preferences" != "xyes"; then
+ AC_MSG_ERROR([Couldn't find tracker-preferences dependencies ($TRACKER_PREFERENCES_REQUIRED).])
fi
else
- have_tracker_preferences="no (disabled)"
-fi
-
-if test "x$enable_tracker_preferences" = "xyes"; then
- if test "x$have_tracker_preferences" != "xyes"; then
- AC_MSG_ERROR([Couldn't find tracker-preferences dependencies ($APP_REQUIREMENTS).])
+ if text "x$enable_tracker_preferences" = "xno"; then
+ have_tracker_preferences="no (disabled)"
fi
fi
diff --git a/src/tracker-preferences/Makefile.am b/src/tracker-preferences/Makefile.am
index 9e9e78a..0f93ca2 100644
--- a/src/tracker-preferences/Makefile.am
+++ b/src/tracker-preferences/Makefile.am
@@ -18,9 +18,9 @@ INCLUDES = \
-DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\" \
-I$(top_srcdir)/src \
-I$(top_builddir) \
- $(TRACKER_APPS_CFLAGS) \
$(WARN_CFLAGS) \
- $(GCOV_CFLAGS)
+ $(GCOV_CFLAGS) \
+ $(TRACKER_PREFERENCES_CFLAGS)
BUILT_SOURCES = \
tracker-preferences.vala.stamp
@@ -39,8 +39,8 @@ tracker_preferences_SOURCES = \
tracker_preferences_LDADD = \
$(top_builddir)/src/libtracker-common/libtracker-common.la \
- $(TRACKER_APPS_LIBS) \
- $(GCOV_LIBS)
+ $(GCOV_LIBS) \
+ $(TRACKER_PREFERENCES_LIBS)
MAINTAINERCLEANFILES = \
tracker-preferences.vala.stamp \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]