include $(top_srcdir)/Makefile.decl

bin_PROGRAMS = tracker-needle

AM_VALAFLAGS = \
	--pkg gtk+-3.0 --pkg gio-2.0 \
	$(BUILD_fVALAFLAGS) \
	$(top_srcdir)/src/libtracker-sparql/tracker-sparql-$(TRACKER_API_VERSION).vapi \
	config.vapi

AM_CPPFLAGS =                                          \
	$(BUILD_VALACFLAGS)                            \
	-D_XOPEN_SOURCE                                \
	-D_XOPEN_SOURCE_EXTENDED                       \
	-I$(top_srcdir)/src                            \
	-I$(top_builddir)/src                          \
	-DTRACKER_UI_DIR=\"$(datadir)/tracker/\"       \
	-DLOCALEDIR=\""$(localedir)"\"                 \
	-DSRCDIR=\"$(abs_srcdir)/\"                    \
	$(TRACKER_NEEDLE_CFLAGS)                       \
	-include config.h

LDADD =                                            \
	$(top_builddir)/src/libtracker-sparql-backend/libtracker-sparql-$(TRACKER_API_VERSION).la \
	$(BUILD_LIBS)                                  \
	$(TRACKER_NEEDLE_LIBS)

tracker_needle_SOURCES = \
	tracker-history.vala \
	tracker-query.vala \
	tracker-result-store.vala \
	tracker-stats.vala \
	tracker-tags-view.vala \
	tracker-utils.vala \
	tracker-needle.vala \
	tracker-view.vala

@INTLTOOL_DESKTOP_RULE@

uidir = $(datadir)/tracker
ui_DATA = tracker-needle.ui

desktopdir = $(datadir)/applications
desktop_DATA = tracker-needle.desktop

BUILT_SOURCES = \
	tracker_needle_vala.stamp

CLEANFILES = \
	$(desktop_DATA)

EXTRA_DIST = \
	$(ui_DATA) \
	$(desktop_DATA) \
	config.vapi

