1include $(top_srcdir)/common/check.mak
2
3CHECK_REGISTRY = $(top_builddir)/tests/check/test-registry.reg
4TEST_FILES_DIRECTORY = $(top_srcdir)/tests/files
5
6REGISTRY_ENVIRONMENT = \
7	GST_REGISTRY_1_0=$(CHECK_REGISTRY)
8
9AM_TESTS_ENVIRONMENT += \
10	GST_STATE_IGNORE_ELEMENTS="$(STATE_IGNORE_ELEMENTS)"	\
11	$(REGISTRY_ENVIRONMENT)					\
12	GST_PLUGIN_SYSTEM_PATH_1_0=				\
13	GST_PLUGIN_PATH_1_0=$(top_builddir)/gst:$(top_builddir)/sys:$(top_builddir)/ext:$(GST_PLUGINS_DIR) \
14	GST_PLUGIN_LOADING_WHITELIST="gstreamer:gst-plugins-base@$(top_builddir)" \
15	GST_TAG_LICENSE_TRANSLATIONS_DICT="$(top_srcdir)/gst-libs/gst/tag/license-translations.dict"
16
17
18# ths core dumps of some machines have PIDs appended
19CLEANFILES = core.* test-registry.*
20
21clean-local: clean-local-check
22
23distclean-local: distclean-local-orc
24
25$(CHECK_REGISTRY):
26	$(AM_TESTS_ENVIRONMENT)
27
28# elements to ignore for the state tests
29STATE_IGNORE_ELEMENTS = cdio cdparanoiasrc libvisual_ alsasrc alsasink
30
31TESTS = $(check_PROGRAMS)
32
33if USE_GL
34check_gl=\
35    libs/gstglcontext \
36    libs/gstglmemory \
37    libs/gstglupload \
38    libs/gstglcolorconvert \
39    libs/gstglmatrix \
40    libs/gstglquery \
41    libs/gstglsl \
42    libs/gstglslstage \
43    libs/gstglshader \
44    libs/gstglheaders \
45    libs/gstglformat \
46    libs/gstglfeature \
47    elements/glimagesink \
48    elements/glbin \
49    pipelines/gl-launch-lines
50else
51check_gl=
52endif
53
54if USE_LIBVISUAL
55check_libvisual = elements/libvisual
56else
57check_libvisual =
58endif
59
60if USE_OGG
61check_ogg = pipelines/oggmux
62else
63check_ogg =
64endif
65
66if USE_OPUS
67check_opus = elements/opus
68else
69check_opus =
70endif
71
72if USE_PANGO
73check_pango = elements/textoverlay
74else
75check_pango =
76endif
77
78if USE_VORBIS
79check_vorbis = elements/vorbisdec pipelines/vorbisenc pipelines/vorbisdec \
80	elements/vorbistag
81else
82check_vorbis =
83endif
84
85if USE_PLUGIN_AUDIOTESTSRC
86check_audiotestsrc = elements/audiotestsrc
87else
88check_audiotestsrc =
89endif
90
91if USE_PLUGIN_AUDIOCONVERT
92check_audioconvert = elements/audioconvert
93else
94check_audioconvert =
95endif
96
97if USE_PLUGIN_AUDIOMIXER
98check_audiomixer = elements/audiointerleave elements/audiomixer
99else
100check_audiomixer =
101endif
102
103if USE_PLUGIN_COMPOSITOR
104check_compositor = elements/compositor
105else
106check_compositor =
107endif
108
109if USE_PLUGIN_PLAYBACK
110check_playback = elements/decodebin elements/playbin \
111    elements/playbin-complex elements/streamsynchronizer \
112    elements/playsink \
113    elements/urisourcebin
114else
115check_playback =
116endif
117
118if USE_THEORA
119check_theora = pipelines/theoraenc
120else
121check_theora =
122endif
123
124if USE_VORBIS
125if USE_THEORA
126check_encodebin = elements/encodebin
127else
128check_encodebin =
129endif
130else
131check_encodebin =
132endif
133
134if USE_PLUGIN_TYPEFIND
135check_typefind = gst/typefindfunctions
136else
137check_typefind =
138endif
139
140if USE_PLUGIN_RAWPARSE
141check_rawparse = elements/rawaudioparse elements/rawvideoparse
142else
143check_rawparse =
144endif
145
146if USE_PLUGIN_SUBPARSE
147check_subparse = elements/subparse
148else
149check_subparse =
150endif
151
152if USE_PLUGIN_VIDEOCONVERT
153check_videoconvert = elements/videoconvert
154else
155check_videoconvert =
156endif
157
158if USE_PLUGIN_VIDEORATE
159check_videorate = elements/videorate
160else
161check_videorate =
162endif
163
164if USE_PLUGIN_VIDEOSCALE
165check_videoscale = elements/videoscale elements/videoscale-1 \
166        elements/videoscale-2 elements/videoscale-3 elements/videoscale-4 \
167        elements/videoscale-5 elements/videoscale-6
168else
169check_videoscale =
170endif
171
172if USE_PLUGIN_VIDEOTESTSRC
173check_videotestsrc = elements/videotestsrc
174else
175check_videotestsrc =
176endif
177
178if USE_PLUGIN_VOLUME
179check_volume = elements/volume
180else
181check_volume =
182endif
183
184if USE_PLUGIN_ADDER
185check_adder = elements/adder
186else
187check_adder =
188endif
189
190if HAVE_ORC
191check_orc = orc/video orc/audio orc/audiomixer orc/adder orc/compositor orc/volume orc/videotestsrc
192else
193check_orc =
194endif
195
196if USE_PLUGIN_GIO
197check_gio = pipelines/gio
198else
199check_gio =
200endif
201
202if USE_PLUGIN_APP
203check_app = elements/appsink elements/appsrc
204else
205check_app =
206endif
207
208if USE_PLUGIN_AUDIORATE
209check_audiorate = elements/audiorate
210else
211check_audiorate =
212endif
213
214if USE_PLUGIN_TCP
215if USE_PLUGIN_APP
216check_tcp = elements/multifdsink elements/multisocketsink pipelines/tcp
217else
218check_tcp = elements/multifdsink elements/multisocketsink
219endif
220else
221check_tcp =
222endif
223
224if USE_PLUGIN_AUDIORESAMPLE
225check_audioresample = elements/audioresample
226else
227check_audioresample =
228endif
229
230if USE_PLUGIN_OVERLAYCOMPOSITION
231check_overlaycomposition = elements/overlaycomposition
232else
233check_overlaycomposition =
234endif
235
236if HAVE_CXX
237cxx_checks = libs/gstlibscpp
238else
239cxx_checks =
240endif
241
242check_PROGRAMS = \
243	generic/clock-selection \
244	generic/states \
245	libs/libsabi \
246	libs/allocators \
247	libs/audio \
248	libs/audiocdsrc \
249	libs/audiodecoder \
250	libs/audioencoder \
251	libs/baseaudiovisualizer \
252	libs/discoverer \
253	libs/fft \
254	libs/navigation \
255	libs/pbutils \
256	libs/profile \
257	libs/mikey \
258	libs/rtp \
259	libs/rtpbasedepayload \
260	libs/rtpbasepayload \
261	libs/rtpmeta \
262	libs/rtsp \
263	libs/rtspconnection \
264	libs/sdp \
265	libs/tag \
266	libs/video \
267	libs/videoanc \
268	libs/videodecoder \
269	libs/videoencoder \
270	libs/videotimecode \
271	libs/xmpwriter \
272	pipelines/simple-launch-lines \
273	pipelines/basetime \
274	pipelines/capsfilter-renegotiation \
275	pipelines/streamsynchronizer \
276	$(check_adder) \
277	$(check_app) \
278	$(check_audioconvert) \
279	$(check_audiomixer) \
280	$(check_audiorate) \
281	$(check_audioresample) \
282	$(check_audiotestsrc) \
283	$(check_compositor) \
284	$(check_encodebin) \
285	$(check_gio) \
286	$(check_gl) \
287	$(check_ogg) \
288	$(check_opus) \
289	$(check_overlaycomposition) \
290	$(check_pango) \
291	$(check_playback) \
292	$(check_rawparse) \
293	$(check_subparse) \
294	$(check_tcp) \
295	$(check_theora) \
296	$(check_typefind) \
297	$(check_videoconvert) \
298	$(check_videorate) \
299	$(check_videoscale) \
300	$(check_videotestsrc) \
301	$(check_volume) \
302	$(check_vorbis) \
303	$(cxx_checks) \
304	$(check_orc)
305
306# TORTURE_TO_FIX = \
307#       elements/adder
308
309# videoconvert takes too long, so disabled for now
310VALGRIND_TO_FIX = \
311	$(check_orc)
312
313# these tests don't even pass
314noinst_PROGRAMS = $(check_libvisual)
315
316noinst_HEADERS = \
317	libs/struct_arm.h     \
318	libs/struct_i386.h     \
319	libs/struct_i386_osx.h \
320	libs/struct_ppc32.h \
321	libs/struct_ppc64.h \
322	libs/struct_x86_64.h
323
324AM_CFLAGS = -I$(top_srcdir)/gst-libs -I$(top_builddir)/gst-libs \
325	$(GST_CFLAGS) $(GST_CHECK_CFLAGS) \
326	-DGST_TEST_FILES_PATH="\"$(TEST_FILES_DIRECTORY)\"" \
327	-DGST_CHECK_TEST_ENVIRONMENT_BEACON="\"GST_PLUGIN_LOADING_WHITELIST\"" \
328	-UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS $(PTHREAD_CFLAGS)
329AM_CXXFLAGS = -I$(top_srcdir)/gst-libs -I$(top_builddir)/gst-libs \
330	$(GST_CXXFLAGS) $(GST_CHECK_CFLAGS) \
331	-DGST_TEST_FILES_PATH="\"$(TEST_FILES_DIRECTORY)\"" \
332	-DGST_CHECK_TEST_ENVIRONMENT_BEACON="\"GST_PLUGIN_LOADING_WHITELIST\"" \
333	-UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS $(PTHREAD_CFLAGS)
334LDADD = $(GST_LIBS) $(GST_CHECK_LIBS)
335
336# valgrind testing
337VALGRIND_TESTS_DISABLE = $(VALGRIND_TO_FIX)
338
339SUPPRESSIONS = $(top_srcdir)/common/gst.supp $(srcdir)/gst-plugins-base.supp
340
341libs_libsabi_CFLAGS = \
342	$(GST_PLUGINS_BASE_CFLAGS) \
343	$(GST_BASE_CFLAGS) \
344	$(AM_CFLAGS)
345
346libs_libsabi_LDADD = \
347	$(top_builddir)/gst-libs/gst/app/libgstapp-@GST_API_VERSION@.la \
348	$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la \
349	$(top_builddir)/gst-libs/gst/fft/libgstfft-@GST_API_VERSION@.la \
350	$(top_builddir)/gst-libs/gst/pbutils/libgstpbutils-@GST_API_VERSION@.la \
351	$(top_builddir)/gst-libs/gst/rtp/libgstrtp-@GST_API_VERSION@.la \
352	$(top_builddir)/gst-libs/gst/rtsp/libgstrtsp-@GST_API_VERSION@.la \
353	$(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_API_VERSION@.la \
354	$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
355	$(GST_BASE_LIBS) \
356	$(LDADD)
357
358libs_allocators_CFLAGS = \
359	$(GST_PLUGINS_BASE_CFLAGS) \
360	$(GST_BASE_CFLAGS) \
361	$(AM_CFLAGS)
362
363libs_allocators_LDADD = \
364	$(top_builddir)/gst-libs/gst/allocators/libgstallocators-@GST_API_VERSION@.la \
365	$(GST_BASE_LIBS) \
366	$(LDADD)
367
368libs_audio_CFLAGS = \
369	$(GST_PLUGINS_BASE_CFLAGS) \
370	$(GST_BASE_CFLAGS) \
371	$(AM_CFLAGS)
372
373libs_audio_LDADD = \
374	$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la \
375	$(GST_BASE_LIBS) \
376	$(LDADD)
377
378libs_audiodecoder_CFLAGS = \
379	$(GST_PLUGINS_BASE_CFLAGS) \
380	$(GST_BASE_CFLAGS) \
381	$(AM_CFLAGS)
382
383libs_audiodecoder_LDADD = \
384	$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la \
385	$(GST_BASE_LIBS) \
386	$(LDADD)
387
388libs_audioencoder_CFLAGS = \
389	$(GST_PLUGINS_BASE_CFLAGS) \
390	$(GST_BASE_CFLAGS) \
391	$(AM_CFLAGS)
392
393libs_audioencoder_LDADD = \
394	$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la \
395	$(GST_BASE_LIBS) \
396	$(LDADD)
397
398libs_audiocdsrc_CFLAGS = \
399	$(GST_PLUGINS_BASE_CFLAGS) \
400	$(GST_BASE_CFLAGS) \
401	$(AM_CFLAGS)
402
403libs_audiocdsrc_LDADD = \
404	$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la \
405	$(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_API_VERSION@.la \
406	$(GST_BASE_LIBS) \
407	$(LDADD)
408
409libs_baseaudiovisualizer_SOURCES = libs/baseaudiovisualizer.c
410libs_baseaudiovisualizer_CFLAGS = \
411        $(GST_PLUGINS_BASE_CFLAGS) \
412        $(GST_CFLAGS) $(AM_CFLAGS)
413libs_baseaudiovisualizer_LDADD = \
414        $(top_builddir)/gst-libs/gst/pbutils/libgstpbutils-@GST_API_VERSION@.la \
415        $(GST_LIBS) $(LDADD)
416
417libs_discoverer_CFLAGS = \
418	$(GST_PLUGINS_BASE_CFLAGS) \
419	$(AM_CFLAGS) \
420	-DGST_TEST_FILE="\"$(abs_top_srcdir)/tests/files/partialframe.mjpeg\""
421libs_discoverer_LDADD = \
422	$(top_builddir)/gst-libs/gst/pbutils/libgstpbutils-@GST_API_VERSION@.la \
423	$(GST_BASE_LIBS) $(LDADD)
424
425libs_fft_CFLAGS = \
426	$(GST_PLUGINS_BASE_CFLAGS) \
427	$(GST_BASE_CFLAGS) \
428	$(AM_CFLAGS)
429
430libs_fft_LDADD = \
431	$(top_builddir)/gst-libs/gst/fft/libgstfft-@GST_API_VERSION@.la \
432	$(GST_BASE_LIBS) \
433	$(LDADD)
434
435libs_gstglcontext_LDADD = \
436	$(top_builddir)/gst-libs/gst/gl/libgstgl-@GST_API_VERSION@.la \
437	$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
438	$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
439
440libs_gstglcontext_CFLAGS = \
441	$(GST_PLUGINS_BASE_CFLAGS) \
442	$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GL_CFLAGS) $(AM_CFLAGS)
443
444libs_gstglmemory_LDADD = \
445	$(top_builddir)/gst-libs/gst/gl/libgstgl-@GST_API_VERSION@.la \
446	$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
447	$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
448
449libs_gstglmemory_CFLAGS = \
450	$(GST_PLUGINS_BASE_CFLAGS) \
451	$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GL_CFLAGS) $(AM_CFLAGS)
452
453libs_gstglupload_CFLAGS = \
454	$(GST_PLUGINS_BASE_CFLAGS) \
455	$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GL_CFLAGS) $(AM_CFLAGS)
456
457libs_gstglupload_LDADD = \
458	$(top_builddir)/gst-libs/gst/gl/libgstgl-@GST_API_VERSION@.la \
459	$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
460	$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
461
462libs_gstglcolorconvert_CFLAGS = \
463	$(GST_PLUGINS_BASE_CFLAGS) \
464	$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GL_CFLAGS) $(AM_CFLAGS)
465
466libs_gstglcolorconvert_LDADD = \
467	$(top_builddir)/gst-libs/gst/gl/libgstgl-@GST_API_VERSION@.la \
468	$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
469	$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
470
471libs_gstglmatrix_CFLAGS = \
472	$(GST_PLUGINS_BAD_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
473	-DGST_USE_UNSTABLE_API \
474	$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
475
476libs_gstglmatrix_LDADD = \
477	$(top_builddir)/gst-libs/gst/gl/libgstgl-@GST_API_VERSION@.la \
478	$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
479	$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
480
481libs_gstglquery_LDADD = \
482	$(top_builddir)/gst-libs/gst/gl/libgstgl-@GST_API_VERSION@.la \
483	$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
484
485libs_gstglquery_CFLAGS = \
486	$(GST_PLUGINS_BASE_CFLAGS) \
487	$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GL_CFLAGS) $(AM_CFLAGS)
488
489libs_gstglsl_LDADD = \
490	$(top_builddir)/gst-libs/gst/gl/libgstgl-@GST_API_VERSION@.la \
491	$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
492
493libs_gstglsl_CFLAGS = \
494	$(GST_PLUGINS_BASE_CFLAGS) \
495	$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GL_CFLAGS) $(AM_CFLAGS)
496
497libs_gstglslstage_LDADD = \
498	$(top_builddir)/gst-libs/gst/gl/libgstgl-@GST_API_VERSION@.la \
499	$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
500
501libs_gstglslstage_CFLAGS = \
502	$(GST_PLUGINS_BASE_CFLAGS) \
503	$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GL_CFLAGS) $(AM_CFLAGS)
504
505libs_gstglshader_LDADD = \
506	$(top_builddir)/gst-libs/gst/gl/libgstgl-@GST_API_VERSION@.la \
507	$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
508
509libs_gstglshader_CFLAGS = \
510	$(GST_PLUGINS_BAD_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
511	-DGST_USE_UNSTABLE_API \
512	$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GL_CFLAGS) $(AM_CFLAGS)
513
514libs_gstglheaders_LDADD = \
515	$(top_builddir)/gst-libs/gst/gl/libgstgl-@GST_API_VERSION@.la \
516	$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
517
518libs_gstglheaders_CFLAGS = \
519	$(GST_PLUGINS_BASE_CFLAGS) \
520	$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GL_CFLAGS) $(AM_CFLAGS)
521
522libs_gstglformat_CFLAGS = \
523	$(GST_PLUGINS_BASE_CFLAGS) \
524	$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GL_CFLAGS) $(AM_CFLAGS)
525
526libs_gstglformat_LDADD = \
527	$(top_builddir)/gst-libs/gst/gl/libgstgl-@GST_API_VERSION@.la \
528	$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
529
530libs_gstglfeature_CFLAGS = \
531	$(GST_PLUGINS_BASE_CFLAGS) \
532	$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GL_CFLAGS) $(AM_CFLAGS)
533
534libs_gstglfeature_LDADD = \
535	$(top_builddir)/gst-libs/gst/gl/libgstgl-@GST_API_VERSION@.la \
536	$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
537
538elements_glimagesink_CFLAGS = \
539	$(GST_PLUGINS_BASE_CFLAGS) \
540	$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GL_CFLAGS) $(AM_CFLAGS)
541
542elements_glimagesink_LDADD = \
543	$(top_builddir)/gst-libs/gst/gl/libgstgl-@GST_API_VERSION@.la \
544	$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
545	$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
546
547elements_glbin_CFLAGS = \
548	$(GST_PLUGINS_BASE_CFLAGS) \
549	$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GL_CFLAGS) $(AM_CFLAGS)
550
551elements_glbin_LDADD = \
552	$(top_builddir)/gst-libs/gst/gl/libgstgl-@GST_API_VERSION@.la \
553	$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
554	$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
555
556libs_navigation_CFLAGS = \
557	$(GST_PLUGINS_BASE_CFLAGS) \
558        $(GST_BASE_CFLAGS) \
559        $(AM_CFLAGS)
560
561libs_navigation_LDADD = \
562	$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
563        $(GST_BASE_LIBS) \
564        $(LDADD)
565
566libs_sdp_CFLAGS = \
567	$(GST_PLUGINS_BASE_CFLAGS) \
568	$(AM_CFLAGS)
569libs_sdp_LDADD = \
570	$(top_builddir)/gst-libs/gst/sdp/libgstsdp-@GST_API_VERSION@.la \
571	$(GST_BASE_LIBS) $(LDADD)
572
573libs_rtp_CFLAGS = \
574	$(GST_PLUGINS_BASE_CFLAGS) \
575	$(AM_CFLAGS)
576libs_rtp_LDADD = \
577	$(top_builddir)/gst-libs/gst/rtp/libgstrtp-@GST_API_VERSION@.la \
578	$(GST_BASE_LIBS) $(LDADD)
579
580libs_mikey_CFLAGS = \
581	$(GST_PLUGINS_BASE_CFLAGS) \
582	$(AM_CFLAGS)
583libs_mikey_LDADD = \
584	$(top_builddir)/gst-libs/gst/sdp/libgstsdp-@GST_API_VERSION@.la \
585	$(GST_BASE_LIBS) $(LDADD)
586
587libs_rtpbasepayload_CFLAGS = \
588	$(GST_PLUGINS_BASE_CFLAGS) \
589	$(AM_CFLAGS)
590libs_rtpbasepayload_LDADD = \
591	$(top_builddir)/gst-libs/gst/rtp/libgstrtp-@GST_API_VERSION@.la \
592	$(GST_BASE_LIBS) $(LDADD)
593
594libs_rtpbasedepayload_CFLAGS = \
595	$(GST_PLUGINS_BASE_CFLAGS) \
596	$(AM_CFLAGS)
597libs_rtpbasedepayload_LDADD = \
598	$(top_builddir)/gst-libs/gst/rtp/libgstrtp-@GST_API_VERSION@.la \
599	$(GST_BASE_LIBS) $(LDADD)
600
601libs_rtpmeta_CFLAGS = \
602	$(GST_PLUGINS_BASE_CFLAGS) \
603	$(AM_CFLAGS)
604libs_rtpmeta_LDADD = \
605	$(top_builddir)/gst-libs/gst/rtp/libgstrtp-@GST_API_VERSION@.la \
606	$(GST_BASE_LIBS) $(LDADD)
607
608libs_rtsp_CFLAGS = \
609	$(GST_PLUGINS_BASE_CFLAGS) \
610	$(AM_CFLAGS)
611libs_rtsp_LDADD = \
612	$(top_builddir)/gst-libs/gst/rtsp/libgstrtsp-@GST_API_VERSION@.la \
613	$(GST_BASE_LIBS) $(LDADD)
614
615libs_rtspconnection_CFLAGS = \
616	$(GST_PLUGINS_BASE_CFLAGS) \
617	$(GIO_CFLAGS) \
618	$(AM_CFLAGS)
619libs_rtspconnection_LDADD = \
620	$(top_builddir)/gst-libs/gst/rtsp/libgstrtsp-@GST_API_VERSION@.la \
621	$(GST_BASE_LIBS) $(GIO_LIBS) $(LDADD)
622
623libs_tag_CFLAGS = \
624	$(GST_PLUGINS_BASE_CFLAGS) \
625	$(GST_BASE_CFLAGS) \
626	$(AM_CFLAGS)
627libs_tag_LDADD = \
628	$(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_API_VERSION@.la \
629	$(GST_BASE_LIBS) $(LDADD)
630
631libs_pbutils_CFLAGS = \
632	$(GST_PLUGINS_BASE_CFLAGS) \
633	$(AM_CFLAGS)
634libs_pbutils_LDADD = \
635	$(top_builddir)/gst-libs/gst/pbutils/libgstpbutils-@GST_API_VERSION@.la \
636	$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
637	$(GST_BASE_LIBS) $(LDADD)
638
639libs_profile_CFLAGS = \
640	$(GST_PLUGINS_BASE_CFLAGS) \
641	$(AM_CFLAGS)
642libs_profile_LDADD = \
643	$(top_builddir)/gst-libs/gst/pbutils/libgstpbutils-@GST_API_VERSION@.la $(LDADD)
644
645libs_xmpwriter_CFLAGS = \
646	$(GST_PLUGINS_BASE_CFLAGS) \
647        $(GST_BASE_CFLAGS) \
648        $(AM_CFLAGS)
649
650libs_xmpwriter_LDADD = \
651	$(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_API_VERSION@.la \
652        $(GST_BASE_LIBS) \
653        $(LDADD)
654
655
656libs_gstlibscpp_SOURCES = libs/gstlibscpp.cc
657
658elements_appsink_CFLAGS = \
659	$(GST_PLUGINS_BASE_CFLAGS) \
660	$(AM_CFLAGS)
661
662elements_appsink_LDADD = \
663	$(top_builddir)/gst-libs/gst/app/libgstapp-@GST_API_VERSION@.la \
664	$(LDADD)
665
666elements_appsrc_CFLAGS = \
667	$(GST_PLUGINS_BASE_CFLAGS) \
668	$(AM_CFLAGS)
669
670elements_appsrc_LDADD = \
671	$(top_builddir)/gst-libs/gst/app/libgstapp-@GST_API_VERSION@.la \
672	$(LDADD)
673
674elements_audioconvert_CFLAGS = \
675	$(GST_PLUGINS_BASE_CFLAGS) \
676	$(GST_BASE_CFLAGS) \
677	$(AM_CFLAGS)
678
679elements_audioconvert_LDADD = \
680	$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la \
681	$(GST_BASE_LIBS) \
682	$(LDADD)
683
684elements_audiomixer_LDADD = \
685	$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la \
686	$(GST_BASE_LIBS) $(GST_CONTROLLER_LIBS) \
687	$(LDADD)
688elements_audiomixer_CFLAGS = \
689	$(GST_PLUGINS_BASE_CFLAGS) \
690	$(GST_BASE_CFLAGS) $(GST_CONTROLLER_CFLAGS) \
691	$(AM_CFLAGS)
692
693elements_audiointerleave_LDADD = \
694	$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la \
695	$(GST_BASE_LIBS) $(LDADD)
696elements_audiointerleave_CFLAGS = \
697	$(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
698
699elements_audiorate_LDADD = \
700	$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la \
701	$(GST_BASE_LIBS) \
702	$(top_builddir)/gst-libs/gst/app/libgstapp-@GST_API_VERSION@.la \
703	$(LDADD)
704elements_audiorate_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
705
706elements_audiotestsrc_LDADD = \
707	$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la \
708	$(GST_BASE_LIBS) $(LDADD)
709elements_audiotestsrc_CFLAGS = \
710	$(GST_PLUGINS_BASE_CFLAGS) \
711	$(GST_BASE_CFLAGS) \
712	$(AM_CFLAGS)
713
714elements_compositor_LDADD = \
715	$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
716	$(GST_BASE_LIBS) $(LDADD)
717elements_compositor_CFLAGS = \
718	$(GST_PLUGINS_BASE_CFLAGS) \
719	$(GST_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
720
721elements_libvisual_LDADD =  $(LDADD)
722elements_libvisual_CFLAGS = $(CFLAGS) $(AM_CFLAGS)
723
724elements_playbin_LDADD = $(GST_BASE_LIBS) $(LDADD)
725elements_playbin_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
726
727elements_playbin_complex_LDADD = $(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la $(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la $(GST_BASE_LIBS) $(LDADD)
728elements_playbin_complex_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
729
730elements_urisourcebin_LDADD = $(GST_BASE_LIBS) $(LDADD)
731elements_urisourcebin_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
732
733elements_decodebin_LDADD = $(GST_BASE_LIBS) $(LDADD)
734elements_decodebin_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
735
736elements_encodebin_LDADD = $(top_builddir)/gst-libs/gst/pbutils/libgstpbutils-@GST_API_VERSION@.la $(GST_BASE_LIBS) $(LDADD)
737elements_encodebin_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
738
739elements_rawaudioparse_LDADD = $(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la $(GST_BASE_LIBS) -lgstbase-@GST_API_VERSION@ $(LDADD)
740elements_rawaudioparse_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
741
742elements_rawvideoparse_LDADD = $(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la $(GST_BASE_LIBS) -lgstbase-@GST_API_VERSION@ $(LDADD)
743elements_rawvideoparse_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
744
745elements_subparse_LDADD =  $(LDADD)
746elements_subparse_CFLAGS = $(CFLAGS) $(AM_CFLAGS)
747
748elements_adder_LDADD = $(GST_BASE_LIBS) $(LDADD)
749elements_adder_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
750
751elements_audioresample_CFLAGS = \
752	$(GST_PLUGINS_BASE_CFLAGS) \
753	$(GST_BASE_CFLAGS) \
754	$(AM_CFLAGS)
755
756elements_audioresample_LDADD = \
757	$(top_builddir)/gst-libs/gst/fft/libgstfft-@GST_API_VERSION@.la \
758	$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la \
759	$(GST_BASE_LIBS) \
760	$(LDADD)
761
762elements_textoverlay_LDADD = $(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la $(GST_BASE_LIBS) $(LDADD)
763elements_textoverlay_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
764
765elements_volume_LDADD = \
766	$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la \
767	$(GST_CONTROLLER_LIBS) \
768	$(GST_BASE_LIBS) \
769	$(LDADD)
770
771elements_volume_CFLAGS = \
772	$(GST_PLUGINS_BASE_CFLAGS) \
773	$(GST_CONTROLLER_CFLAGS) \
774	$(GST_BASE_CFLAGS) \
775	$(AM_CFLAGS)
776
777elements_overlaycomposition_CFLAGS = \
778	$(GST_PLUGINS_BASE_CFLAGS) \
779	$(GST_BASE_CFLAGS) \
780	$(AM_CFLAGS)
781
782elements_overlaycomposition_LDADD = \
783	$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
784	$(GST_BASE_LIBS) \
785	$(LDADD)
786
787elements_vorbisdec_LDADD = \
788	$(LDADD) \
789	$(VORBIS_LIBS) \
790	$(VORBISENC_LIBS)
791
792elements_vorbisdec_CFLAGS = \
793	$(GST_PLUGINS_BASE_CFLAGS) \
794	$(AM_CFLAGS) \
795	$(VORBIS_CFLAGS) \
796	$(CFLAGS)
797
798elements_vorbistag_LDADD = \
799	$(LDADD) \
800	$(VORBIS_LIBS) \
801	$(VORBISENC_LIBS)
802
803elements_vorbistag_CFLAGS = \
804	$(GST_PLUGINS_BASE_CFLAGS) \
805	$(AM_CFLAGS) \
806	$(VORBIS_CFLAGS) \
807	$(CFLAGS)
808
809elements_videoconvert_CFLAGS = \
810	$(GST_PLUGINS_BASE_CFLAGS) \
811	$(GST_BASE_CFLAGS) \
812	$(AM_CFLAGS)
813elements_videoconvert_LDADD = \
814	$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
815	$(GST_BASE_LIBS) $(LDADD)
816
817elements_videoscale_CFLAGS = \
818	$(GST_PLUGINS_BASE_CFLAGS) \
819	$(GST_BASE_CFLAGS) \
820	$(AM_CFLAGS)
821elements_videoscale_LDADD = \
822	$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
823	$(GST_BASE_LIBS) $(LDADD)
824
825elements_videoscale_1_SOURCES = elements/videoscale.c
826elements_videoscale_1_CFLAGS = $(elements_videoscale_CFLAGS) -DVSCALE_TEST_GROUP=1
827elements_videoscale_1_LDADD = $(elements_videoscale_LDADD)
828elements_videoscale_2_SOURCES = elements/videoscale.c
829elements_videoscale_2_CFLAGS = $(elements_videoscale_CFLAGS) -DVSCALE_TEST_GROUP=2
830elements_videoscale_2_LDADD = $(elements_videoscale_LDADD)
831elements_videoscale_3_SOURCES = elements/videoscale.c
832elements_videoscale_3_CFLAGS = $(elements_videoscale_CFLAGS) -DVSCALE_TEST_GROUP=3
833elements_videoscale_3_LDADD = $(elements_videoscale_LDADD)
834elements_videoscale_4_SOURCES = elements/videoscale.c
835elements_videoscale_4_CFLAGS = $(elements_videoscale_CFLAGS) -DVSCALE_TEST_GROUP=4
836elements_videoscale_4_LDADD = $(elements_videoscale_LDADD)
837elements_videoscale_5_SOURCES = elements/videoscale.c
838elements_videoscale_5_CFLAGS = $(elements_videoscale_CFLAGS) -DVSCALE_TEST_GROUP=5
839elements_videoscale_5_LDADD = $(elements_videoscale_LDADD)
840elements_videoscale_6_SOURCES = elements/videoscale.c
841elements_videoscale_6_CFLAGS = $(elements_videoscale_CFLAGS) -DVSCALE_TEST_GROUP=6
842elements_videoscale_6_LDADD = $(elements_videoscale_LDADD)
843
844generic_states_LDADD = $(GLIB_LIBS) $(LDADD)
845
846gst_typefindfunctions_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
847gst_typefindfunctions_LDADD = $(GST_BASE_LIBS) $(LDADD)
848
849libs_video_CFLAGS = \
850	$(GST_PLUGINS_BASE_CFLAGS) \
851	$(GST_BASE_CFLAGS) \
852	$(AM_CFLAGS)
853
854libs_video_LDADD = \
855	$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
856	$(GST_BASE_LIBS) \
857	$(LDADD)
858
859libs_videoanc_CFLAGS = \
860	$(GST_PLUGINS_BASE_CFLAGS) \
861	$(GST_BASE_CFLAGS) \
862	$(AM_CFLAGS)
863
864libs_videoanc_LDADD = \
865	$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
866	$(GST_BASE_LIBS) \
867	$(LDADD)
868
869libs_videodecoder_CFLAGS = \
870	$(GST_PLUGINS_BASE_CFLAGS) \
871	$(GST_BASE_CFLAGS) \
872	$(AM_CFLAGS)
873
874libs_videodecoder_LDADD = \
875	$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
876	$(GST_BASE_LIBS) \
877	$(LDADD)
878
879libs_videoencoder_CFLAGS = \
880	$(GST_PLUGINS_BASE_CFLAGS) \
881	$(GST_BASE_CFLAGS) \
882	$(AM_CFLAGS)
883
884libs_videoencoder_LDADD = \
885	$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
886	$(GST_BASE_LIBS) \
887	$(LDADD)
888
889libs_videotimecode_CFLAGS = \
890	$(GST_PLUGINS_BASE_CFLAGS) \
891	$(GST_BASE_CFLAGS) \
892	$(AM_CFLAGS)
893
894libs_videotimecode_LDADD = \
895	$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
896	$(GST_BASE_LIBS) \
897	$(LDADD)
898
899elements_multisocketsink_CFLAGS = $(GIO_CFLAGS) $(AM_CFLAGS)
900elements_multisocketsink_LDADD = $(GIO_LIBS) $(LDADD)
901
902if USE_GIO_UNIX_2_0
903GIO_UNIX_2_0_DEFINED=-DHAVE_GIO_UNIX_2_0=1
904endif
905
906pipelines_tcp_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_NET_CFLAGS) $(GIO_CFLAGS) $(GIO_UNIX_2_0_CFLAGS) $(GIO_UNIX_2_0_DEFINED) $(AM_CFLAGS)
907pipelines_tcp_LDADD =  $(top_builddir)/gst-libs/gst/app/libgstapp-@GST_API_VERSION@.la \
908	$(GST_NET_LIBS) $(GIO_LIBS) $(GIO_UNIX_2_0_LIBS) $(LDADD)
909
910pipelines_gio_CFLAGS = $(GIO_CFLAGS) $(AM_CFLAGS)
911pipelines_gio_LDADD = $(GIO_LIBS) $(LDADD)
912
913pipelines_gl_launch_lines_CFLAGS = \
914	$(GST_PLUGINS_BASE_CFLAGS) \
915	$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
916
917pipelines_gl_launch_lines_LDADD = \
918	$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
919
920pipelines_vorbisenc_CFLAGS = \
921        $(GST_PLUGINS_BASE_CFLAGS) \
922        $(AM_CFLAGS)
923
924# this seemingly useless CFLAGS line is here only to avoid
925# vorbisdec.$(OBJEXT) by triggering creation of pipelines_vorbisdec.$(OBJEXT)
926# instead
927pipelines_vorbisdec_CFLAGS = $(AM_CFLAGS)
928
929pipelines_oggmux_LDADD = $(LDADD) $(OGG_LIBS)
930pipelines_oggmux_CFLAGS = $(AM_CFLAGS) $(OGG_CFLAGS)
931
932pipelines_theoraenc_CFLAGS = $(AM_CFLAGS) $(THEORA_CFLAGS)
933pipelines_theoraenc_LDADD = $(LDADD) $(THEORA_LIBS)
934
935pipelines_simple_launch_lines_CFLAGS = \
936	$(GST_BASE_CFLAGS) \
937	$(AM_CFLAGS)
938
939pipelines_simple_launch_lines_LDADD = \
940	$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la \
941	$(GST_BASE_LIBS) \
942	$(LDADD)
943
944orc_video_CFLAGS = $(ORC_CFLAGS)
945orc_video_LDADD = $(ORC_LIBS) -lorc-test-0.4
946nodist_orc_video_SOURCES = orc/video.c
947orc_audio_CFLAGS = $(ORC_CFLAGS)
948orc_audio_LDADD = $(ORC_LIBS) -lorc-test-0.4
949nodist_orc_audio_SOURCES = orc/audio.c
950orc_adder_CFLAGS = $(ORC_CFLAGS)
951orc_adder_LDADD = $(ORC_LIBS) -lorc-test-0.4
952nodist_orc_adder_SOURCES = orc/adder.c
953orc_audiomixer_CFLAGS = $(ORC_CFLAGS)
954orc_audiomixer_LDADD = $(ORC_LIBS) -lorc-test-0.4
955nodist_orc_audiomixer_SOURCES = orc/audiomixer.c
956orc_compositor_CFLAGS = $(ORC_CFLAGS)
957orc_compositor_LDADD = $(ORC_LIBS) -lorc-test-0.4
958nodist_orc_compositor_SOURCES = orc/compositor.c
959orc_volume_CFLAGS = $(ORC_CFLAGS)
960orc_volume_LDADD = $(ORC_LIBS) -lorc-test-0.4
961nodist_orc_volume_SOURCES = orc/volume.c
962orc_videotestsrc_CFLAGS = $(ORC_CFLAGS)
963orc_videotestsrc_LDADD = $(ORC_LIBS) -lorc-test-0.4
964nodist_orc_videotestsrc_SOURCES = orc/videotestsrc.c
965
966orc/video.c: $(top_srcdir)/gst-libs/gst/video/video-orc.orc
967	$(MKDIR_P) orc/
968	$(ORCC) --test -o $@ $<
969
970orc/audio.c: $(top_srcdir)/gst-libs/gst/audio/gstaudiopack.orc
971	$(MKDIR_P) orc/
972	$(ORCC) --test -o $@ $<
973
974orc/audiomixer.c: $(top_srcdir)/gst/audiomixer/gstaudiomixerorc.orc
975	$(MKDIR_P) orc
976	$(ORCC) --test -o $@ $<
977
978orc/adder.c: $(top_srcdir)/gst/adder/gstadderorc.orc
979	$(MKDIR_P) orc/
980	$(ORCC) --test -o $@ $<
981
982orc/compositor.c: $(top_srcdir)/gst/compositor/compositororc.orc
983	$(MKDIR_P) orc/
984	$(ORCC) --test -o $@ $<
985
986orc/volume.c: $(top_srcdir)/gst/volume/gstvolumeorc.orc
987	$(MKDIR_P) orc/
988	$(ORCC) --test -o $@ $<
989
990orc/videotestsrc.c: $(top_srcdir)/gst/videotestsrc/gstvideotestsrcorc.orc
991	$(MKDIR_P) orc/
992	$(ORCC) --test -o $@ $<
993
994
995distclean-local-orc:
996	rm -rf orc
997
998EXTRA_DIST = gst-plugins-base.supp
999