summaryrefslogtreecommitdiff
path: root/src/tracker-writeback/Makefile.am
blob: 6c3d30ea8ae0ce3c0f6bafda95956bc594c190b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
include $(top_srcdir)/Makefile.decl

module_flags = -module -avoid-version -no-undefined
modulesdir = $(libdir)/tracker-$(TRACKER_API_VERSION)/writeback-modules

INCLUDES = 								\
	$(BUILD_CFLAGS)							\
	-DLOCALEDIR=\""$(localedir)"\" 					\
	-DMODULESDIR=\"$(modulesdir)\"					\
	-DWRITEBACK_MODULES_DIR=\""$(modulesdir)"\" 			\
	-I$(top_srcdir)/src 						\
	-I$(top_builddir)/src						\
	-I$(top_builddir)/src/libtracker-sparql				\
	$(TRACKER_WRITEBACK_CFLAGS)					\
	$(TAGLIB_CFLAGS)						\
	$(EXEMPI_CFLAGS)						\
	$(TOTEM_PL_PARSER_CFLAGS)

modules_LTLIBRARIES =

# Audio files (MP3, MPC, FLAC, MP4, ASF, AIFF, WAV, TrueAudio, WavPack,
# Ogg FLAC, Ogg Vorbis and Speex)
if HAVE_TAGLIB
modules_LTLIBRARIES += libwriteback-taglib.la
libwriteback_taglib_la_SOURCES = tracker-writeback-taglib.c
libwriteback_taglib_la_LDFLAGS = $(module_flags)
libwriteback_taglib_la_LIBADD = $(BUILD_LIBS) $(GLIB2_LIBS) $(TAGLIB_LIBS)
endif

# XMP
if HAVE_EXEMPI
modules_LTLIBRARIES += libwriteback-xmp.la
libwriteback_xmp_la_SOURCES = tracker-writeback-xmp.c
libwriteback_xmp_la_LDFLAGS = $(module_flags)
libwriteback_xmp_la_LIBADD = $(BUILD_LIBS) $(GLIB2_LIBS) $(EXEMPI_LIBS)
endif

# Playlists
#if HAVE_TOTEM_PL_PARSER
#modules_LTLIBRARIES += libwriteback-playlist.la
#libwriteback_playlist_la_SOURCES = tracker-writeback-playlist.c
#libwriteback_playlist_la_LDFLAGS = $(module_flags)
#libwriteback_playlist_la_LIBADD = $(BUILD_LIBS) $(GLIB2_LIBS) $(TOTEM_PL_PARSER_LIBS)
#endif

#
# Binaries
#
libexec_PROGRAMS = tracker-writeback

tracker_writeback_SOURCES = 						\
	$(marshal_sources)						\
	$(dbus_sources)							\
	tracker-config.c						\
	tracker-config.h						\
	tracker-writeback-consumer.c					\
	tracker-writeback-consumer.h					\
	tracker-writeback-dbus.h					\
	tracker-writeback-dispatcher.c					\
	tracker-writeback-dispatcher.h					\
	tracker-writeback-file.c					\
	tracker-writeback-file.h					\
	tracker-writeback-module.c					\
	tracker-writeback-module.h					\
	tracker-writeback.c						\
	tracker-writeback.h						\
	tracker-main.c

tracker_writeback_LDADD = 						\
	$(top_builddir)/src/libtracker-sparql/libtracker-sparql-@TRACKER_API_VERSION@.la \
	$(top_builddir)/src/libtracker-miner/libtracker-miner-@TRACKER_API_VERSION@.la 	\
	$(top_builddir)/src/libtracker-common/libtracker-common.la	\
	$(BUILD_LIBS)							\
	$(TRACKER_WRITEBACK_LIBS)

dbus_sources = 								\
	tracker-writeback-glue.h

marshal_sources =							\
	tracker-marshal.h						\
	tracker-marshal.c

tracker-marshal.h: tracker-marshal.list
	$(AM_V_GEN)$(GLIB_GENMARSHAL) $< --prefix=tracker_marshal --header > $@

tracker-marshal.c: tracker-marshal.list
	$(AM_V_GEN)echo "#include \"tracker-marshal.h\"" > $@ &&        \
		$(GLIB_GENMARSHAL) $< --prefix=tracker_marshal --body >> $@

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

BUILT_SOURCES = 							\
	$(dbus_sources)							\
	$(marshal_sources)

CLEANFILES = $(BUILT_SOURCES)

EXTRA_DIST = tracker-marshal.list