[tracker/disable-fts: 7/10] libtracker-common: if FTS disabled, don't compile language support



commit ce4e54178f8c5713008aff0f51f2309255df6f49
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Tue Jun 15 12:44:37 2010 +0200

    libtracker-common: if FTS disabled, don't compile language support

 src/libtracker-common/Makefile.am |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-common/Makefile.am b/src/libtracker-common/Makefile.am
index 555fcff..e6ebd17 100644
--- a/src/libtracker-common/Makefile.am
+++ b/src/libtracker-common/Makefile.am
@@ -47,7 +47,6 @@ libtracker_common_la_SOURCES =	 			\
 	tracker-file-utils.c				\
 	tracker-ioprio.c				\
 	tracker-keyfile-object.c			\
-	tracker-language.c				\
 	tracker-log.c	 				\
 	tracker-type-utils.c				\
 	tracker-utils.c					\
@@ -64,17 +63,22 @@ noinst_HEADERS =					\
 	tracker-date-time.h				\
 	tracker-file-utils.h				\
 	tracker-keyfile-object.h			\
-	tracker-language.h				\
 	tracker-ontologies.h				\
 	tracker-type-utils.h				\
 	tracker-utils.h					\
 	tracker-crc32.h
 
+if HAVE_TRACKER_FTS
+libtracker_common_la_SOURCES +=	 			\
+	tracker-language.c
+noinst_HEADERS +=					\
+	tracker-language.h
+endif
+
 libtracker_common_la_LDFLAGS = 				\
 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
 
 libtracker_common_la_LIBADD = 				\
-	$(top_builddir)/src/libstemmer/libstemmer.la	\
 	$(HAL_LIBS)					\
 	$(UPOWER_LIBS)					\
 	$(DBUS_LIBS)					\
@@ -82,6 +86,11 @@ libtracker_common_la_LIBADD = 				\
 	$(GCOV_LIBS)					\
 	$(GLIB2_LIBS)
 
+if HAVE_TRACKER_FTS
+libtracker_common_la_LIBADD += 				\
+	$(top_builddir)/src/libstemmer/libstemmer.la
+endif
+
 marshal_sources =                              		\
         tracker-marshal.h              			\
         tracker-marshal.c



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]