[tracker] Add configure option for tracker-explorer.
- From: Robert James Taylor <robtaylor src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker] Add configure option for tracker-explorer.
- Date: Mon, 6 Jul 2009 17:45:11 +0000 (UTC)
commit 7d64df540a1ad72814a72b1f4dba063d404c734a
Author: Rob Taylor <rob taylor codethink co uk>
Date: Mon Jul 6 16:37:21 2009 +0100
Add configure option for tracker-explorer.
configure.ac | 30 ++++++++++++++++++++++++++++++
src/Makefile.am | 45 ++++++++++++++++++++++-----------------------
2 files changed, 52 insertions(+), 23 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 437d150..334ed18 100644
--- a/configure.ac
+++ b/configure.ac
@@ -803,6 +803,35 @@ fi
AM_CONDITIONAL(HAVE_TRACKER_APPLET, test "$have_tracker_applet" = "yes")
+AC_ARG_ENABLE([tracker-explorer],
+ AS_HELP_STRING([--enable-tracker-explorer],
+ [enable tracker-explorer[[default=auto]]]),,
+ [enable_tracker_explorer=auto])
+
+if test "x$enable_tracker_explorer" != "xno" ; then
+ PKG_CHECK_MODULES(TRACKER_EXPLORER, [
+ glib-2.0 >= $GLIB_REQUIRED
+ gtk+-2.0 >= $GTK_REQUIRED
+ dbus-1 >= $DBUS_REQUIRED
+ dbus-glib-1 >= $DBUS_REQUIRED],
+ [have_tracker_explorer=yes],
+ [have_tracker_explorer=no])
+
+ AC_SUBST([TRACKER_EXPLORER_CFLAGS])
+ AC_SUBST([TRACKER_EXPLORER_LIBS])
+else
+ have_tracker_explorer="no (disabled)"
+fi
+
+if test "x$enable_tracker_explorer" = "xyes"; then
+ if test "x$have_tracker_explorer" != "xyes"; then
+ AC_MSG_ERROR([Couldn't find tracker-explorer dependencies (glib-2.0 >= $GLIB_REQUIRED, gtk+-2.0 >= $GTK_REQUIRED, dbus-1 >= $DBUS_REQUIRED, dbus-glib-1 >= $DBUS_REQUIRED).])
+ fi
+fi
+
+AM_CONDITIONAL(HAVE_TRACKER_EXPLORER, test "$have_tracker_explorer" = "yes")
+
+
##################################################################
# Check for GNOME/GTK dependencies to build tracker search tool
##################################################################
@@ -1454,6 +1483,7 @@ Applications:
Build tracker-preferences: $have_tracker_preferences
Build tracker-applet: $have_tracker_applet
Build libtracker-gtk: $have_libtrackergtk
+ Build tracker-explorer: $have_tracker_explorer
Metadata Extractors:
diff --git a/src/Makefile.am b/src/Makefile.am
index 9c8212f..c2dda2f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,21 +1,5 @@
include $(top_srcdir)/Makefile.decl
-if HAVE_TRACKER_PREFERENCES
-build_tracker_preferences = tracker-preferences
-endif
-
-if HAVE_TRACKER_APPLET
-build_tracker_applet = tracker-applet
-endif
-
-if HAVE_LIBTRACKERGTK
-build_libtrackergtk = libtracker-gtk
-endif
-
-if HAVE_TRACKER_SEARCH_TOOL
-build_tracker_search_tool = tracker-search-tool
-endif
-
SUBDIRS = \
libstemmer \
libinotify \
@@ -29,13 +13,27 @@ SUBDIRS = \
tracker-store \
tracker-utils \
tracker-extract \
- tracker-miner-fs \
- tracker-indexer \
- tracker-explorer \
- $(build_libtrackergtk) \
- $(build_tracker_applet) \
- $(build_tracker_search_tool) \
- $(build_tracker_preferences)
+ tracker-miner-fs
+
+if HAVE_TRACKER_PREFERENCES
+SUBDIRS += tracker-preferences
+endif
+
+if HAVE_TRACKER_APPLET
+SUBDIRS += tracker-applet
+endif
+
+if HAVE_LIBTRACKERGTK
+SUBDIRS += libtracker-gtk
+endif
+
+if HAVE_TRACKER_SEARCH_TOOL
+SUBDIRS += tracker-search-tool
+endif
+
+if HAVE_TRACKER_EXPLORER
+SUBDIRS += tracker-explorer
+endif
DIST_SUBDIRS = \
libstemmer \
@@ -53,6 +51,7 @@ DIST_SUBDIRS = \
tracker-miner-fs \
libtracker-gtk \
tracker-applet \
+ tracker-explorer \
tracker-search-tool \
tracker-preferences \
plugins
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]