Makefile.am 2.45 KB
Newer Older
1 2
include $(top_srcdir)/Makefile.decl

3 4 5 6
AM_VALAFLAGS =                                         \
	--includedir=libtracker-client                 \
	--header tracker-sparql-builder.h              \
	--pkg gio-2.0                                  \
7
	--pkg posix                                    \
8
	$(BUILD_VALAFLAGS)                             \
9 10
	$(top_srcdir)/src/libtracker-common/libtracker-common.vapi

11 12 13 14 15
AM_CPPFLAGS =                                          \
	$(BUILD_CFLAGS)                                \
	-DLOCALEDIR=\""$(localedir)"\"                 \
	-I$(top_srcdir)/src                            \
	-I$(top_builddir)/src                          \
16
	$(LIBTRACKER_CLIENT_CFLAGS)
17

18
lib_LTLIBRARIES = libtracker-client-@TRACKER_API_VERSION@.la
19

20
libtracker_clientincludedir = $(includedir)/tracker-$(TRACKER_API_VERSION)/libtracker-client
21

22
libtracker_client_@TRACKER_API_VERSION@_la_SOURCES =   \
23
	tracker-sparql-builder.vala                    \
24
	tracker.c                                      
25

26
libtracker_client_@TRACKER_API_VERSION@_la_LIBADD =    \
27
	$(top_builddir)/src/libtracker-common/libtracker-common.la \
28
	$(BUILD_LIBS)                                  \
29
	$(LIBTRACKER_CLIENT_LIBS)
30

31 32 33 34
libtracker_client_@TRACKER_API_VERSION@_la_LDFLAGS =   \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
	-export-symbols-regex '^tracker_.*'

35 36
tracker-sparql-builder.h: libtracker-client-@TRACKER_API_VERSION@.la

37 38 39
libtracker_clientinclude_HEADERS =                     \
	tracker.h                                      \
	tracker-client.h                               \
40 41
	tracker-sparql-builder.h

42
# Vala bindings
43
vapidir = $(datadir)/vala/vapi
44
vapi_DATA = tracker-client-$(TRACKER_API_VERSION).vapi
45 46 47

tracker-client-$(TRACKER_API_VERSION).vapi: tracker-client.vapi
	cp $< $@
48

49 50 51 52
# Generate DBus files from XML data.
dbus_sources =                                         \
	tracker-resources-glue.h                       \
	tracker-statistics-glue.h
53

54 55
%-glue.h: $(top_srcdir)/data/dbus/%.xml
	$(AM_V_GEN)$(DBUSBINDINGTOOL) --mode=glib-client --output=$@ --prefix=$(subst -,_,$*) $^
56

57
BUILT_SOURCES =                                        \
58
	libtracker_client_$(TRACKER_API_VERSION)_la_vala.stamp \
59
	$(dbus_sources)
60

61
CLEANFILES =                                           \
62
	$(vapi_DATA)                                   \
63
	$(dbus_sources)
64

65
MAINTAINERCLEANFILES =                                 \
66 67
	tracker-sparql-builder.h

68
EXTRA_DIST =                                           \
69
	tracker-client.vapi