include $(top_srcdir)/Makefile.decl

AM_VALAFLAGS =                                         \
	--includedir=libtracker-data                   \
	--header tracker-sparql-query.h                \
	--vapi tracker-sparql-query.vapi               \
	--pkg gio-2.0                                  \
	$(BUILD_VALAFLAGS)                             \
	$(top_srcdir)/src/vapi/posix.vapi              \
	$(top_srcdir)/src/vapi/glib-2.0-fixes.vapi     \
	$(top_srcdir)/src/libtracker-common/libtracker-common.vapi \
	$(top_srcdir)/src/libtracker-sparql/tracker-sparql-$(TRACKER_API_VERSION).vapi \
	libtracker-data.vapi

AM_CPPFLAGS =                                          \
	$(BUILD_CFLAGS)                                \
	-I$(top_srcdir)/src                            \
	-I$(top_builddir)/src                          \
	-DSHAREDIR=\""$(datadir)"\"                    \
	$(LIBTRACKER_DATA_CFLAGS)

libtracker_datadir = $(libdir)/tracker-$(TRACKER_API_VERSION)
libtracker_data_LTLIBRARIES = libtracker-data.la

libtracker_data_la_SOURCES =                           \
	tracker-sparql-expression.vala                 \
	tracker-sparql-pattern.vala                    \
	tracker-sparql-query.vala                      \
	tracker-sparql-scanner.vala                    \
	tracker-turtle-reader.vala                     \
	tracker-class.c                                \
	tracker-collation.c                            \
	tracker-data-backup.c                          \
	tracker-data-manager.c                         \
	tracker-data-query.c                           \
	tracker-data-update.c                          \
	tracker-db-config.c                            \
	tracker-db-interface.c                         \
	tracker-db-interface-sqlite.c                  \
	tracker-db-manager.c                           \
	tracker-db-journal.c                           \
	tracker-namespace.c                            \
	tracker-ontology.c                             \
	tracker-ontologies.c                           \
	tracker-property.c

libtracker_data_la_LIBADD =                            \
	$(top_builddir)/src/gvdb/libgvdb.la \
	$(top_builddir)/src/libtracker-common/libtracker-common.la \
	$(top_builddir)/src/libtracker-sparql/libtracker-sparql-@TRACKER_API_VERSION@.la \
	$(BUILD_LIBS)                                  \
	$(LIBTRACKER_DATA_LIBS)

if HAVE_TRACKER_FTS
libtracker_data_la_LIBADD +=                           \
	$(top_builddir)/src/libtracker-fts/libtracker-fts.la
endif

libtracker_data_la_LDFLAGS =                           \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)

noinst_HEADERS =                                       \
	tracker-class.h                                \
	tracker-data.h                                 \
	tracker-collation.h                            \
	tracker-data-backup.h                          \
	tracker-data-manager.h                         \
	tracker-data-query.h                           \
	tracker-data-update.h                          \
	tracker-db-config.h                            \
	tracker-db-interface.h                         \
	tracker-db-interface-sqlite.h                  \
	tracker-db-manager.h                           \
	tracker-db-journal.h                           \
	tracker-namespace.h                            \
	tracker-ontology.h                             \
	tracker-ontologies.h                           \
	tracker-property.h                             \
	tracker-sparql-query.h

BUILT_SOURCES =                                        \
	libtracker_data_la_vala.stamp

EXTRA_DIST =                                           \
	libtracker-data.vapi
