summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: f1a5dd4f54648be12316a6a3ec98dcbd49bed667 (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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
SUBDIRS = gst backend properties . plugins

bin_PROGRAMS = totem totem-video-thumbnailer totem-audio-preview
lib_LTLIBRARIES = libtotem.la
noinst_LTLIBRARIES = libtotem_player.la

AM_CPPFLAGS = \
	-D_REENTRANT					\
	-DDBUS_API_SUBJECT_TO_CHANGE			\
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\"	\
	-DDATADIR=\""$(datadir)"\"			\
	-DLIBEXECDIR=\""$(libexecdir)"\"		\
	-DTOTEM_PLUGIN_DIR=\""$(libdir)/totem/plugins"\"\
	-DBINDIR=\""$(bindir)"\"			\
	-DGTKBUILDERDIR=\"""\"				\
	$(DISABLE_DEPRECATED)				\
	-I$(top_srcdir)/				\
	-I$(top_srcdir)/src/backend			\
	-I$(top_builddir)/src/backend			\
	-I$(srcdir)/plugins

AM_CFLAGS = $(WARN_CFLAGS)

# Header files installed for use by plugins (and consequently introspected using gobject-introspection; see the bottom of the Makefile)
INST_H_FILES = \
	totem.h				\
	totem-interface.h		\
	plugins/totem-plugin.h		\
	plugins/totem-dirs.h

headerdir = $(includedir)/totem/$(TOTEM_API_VERSION)
header_DATA = $(INST_H_FILES)

# Totem UI ltlibrary (used by browser plugins)
libtotem_player_la_SOURCES = \
	$(INST_H_FILES)		\
	totem-interface.c	\
	totem-time-label.c	\
	totem-time-label.h

libtotem_player_la_CPPFLAGS =		\
	-DG_LOG_DOMAIN=\""Totem"\"	\
	$(AM_CPPFLAGS)

libtotem_player_la_LIBADD =		\
	$(PLAYER_LIBS)			\
	gst/libtotemtimehelpers.la	\
	gst/libtotemrtlhelpers.la

libtotem_player_la_CFLAGS =	\
	$(LIBPLAYER_CFLAGS)	\
	-I$(srcdir)/gst/	\
	$(AM_CFLAGS)

# Totem main library (used for main player; separate to allow gtk-doc to be used)
BUILT_SOURCES = griloresources.h griloresources.c
EXTRA_DIST = grilo.gresource.xml totemmaintoolbar.ui totemselectiontoolbar.ui grilo.ui totem-grilo.conf

griloresources.h: grilo.gresource.xml
	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/grilo.gresource.xml \
		--target=$@ --sourcedir=$(srcdir) --c-name _totem --generate-header
griloresources.c: $(EXTRA_DIST) griloresources.h
	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/grilo.gresource.xml \
		--target=$@ --sourcedir=$(srcdir) --c-name _totem --generate-source

libtotem_la_SOURCES = \
	$(TOTEM_MARSHAL_FILES)		\
	$(INST_H_FILES)			\
	totem-object.c			\
	totem-private.h			\
	totem-preferences.c		\
	totem-preferences.h		\
	totem-options.c			\
	totem-options.h			\
	totem-playlist.c		\
	totem-playlist.h		\
	totem-session.c			\
	totem-session.h			\
	totem-open-location.c		\
	totem-open-location.h		\
	totem-menu.c			\
	totem-menu.h			\
	totem-uri.c			\
	totem-uri.h			\
	totem-subtitle-encoding.c	\
	totem-subtitle-encoding.h	\
	totem-profile.h			\
	plugins/totem-plugins-engine.c	\
	plugins/totem-plugins-engine.h	\
	plugins/totem-dirs.c		\
	totem-grilo.c			\
	totem-grilo.h			\
	totem-search-entry.c		\
	totem-search-entry.h		\
	totem-main-toolbar.h		\
	totem-main-toolbar.c		\
	totem-selection-toolbar.h	\
	totem-selection-toolbar.c	\
	icon-helpers.c			\
	icon-helpers.h			\
	griloresources.h		\
	griloresources.c

libtotem_la_CPPFLAGS = \
	-I$(top_builddir)/data		\
	-DG_LOG_DOMAIN=\""Totem"\"	\
	$(AM_CPPFLAGS)

libtotem_la_CFLAGS = \
	$(PLAYER_CFLAGS)		\
	$(AM_CFLAGS)			\
	-I$(srcdir)/gst/		\
	-I$(top_srcdir)/libgd

libtotem_la_LDFLAGS = \
	-export-dynamic	\
	-no-undefined \
	$(AM_LDFLAGS)

libtotem_la_LIBADD = \
	libtotem_player.la		\
	backend/libbaconvideowidget.la	\
	$(top_builddir)/libgd/libgd.la	\
	$(PLAYER_LIBS)

# Totem
totem_SOURCES = totem.c

totem_CPPFLAGS = \
	-DG_LOG_DOMAIN=\""Totem"\"	\
	$(AM_CPPFLAGS)

totem_CFLAGS =			\
	$(PLAYER_CFLAGS)	\
	-I$(srcdir)/gst/	\
	$(AM_CFLAGS)

totem_LDADD =		\
	libtotem.la	\
	$(PLAYER_LIBS)

# Totem video thumbnailer
totem_video_thumbnailer_SOURCES = \
	totem-video-thumbnailer.c	\
	totem-resources.c		\
	totem-resources.h

totem_video_thumbnailer_CPPFLAGS = \
	-DG_LOG_DOMAIN=\""TotemVideoThumbnailer"\"	\
	$(AM_CPPFLAGS)

totem_video_thumbnailer_CFLAGS =	\
	$(THUMBNAILER_CFLAGS)		\
	$(AM_CFLAGS)

totem_video_thumbnailer_LDADD =		\
	$(THUMBNAILER_LIBS)		\
	gst/libtotemgstpixbufhelpers.la	\
	gst/libtotemgsthelpers.la	\
	gst/libtotemtimehelpers.la	\
	-lm

# Nautilus Property Page
if HAVE_NAUTILUS
nautilusdir = $(NAUTILUSDIR)
nautilus_LTLIBRARIES = libtotem-properties-page.la

libtotem_properties_page_la_SOURCES = \
	totem-properties-main.c		\
	totem-properties-view.c		\
	totem-properties-view.h

libtotem_properties_page_la_CPPFLAGS = \
	-I$(top_srcdir)/src/properties		\
	-I$(top_builddir)/data			\
	-DG_LOG_DOMAIN=\""TotemPropertiesPage"\"\
	$(AM_CPPFLAGS)

libtotem_properties_page_la_CFLAGS =	\
	$(NAUTILUS_CFLAGS)		\
	$(AM_CFLAGS)

libtotem_properties_page_la_LDFLAGS = \
	-export_dynamic -avoid-version -module -no-undefined	\
	$(AM_LDFLAGS)

libtotem_properties_page_la_LIBADD =				\
	properties/libbaconvideowidgetproperties.la		\
	$(NAUTILUS_LIBS)

noinst_PROGRAMS = test-properties-page

test_properties_page_SOURCES = \
	totem-properties-main.c		\
	totem-properties-view.c		\
	totem-properties-view.h		\
	test-properties-page.c

test_properties_page_CPPFLAGS = \
	-I$(top_builddir)/data			\
	-I$(top_srcdir)/src/properties		\
	$(AM_CPPFLAGS)

test_properties_page_CFLAGS =	\
	$(NAUTILUS_CFLAGS)	\
	$(AM_CFLAGS)

test_properties_page_LDADD = \
	backend/libbaconvideowidget.la				\
	properties/libbaconvideowidgetproperties.la		\
	libtotem_player.la					\
	$(NAUTILUS_LIBS)
endif # HAVE_NAUTILUS

# Totem Audio Preview for Nautilus
totem_audio_preview_SOURCES = \
	totem-audio-preview.c		\
	totem-resources.c		\
	totem-resources.h

totem_audio_preview_CPPFLAGS = \
	-I$(top_builddir)/data			\
	-I$(top_srcdir)/src/gst			\
	-DG_LOG_DOMAIN=\""TotemAudioPreview"\"	\
	$(AM_CPPFLAGS)

totem_audio_preview_CFLAGS =	\
	$(PREVIEW_CFLAGS)	\
	$(AM_CFLAGS)

totem_audio_preview_LDADD =			\
	gst/libtotemgsthelpers.la		\
	$(PREVIEW_LIBS)

# Introspection
-include $(INTROSPECTION_MAKEFILE)

INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)

if HAVE_INTROSPECTION

introspection_sources = $(INST_H_FILES) $(filter %.c,$(libtotem_player_la_SOURCES) $(libtotem_la_SOURCES))

# NOTE: This should change with $(TOTEM_API_VERSION)
Totem-1.0.gir: libtotem.la
Totem_1_0_gir_INCLUDES = GLib-2.0 GObject-2.0 Gio-2.0 Gtk-3.0 TotemPlParser-1.0
Totem_1_0_gir_SCANNERFLAGS = --c-include=totem.h --pkg-export=totem
Totem_1_0_gir_CFLAGS =		\
	$(PLAYER_CFLAGS)	\
	$(libtotem_la_CPPFLAGS)
Totem_1_0_gir_LIBS = libtotem.la $(top_builddir)/libgd/libgd.la
Totem_1_0_gir_FILES = $(introspection_sources)
Totem_1_0_gir_EXPORT_PACKAGES = totem
INTROSPECTION_GIRS += Totem-1.0.gir

girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)

typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)

CLEANFILES = $(gir_DATA) $(typelib_DATA)

endif

-include $(top_srcdir)/git.mk