[tracker/parser-libunistring-review] Splitting different parser implementations in different files
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/parser-libunistring-review] Splitting different parser implementations in different files
- Date: Thu, 29 Apr 2010 10:55:31 +0000 (UTC)
commit 01244fca86d0fec1a480f6337543bdd1f2add4f3
Author: Aleksander Morgado <aleksander lanedo com>
Date: Thu Apr 29 11:36:53 2010 +0200
Splitting different parser implementations in different files
src/libtracker-fts/Makefile.am | 13 ++++++++++---
.../{tracker-parser.c => tracker-parser-glib.c} | 0
...cker-parser.c => tracker-parser-libunistring.c} | 0
3 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-fts/Makefile.am b/src/libtracker-fts/Makefile.am
index c174566..9b469c6 100644
--- a/src/libtracker-fts/Makefile.am
+++ b/src/libtracker-fts/Makefile.am
@@ -7,13 +7,14 @@ INCLUDES = \
$(WARN_CFLAGS) \
$(GLIB2_CFLAGS) \
$(GCOV_CFLAGS) \
- $(PANGO_CFLAGS) \
$(DBUS_CFLAGS) \
$(UNAC_CFLAGS) \
$(SQLITE3_CFLAGS)
if HAVE_LIBUNISTRING
INCLUDES += $(LIBUNISTRING_CFLAGS)
+else
+INCLUDES += $(PANGO_CFLAGS)
endif
noinst_LTLIBRARIES = libtracker-fts.la
@@ -25,19 +26,25 @@ libtracker_fts_la_SOURCES = \
tracker-fts-config.h \
tracker-fts-hash.c \
tracker-fts-hash.h \
- tracker-parser.c \
tracker-parser.h
+if HAVE_LIBUNISTRING
+libtracker_fts_la_SOURCES += tracker-parser-libunistring.c
+else
+libtracker_fts_la_SOURCES += tracker-parser-glib.c
+endif
+
libtracker_fts_la_LIBADD = \
$(top_builddir)/src/libtracker-common/libtracker-common.la \
$(SQLITE3_LIBS) \
$(DBUS_LIBS) \
$(GTHREAD_LIBS) \
$(GCOV_LIBS) \
- $(PANGO_LIBS) \
$(UNAC_LIBS) \
$(GLIB2_LIBS)
if HAVE_LIBUNISTRING
libtracker_fts_la_LIBADD += $(LIBUNISTRING_LIBS)
+else
+libtracker_fts_la_LIBADD += $(PANGO_LIBS)
endif
diff --git a/src/libtracker-fts/tracker-parser.c b/src/libtracker-fts/tracker-parser-glib.c
similarity index 100%
copy from src/libtracker-fts/tracker-parser.c
copy to src/libtracker-fts/tracker-parser-glib.c
diff --git a/src/libtracker-fts/tracker-parser.c b/src/libtracker-fts/tracker-parser-libunistring.c
similarity index 100%
rename from src/libtracker-fts/tracker-parser.c
rename to src/libtracker-fts/tracker-parser-libunistring.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]