Makefile.am 7.19 KB
Newer Older
1
2
include $(top_srcdir)/common/check.mak

3
CHECK_REGISTRY = $(top_builddir)/tests/check/test-registry.reg
4
TEST_FILES_DIRECTORY = $(top_srcdir)/tests/files
5
6
7
8
9
10

REGISTRY_ENVIRONMENT = \
	GST_REGISTRY=$(CHECK_REGISTRY)

TESTS_ENVIRONMENT = \
	$(REGISTRY_ENVIRONMENT)					\
11
	GST_PLUGIN_SYSTEM_PATH=					\
12
	GST_PLUGIN_PATH=$(top_builddir)/gst:$(top_builddir)/ext:$(top_builddir)/sys:$(GSTPB_PLUGINS_DIR):$(GST_PLUGINS_DIR)			\
13
14
15
16
	STATE_IGNORE_ELEMENTS="aasink autoaudiosrc autoaudiosink autovideosrc autovideosink \
		cacasink cairotextoverlay gconfaudiosrc gconfvideosrc gconfaudiosink gconfvideosink \
		halaudiosrc halaudiosink v4l2src osssrc osssink pulsesink pulsesrc pulsemixer \
		osxaudiosink osxaudiosrc osxvideosrc osxvideosink"
17

18
19
20
21
22
23
24
25
26
27
28
29
30
31
# fake device drivers: we could run hardware element tests against dummy drivers
# v4l2: vivo (part of normal kernel)
#   modprobe vivo;
#   gst-launch v4l2src device="/dev/video1" ! xvimagesink;
#   rmmod vivo
#
# alsa: snd-dummy (part of normal alsa, not removable)
#   modprobe snd-dummy;
#   gst-launch alsasrc device="hw:2" ! fakesink
#   gst-launch fakesrc ! alsasink device="hw:2"
#
# need a way to figure out value for the device property

# the core dumps of some machines have PIDs appended
32
CLEANFILES = core.* test-registry.*
33

34
clean-local: clean-local-check clean-local-orc
35

36
37
38
39
40
41
42
43
if USE_ANNODEX
check_annodex = \
	elements/cmmldec \
	elements/cmmlenc
else
check_annodex = 
endif

44
45
46
47
48
49
if USE_FLAC
check_flac = pipelines/flacdec
else
check_flac =
endif

50
51
52
53
54
55
if USE_GDK_PIXBUF
check_gdkpixbuf = elements/gdkpixbufsink
else
check_gdkpixbuf = 
endif

56
57
58
59
60
61
if USE_JPEG
check_jpeg = elements/jpegenc
else
check_jpeg =
endif

62
63
64
65
66
67
if USE_SOUP
check_soup = elements/souphttpsrc
else
check_soup =
endif

68
69
70
71
72
73
if USE_SUNAUDIO
check_sunaudio = elements/sunaudio
else
check_sunaudio = 
endif

74
if USE_TAGLIB
75
76
77
check_taglib = \
	elements/id3v2mux \
	elements/apev2mux
78
79
80
else
check_taglib =
endif
81

82
83
84
85
if USE_WAVPACK
check_wavpack = \
       elements/wavpackparse \
       elements/wavpackdec \
86
87
       elements/wavpackenc \
       pipelines/wavpack
88
89
90
91
else
check_wavpack =
endif

92
93
94
95
96
97
98
if HAVE_ORC
check_orc = orc/deinterlace orc/videomixer orc/videobox
else
check_orc =
endif


99
check_PROGRAMS = \
100
	generic/states \
101
	$(check_annodex) \
102
	elements/alphacolor \
103
104
	elements/aspectratiocrop \
	elements/audioamplify \
105
106
	elements/audiochebband \
	elements/audiocheblimit \
107
	elements/audiodynamic \
108
109
110
111
112
	elements/audioecho \
	elements/audiofirfilter \
	elements/audioiirfilter \
	elements/audioinvert \
	elements/audiopanorama \
113
114
	elements/audiowsincband \
	elements/audiowsinclimit \
115
	elements/avimux \
116
	elements/avisubtitle \
117
	elements/capssetter \
118
	elements/deinterlace \
119
	elements/deinterleave \
120
	elements/equalizer \
121
	elements/flvdemux \
122
	elements/flvmux \
123
	elements/icydemux \
124
	elements/id3demux \
125
	elements/imagefreeze \
126
	elements/interleave \
127
	elements/level \
128
	elements/matroskamux \
Jan Schmidt's avatar
Jan Schmidt committed
129
	elements/multifile \
130
131
132
	elements/rganalysis \
	elements/rglimiter \
	elements/rgvolume \
133
	elements/rtp-payloading \
134
135
	elements/rtpbin \
	elements/rtpbin_buffer_list \
Stefan Kost's avatar
Stefan Kost committed
136
	elements/rtpjitterbuffer \
137
	elements/shapewipe \
Jan Schmidt's avatar
Jan Schmidt committed
138
	elements/spectrum \
139
	elements/udpsink \
140
	elements/videocrop \
141
	elements/videofilter \
142
	elements/y4menc \
143
	pipelines/simple-launch-lines \
144
	pipelines/effectv \
145
	$(check_flac) \
146
	$(check_gdkpixbuf) \
147
        $(check_jpeg) \
148
	$(check_soup) \
149
	$(check_sunaudio) \
150
	$(check_taglib) \
151
152
	$(check_wavpack) \
	$(check_orc)
153

154
155
VALGRIND_TO_FIX = \
	elements/rtp-payloading
156

157
TESTS = $(check_PROGRAMS)
158
159

# these tests don't even pass
160
161
162
# autodetect: temporarily disabled because of broken videosinks in -bad
noinst_PROGRAMS = \
	elements/autodetect
163

164
165
AM_CFLAGS = $(GST_OBJ_CFLAGS) $(GST_CHECK_CFLAGS) $(CHECK_CFLAGS) \
	$(GST_OPTION_CFLAGS) -DGST_TEST_FILES_PATH="\"$(TEST_FILES_DIRECTORY)\""
166
167
168
LDADD = $(GST_OBJ_LIBS) $(GST_CHECK_LIBS) $(CHECK_LIBS)

# valgrind testing
169
170
171
172
# videocrop disabled since it takes way too long in valgrind
VALGRIND_TESTS_DISABLE = \
	elements/videocrop \
	$(VALGRIND_TO_FIX)
173

174
SUPPRESSIONS = $(top_srcdir)/common/gst.supp $(srcdir)/gst-plugins-good.supp
175

176
177
178
elements_aspectratiocrop_LDADD = $(LDADD)
elements_aspectratiocrop_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)

Stefan Kost's avatar
Stefan Kost committed
179
180
181
182
183
184
185
186
elements_audiopanorama_LDADD = \
	$(GST_BASE_LIBS) $(GST_CONTROLLER_LIBS) \
	$(LDADD)

elements_audiopanorama_CFLAGS = \
	$(GST_BASE_CFLAGS) $(GST_CONTROLLER_CFLAGS) \
	$(CFLAGS) $(AM_CFLAGS)

187
188
elements_cmmldec_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
elements_cmmlenc_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
189

190
elements_alphacolor_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
191

192
193
194
elements_deinterlace_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
elements_deinterlace_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) $(LDADD)

195
196
197
198
199
elements_deinterleave_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
elements_deinterleave_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) $(LDADD)
elements_interleave_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
elements_interleave_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) $(LDADD)

200
201
202
elements_imagefreeze_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
elements_imagefreeze_LDADD = $(GST_BASE_LIBS) $(LDADD) -lgstvideo-0.10

203
204
elements_level_LDADD = $(LDADD) $(LIBM)

205
206
elements_matroskamux_LDADD = $(GST_BASE_LIBS) $(LDADD) $(LIBM)

207
elements_rtpbin_buffer_list_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) \
208
	$(WARNING_CFLAGS) $(ERROR_CFLAGS) $(GST_CHECK_CFLAGS)
209
210
211
212
213
elements_rtpbin_buffer_list_LDADD = $(GST_PLUGINS_BASE_LIBS) \
             -lgstnetbuffer-@GST_MAJORMINOR@ -lgstrtp-@GST_MAJORMINOR@ \
             $(GST_BASE_LIBS) $(GST_LIBS_LIBS) $(GST_CHECK_LIBS)
elements_rtpbin_buffer_list_SOURCES = elements/rtpbin_buffer_list.c

214
elements_souphttpsrc_CFLAGS = $(SOUP_CFLAGS) $(AM_CFLAGS)
215
216
elements_souphttpsrc_LDADD = $(SOUP_LIBS) $(LDADD)

217
elements_sunaudio_CFLAGS = \
218
	$(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) \
219
220
221
222
	$(AM_CFLAGS)
elements_sunaudio_LDADD = \
	$(GST_PLUGINS_BASE_LIBS) -lgstinterfaces-@GST_MAJORMINOR@ \
	$(LDADD)
223

Jan Schmidt's avatar
Jan Schmidt committed
224
elements_videocrop_LDADD = $(GST_BASE_LIBS) $(LDADD)
225
elements_videocrop_CFLAGS = $(GST_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
226

227
228
229
elements_videofilter_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
elements_videofilter_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) $(LDADD)

230
231
232
# FIXME: configure should check for gdk-pixbuf not gtk
# only need video.h header, not the lib
elements_gdkpixbufsink_CFLAGS = \
233
	$(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS) $(GDK_PIXBUF_CFLAGS)
234
elements_gdkpixbufsink_LDADD = \
235
	$(LDADD) $(GDK_PIXBUF_LIBS)
236
237


238
239
240
pipelines_wavpack_LDADD = $(LDADD) $(GST_BASE_LIBS)
pipelines_wavpack_CFLAGS = $(GST_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)

241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
orc_deinterlace_CFLAGS = $(ORC_CFLAGS)
orc_deinterlace_LDADD = $(ORC_LIBS) -lorc-test-0.4
orc_videomixer_CFLAGS = $(ORC_CFLAGS)
orc_videomixer_LDADD = $(ORC_LIBS) -lorc-test-0.4
orc_videobox_CFLAGS = $(ORC_CFLAGS)
orc_videobox_LDADD = $(ORC_LIBS) -lorc-test-0.4

orc/deinterlace.c: $(top_srcdir)/gst/deinterlace/tvtime.orc
	$(MKDIR_P) orc/
	$(ORCC) --test -o $@ $<

orc/videomixer.c: $(top_srcdir)/gst/videomixer/blendorc.orc
	$(MKDIR_P) orc/
	$(ORCC) --test -o $@ $<

orc/videobox.c: $(top_srcdir)/gst/videobox/gstvideoboxorc.orc
	$(MKDIR_P) orc/
	$(ORCC) --test -o $@ $<

260
EXTRA_DIST = gst-plugins-good.supp