araw: filter out non-finite floating point samples
[vlc.git] / modules / codec / Makefile.am
1 codecdir = $(pluginsdir)/codec
2 codec_LTLIBRARIES =
3
4 AM_CPPFLAGS += -I$(srcdir)/codec
5
6 libddummy_plugin_la_SOURCES = codec/ddummy.c
7 codec_LTLIBRARIES += libddummy_plugin.la
8
9 libedummy_plugin_la_SOURCES = codec/edummy.c
10 if ENABLE_SOUT
11 codec_LTLIBRARIES += libedummy_plugin.la
12 endif
13
14
15 ### Audio codecs ###
16
17 liba52_plugin_la_SOURCES = codec/a52.c codec/a52.h
18 codec_LTLIBRARIES += liba52_plugin.la
19
20 libadpcm_plugin_la_SOURCES = codec/adpcm.c
21 codec_LTLIBRARIES += libadpcm_plugin.la
22
23 libaes3_plugin_la_SOURCES = codec/aes3.c
24 codec_LTLIBRARIES += libaes3_plugin.la
25
26 libaraw_plugin_la_SOURCES = codec/araw.c
27 libaraw_plugin_la_LIBADD = $(LIBM)
28 codec_LTLIBRARIES += libaraw_plugin.la
29
30 libdts_plugin_la_SOURCES = codec/dts.c codec/dts_header.c codec/dts_header.h
31 codec_LTLIBRARIES += libdts_plugin.la
32
33 libfaad_plugin_la_SOURCES = codec/faad.c
34 libfaad_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_faad)
35 libfaad_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
36 libfaad_plugin_la_LIBADD = $(LIBS_faad) $(LIBM)
37 EXTRA_LTLIBRARIES += libfaad_plugin.la
38 codec_LTLIBRARIES += $(LTLIBfaad)
39
40 libg711_plugin_la_SOURCES = codec/g711.c
41 codec_LTLIBRARIES += libg711_plugin.la
42
43 libfluidsynth_plugin_la_SOURCES = codec/fluidsynth.c
44 libfluidsynth_plugin_la_CFLAGS = $(AM_CFLAGS) $(FLUIDSYNTH_CFLAGS)
45 libfluidsynth_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
46 libfluidsynth_plugin_la_LIBADD = $(FLUIDSYNTH_LIBS)
47 EXTRA_LTLIBRARIES += libfluidsynth_plugin.la
48 codec_LTLIBRARIES += $(LTLIBfluidsynth)
49 if HAVE_DARWIN
50 libfluidsynth_plugin_la_LDFLAGS += -Wl,-framework,CoreFoundation,-framework,CoreServices
51 endif
52
53 liblpcm_plugin_la_SOURCES = codec/lpcm.c
54 codec_LTLIBRARIES += liblpcm_plugin.la
55
56 libmpeg_audio_plugin_la_SOURCES = codec/mpeg_audio.c
57 codec_LTLIBRARIES += libmpeg_audio_plugin.la
58
59 libuleaddvaudio_plugin_la_SOURCES = codec/uleaddvaudio.c
60 codec_LTLIBRARIES += libuleaddvaudio_plugin.la
61
62 libwma_fixed_plugin_la_SOURCES = \
63         codec/wmafixed/asf.h codec/wmafixed/bswap.h \
64         codec/wmafixed/fft.c codec/wmafixed/fft.h \
65         codec/wmafixed/mdct.c codec/wmafixed/mdct.h \
66         codec/wmafixed/wma.c codec/wmafixed/wmadeci.c \
67         codec/wmafixed/bitstream.c codec/wmafixed/bitstream.h \
68         codec/wmafixed/wmadata.h codec/wmafixed/wmadec.h \
69         codec/wmafixed/wmafixed.c codec/wmafixed/wmafixed.h
70 libwma_fixed_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
71 libwma_fixed_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
72 EXTRA_LTLIBRARIES += libwma_fixed_plugin.la
73 codec_LTLIBRARIES += $(LTLIBwma_fixed)
74
75
76 ### Video codecs ###
77
78 libcdg_plugin_la_SOURCES = codec/cdg.c
79 codec_LTLIBRARIES += libcdg_plugin.la
80
81 liblibmpeg2_plugin_la_SOURCES = codec/libmpeg2.c
82 liblibmpeg2_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_libmpeg2)
83 liblibmpeg2_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
84 liblibmpeg2_plugin_la_LIBADD = $(LIBS_libmpeg2)
85 EXTRA_LTLIBRARIES += liblibmpeg2_plugin.la
86 codec_LTLIBRARIES += $(LTLIBlibmpeg2)
87
88 librawvideo_plugin_la_SOURCES = codec/rawvideo.c
89 codec_LTLIBRARIES += librawvideo_plugin.la
90
91 libschroedinger_plugin_la_SOURCES = codec/schroedinger.c
92 libschroedinger_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_schroedinger)
93 libschroedinger_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
94 libschroedinger_plugin_la_LIBADD = $(LIBS_schroedinger)
95 EXTRA_LTLIBRARIES += libschroedinger_plugin.la
96 codec_LTLIBRARIES += $(LTLIBschroedinger)
97
98
99 ### Image codecs ###
100
101 libpng_plugin_la_SOURCES = codec/png.c
102 libpng_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
103 libpng_plugin_la_LIBADD = -lpng -lz $(LIBM)
104 EXTRA_LTLIBRARIES += libpng_plugin.la
105 codec_LTLIBRARIES += $(LTLIBpng)
106
107 libjpeg_plugin_la_SOURCES = codec/jpeg.c
108 libjpeg_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
109 libjpeg_plugin_la_LIBADD = -ljpeg
110 EXTRA_LTLIBRARIES += libjpeg_plugin.la
111 codec_LTLIBRARIES += $(LTLIBjpeg)
112
113 libsvgdec_plugin_la_SOURCES = codec/svg.c
114 libsvgdec_plugin_la_CFLAGS = $(AM_CLAGS) $(CFLAGS_svgdec)
115 libsvgdec_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'  $(LDFLAGS_svg)
116 libsvgdec_plugin_la_LIBADD = $(LIBS_svgdec)
117 EXTRA_LTLIBRARIES += libsvgdec_plugin.la
118 codec_LTLIBRARIES += $(LTLIBsvgdec)
119
120 libsdl_image_plugin_la_SOURCES = codec/sdl_image.c
121 libsdl_image_plugin_la_CFLAGS = $(AM_CFLAGS) $(SDL_IMAGE_CFLAGS)
122 libsdl_image_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
123 libsdl_image_plugin_la_LIBADD = $(SDL_IMAGE_LIBS)
124 EXTRA_LTLIBRARIES += libsdl_image_plugin.la
125 codec_LTLIBRARIES += $(LTLIBsdl_image)
126
127 libxwd_plugin_la_SOURCES = codec/xwd.c
128 libxwd_plugin_la_CFLAGS = $(AM_CFLAGS) $(XPROTO_CFLAGS)
129 libxwd_plugin_la_LIBADD = $(XPROTO_LIBS)
130 libxwd_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
131 if HAVE_XCB
132 codec_LTLIBRARIES += libxwd_plugin.la
133 endif
134
135
136 ### SPU ###
137
138 liblibass_plugin_la_SOURCES = codec/libass.c
139 liblibass_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_libass)
140 liblibass_plugin_la_CFLAGS = $(AM_CFLAGS) $(LIBASS_CFLAGS)
141 liblibass_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
142 liblibass_plugin_la_LIBADD = $(LIBASS_LIBS) $(LIBS_libass) $(LIBS_freetype)
143 EXTRA_LTLIBRARIES += liblibass_plugin.la
144 codec_LTLIBRARIES += $(LTLIBlibass)
145
146 libcc_plugin_la_SOURCES = codec/cc.c codec/cc.h codec/substext.h
147 codec_LTLIBRARIES += libcc_plugin.la
148
149 libcvdsub_plugin_la_SOURCES = codec/cvdsub.c
150 codec_LTLIBRARIES += libcvdsub_plugin.la
151
152 libdvbsub_plugin_la_SOURCES = codec/dvbsub.c
153 codec_LTLIBRARIES += libdvbsub_plugin.la
154
155 libscte27_plugin_la_SOURCES = codec/scte27.c
156 codec_LTLIBRARIES += libscte27_plugin.la
157
158 libspudec_plugin_la_SOURCES = codec/spudec/spudec.c codec/spudec/parse.c codec/spudec/spudec.h
159 libspudec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
160 codec_LTLIBRARIES += libspudec_plugin.la
161
162 libstl_plugin_la_SOURCES = codec/stl.c
163 codec_LTLIBRARIES += libstl_plugin.la
164
165 libsubsdec_plugin_la_SOURCES = codec/subsdec.c codec/substext.h
166 codec_LTLIBRARIES += libsubsdec_plugin.la
167
168 libsubsusf_plugin_la_SOURCES = codec/subsusf.c
169 codec_LTLIBRARIES += libsubsusf_plugin.la
170
171 libsvcdsub_plugin_la_SOURCES = codec/svcdsub.c
172 codec_LTLIBRARIES += libsvcdsub_plugin.la
173
174 libt140_plugin_la_SOURCES = codec/t140.c
175 if ENABLE_SOUT
176 codec_LTLIBRARIES += libt140_plugin.la
177 endif
178
179 libtelx_plugin_la_SOURCES = codec/telx.c
180 libtelx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
181 EXTRA_LTLIBRARIES += libtelx_plugin.la
182 codec_LTLIBRARIES += $(LTLIBtelx)
183
184 libzvbi_plugin_la_SOURCES = codec/zvbi.c
185 libzvbi_plugin_la_CFLAGS = $(AM_CFLAGS) $(ZVBI_CFLAGS) $(CFLAGS_zvbi)
186 libzvbi_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
187 libzvbi_plugin_la_LIBADD = $(ZVBI_LIBS) $(SOCKET_LIBS)
188 if HAVE_WIN32
189 libzvbi_plugin_la_LIBADD += -lpthreadGC2
190 endif
191 EXTRA_LTLIBRARIES += libzvbi_plugin.la
192 codec_LTLIBRARIES += $(LTLIBzvbi)
193
194 libsubstx3g_plugin_la_SOURCES = codec/substx3g.c codec/substext.h
195 codec_LTLIBRARIES += libsubstx3g_plugin.la
196
197 ### Xiph ###
198
199 libflac_plugin_la_SOURCES = codec/flac.c
200 libflac_plugin_la_CFLAGS = $(AM_CFLAGS) $(FLAC_CFLAGS)
201 libflac_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
202 libflac_plugin_la_LIBADD = $(FLAC_LIBS)
203 EXTRA_LTLIBRARIES += libflac_plugin.la
204 codec_LTLIBRARIES += $(LTLIBflac)
205
206 libkate_plugin_la_SOURCES = codec/kate.c
207 libkate_plugin_la_CFLAGS = $(AM_CFLAGS) $(TIGER_CFLAGS) $(KATE_CFLAGS)
208 libkate_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
209 libkate_plugin_la_LIBADD = $(TIGER_LIBS) $(KATE_LIBS) $(LIBM)
210 EXTRA_LTLIBRARIES += libkate_plugin.la
211 codec_LTLIBRARIES += $(LTLIBkate)
212
213 libopus_plugin_la_SOURCES = codec/opus.c codec/opus_header.c codec/opus_header.h
214 libopus_plugin_la_CFLAGS = $(AM_CFLAGS) $(OPUS_CFLAGS)
215 libopus_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
216 libopus_plugin_la_LIBADD = $(OPUS_LIBS) $(LIBM)
217 EXTRA_LTLIBRARIES += libopus_plugin.la
218 codec_LTLIBRARIES += $(LTLIBopus)
219
220 libspeex_plugin_la_SOURCES = codec/speex.c
221 libspeex_plugin_la_CFLAGS = $(AM_CFLAGS) $(SPEEX_CFLAGS)
222 libspeex_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
223 libspeex_plugin_la_LIBADD = $(SPEEX_LIBS) $(LIBM)
224 EXTRA_LTLIBRARIES += libspeex_plugin.la
225 codec_LTLIBRARIES += $(LTLIBspeex)
226
227 libtheora_plugin_la_SOURCES = codec/theora.c
228 libtheora_plugin_la_CFLAGS = $(AM_CFLAGS) $(THEORA_CFLAGS)
229 libtheora_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
230 libtheora_plugin_la_LIBADD = $(THEORA_LIBS)
231 EXTRA_LTLIBRARIES += libtheora_plugin.la
232 codec_LTLIBRARIES += $(LTLIBtheora)
233
234 libtremor_plugin_la_SOURCES = codec/vorbis.c
235 libtremor_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_tremor
236 libtremor_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
237 libtremor_plugin_la_LIBADD = -lvorbisdec -logg
238 EXTRA_LTLIBRARIES += libtremor_plugin.la
239 codec_LTLIBRARIES += $(LTLIBtremor)
240
241 libvorbis_plugin_la_SOURCES = codec/vorbis.c
242 libvorbis_plugin_la_CFLAGS = $(AM_CFLAGS) $(VORBIS_CFLAGS)
243 libvorbis_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
244 libvorbis_plugin_la_LIBADD = $(VORBIS_LIBS)
245 EXTRA_LTLIBRARIES += libvorbis_plugin.la
246 codec_LTLIBRARIES += $(LTLIBvorbis)
247
248
249 ### FFmpeg/libav ###
250
251 libavcodec_plugin_la_SOURCES = \
252         codec/avcodec/avcommon_compat.h \
253         codec/avcodec/avcommon.h \
254         codec/avcodec/video.c \
255         codec/avcodec/subtitle.c \
256         codec/avcodec/audio.c \
257         codec/avcodec/fourcc.c \
258         codec/avcodec/chroma.c codec/avcodec/chroma.h \
259         codec/avcodec/va.c codec/avcodec/va.h \
260         codec/avcodec/avcodec.c codec/avcodec/avcodec.h
261 if ENABLE_SOUT
262 libavcodec_plugin_la_SOURCES += codec/avcodec/encoder.c
263 endif
264 libavcodec_plugin_la_CFLAGS = $(AVCODEC_CFLAGS) $(AM_CFLAGS)
265 libavcodec_plugin_la_LIBADD = $(AVCODEC_LIBS) $(LIBM)
266 libavcodec_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(SYMBOLIC_LDFLAGS)
267
268 if MERGE_FFMPEG
269 libavcodec_plugin_la_SOURCES += demux/avformat/demux.c access/avio.c
270 libavcodec_plugin_la_CFLAGS += $(AVFORMAT_CFLAGS)
271 libavcodec_plugin_la_LIBADD += $(AVFORMAT_LIBS)
272 if ENABLE_SOUT
273 libavcodec_plugin_la_SOURCES += demux/avformat/mux.c
274 endif
275 libavcodec_plugin_la_CFLAGS += -DMERGE_FFMPEG
276 endif
277 if HAVE_AVCODEC
278 codec_LTLIBRARIES += libavcodec_plugin.la
279 endif
280
281 ### avcodec hardware acceleration ###
282
283 libvaapi_drm_plugin_la_SOURCES = \
284         video_chroma/copy.c video_chroma/copy.h \
285         codec/avcodec/vaapi.c
286 libvaapi_drm_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DVLC_VA_BACKEND_DRM
287 libvaapi_drm_plugin_la_CFLAGS = $(AM_CFLAGS) \
288         $(LIBVA_DRM_CFLAGS) $(AVCODEC_CFLAGS)
289 libvaapi_drm_plugin_la_LIBADD = $(LIBVA_DRM_LIBS)
290 libvaapi_x11_plugin_la_SOURCES = \
291         video_chroma/copy.c video_chroma/copy.h \
292         codec/avcodec/vaapi.c
293 libvaapi_x11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DVLC_VA_BACKEND_XLIB
294 libvaapi_x11_plugin_la_CFLAGS = $(AM_CFLAGS) \
295         $(LIBVA_X11_CFLAGS) $(X_CFLAGS) $(AVCODEC_CFLAGS)
296 libvaapi_x11_plugin_la_LIBADD = $(LIBVA_X11_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11
297 if HAVE_AVCODEC_VAAPI
298 if HAVE_VAAPI_DRM
299 codec_LTLIBRARIES += libvaapi_drm_plugin.la
300 endif
301 if HAVE_VAAPI_X11
302 codec_LTLIBRARIES += libvaapi_x11_plugin.la
303 endif
304 endif
305
306 libdxva2_plugin_la_SOURCES = \
307         video_chroma/copy.c video_chroma/copy.h \
308         codec/avcodec/dxva2.c
309 libdxva2_plugin_la_LIBADD = -lole32 -lshlwapi -luuid
310 if HAVE_AVCODEC_DXVA2
311 codec_LTLIBRARIES += libdxva2_plugin.la
312 endif
313
314 libvda_plugin_la_SOURCES = \
315         video_chroma/copy.c video_chroma/copy.h \
316         codec/avcodec/vda.c
317 libvda_plugin_la_CFLAGS = $(AM_CFLAGS) $(AVCODEC_CFLAGS)
318 libvda_plugin_la_LDFLAGS = -Wl,-framework,CoreFoundation,-framework,VideoDecodeAcceleration,-framework,QuartzCore
319 libvda_plugin_la_LIBADD = $(AVCODEC_LIBS)
320 if HAVE_AVCODEC_VDA
321 codec_LTLIBRARIES += libvda_plugin.la
322 endif
323
324 libhwdummy_plugin_la_SOURCES = codec/avcodec/hwdummy.c
325 libhwdummy_plugin_la_CFLAGS = $(AM_CFLAGS) $(VDPAU_CFLAGS) $(AVCODEC_CFLAGS)
326 libhwdummy_plugin_la_LIBADD = $(AVCODEC_LIBS)
327 # FIXME: hwdummy only needs libavutil, and only if avcodec < 55.13.0
328 if HAVE_AVCODEC_VDPAU
329 codec_LTLIBRARIES += libhwdummy_plugin.la
330 endif
331
332
333 ### OpenMAX ###
334
335 noinst_HEADERS += \
336         codec/omxil/OMX_Broadcom.h \
337         codec/omxil/OMX_Component.h \
338         codec/omxil/OMX_Core.h \
339         codec/omxil/OMX_Image.h \
340         codec/omxil/OMX_IVCommon.h \
341         codec/omxil/OMX_Types.h \
342         codec/omxil/OMX_Audio.h \
343         codec/omxil/OMX_Index.h \
344         codec/omxil/OMX_Other.h \
345         codec/omxil/OMX_Video.h
346
347 libomxil_plugin_la_SOURCES = \
348         codec/omxil/utils.c codec/omxil/omxil_utils.h \
349         codec/h264_nal.h \
350         codec/omxil/qcom.c codec/omxil/qcom.h \
351         codec/omxil/omxil.c codec/omxil/omxil.h codec/omxil/omxil_core.c codec/omxil/omxil_core.h \
352         video_chroma/copy.c
353 libomxil_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil $(CFLAGS_omxil)
354 libomxil_plugin_la_LIBADD = $(LIBDL)
355 libomxil_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
356
357 libomxil_vout_plugin_la_SOURCES = codec/omxil/vout.c codec/omxil/omxil_core.c codec/omxil/utils.c codec/omxil/qcom.c video_chroma/copy.c
358 libomxil_vout_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil $(CFLAGS_omxil_vout)
359 libomxil_vout_plugin_la_LIBADD = $(LIBDL)
360 libomxil_vout_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
361
362 libiomx_plugin_la_SOURCES = $(libomxil_plugin_la_SOURCES)
363 libiomx_plugin_la_CPPFLAGS = $(libomxil_plugin_la_CPPFLAGS) -DUSE_IOMX
364 libiomx_plugin_la_LIBADD = $(libomxil_plugin_la_LIBADD)
365
366 libmediacodec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil
367 libmediacodec_plugin_la_SOURCES = codec/omxil/android_mediacodec.c codec/omxil/utils.c \
368         video_chroma/copy.c codec/omxil/android_opaque.c codec/omxil/android_opaque.h
369
370 codec_LTLIBRARIES += $(LTLIBomxil) $(LTLIBomxil_vout)
371 EXTRA_LTLIBRARIES += libomxil_plugin.la libomxil_vout_plugin.la
372 if HAVE_ANDROID
373 codec_LTLIBRARIES += libiomx_plugin.la libmediacodec_plugin.la
374 endif
375
376
377 ### X26x encoders ###
378
379 libx265_plugin_la_SOURCES = codec/x265.c
380 libx265_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
381 libx265_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x265)
382 libx265_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x265) -rpath '$(codecdir)'
383 libx265_plugin_la_LIBADD = $(LIBS_x265)
384 EXTRA_LTLIBRARIES += libx265_plugin.la
385 codec_LTLIBRARIES += $(LTLIBx265)
386
387 libx262_plugin_la_SOURCES = codec/x264.c
388 libx262_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_x262
389 libx262_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x262)
390 libx262_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x262) -rpath '$(codecdir)'
391 libx262_plugin_la_LIBADD = $(LIBS_x262)
392 EXTRA_LTLIBRARIES += libx262_plugin.la
393 codec_LTLIBRARIES += $(LTLIBx262)
394
395 libx264_plugin_la_SOURCES = codec/x264.c
396 libx264_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_x264) -DMODULE_NAME_IS_x264
397 libx264_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x264)
398 libx264_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x264) -rpath '$(codecdir)'
399 libx264_plugin_la_LIBADD = $(LIBS_x264)
400 EXTRA_LTLIBRARIES += libx264_plugin.la
401 codec_LTLIBRARIES += $(LTLIBx264)
402
403 libx26410b_plugin_la_SOURCES = codec/x264.c
404 libx26410b_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_x26410b
405 libx26410b_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x26410b)
406 libx26410b_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x26410b) -rpath '$(codecdir)'
407 libx26410b_plugin_la_LIBADD = $(LIBS_x26410b)
408 EXTRA_LTLIBRARIES += libx26410b_plugin.la
409 codec_LTLIBRARIES += $(LTLIBx26410b)
410
411
412 ### Misc encoders ###
413
414 libfdkaac_plugin_la_SOURCES = codec/fdkaac.c
415 libfdkaac_plugin_la_CFLAGS = $(AM_CFLAGS) $(FDKAAC_CFLAGS)
416 libfdkaac_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
417 libfdkaac_plugin_la_LIBADD = $(FDKAAC_LIBS)
418 EXTRA_LTLIBRARIES += libfdkaac_plugin.la
419 codec_LTLIBRARIES += $(LTLIBfdkaac)
420
421 libshine_plugin_la_SOURCES = codec/shine.c
422 libshine_plugin_la_CFLAGS = $(AM_CFLAGS) $(SHINE_CFLAGS)
423 libshine_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)' $(SHINE_LIBS)
424 EXTRA_LTLIBRARIES += libshine_plugin.la
425 codec_LTLIBRARIES += $(LTLIBshine)
426
427 libvpx_plugin_la_SOURCES = codec/vpx.c
428 libvpx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
429 libvpx_plugin_la_CFLAGS = $(AM_CFLAGS) $(VPX_CFLAGS) $(CPPFLAGS_vpx)
430 libvpx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
431 libvpx_plugin_la_LIBADD = $(VPX_LIBS)
432 EXTRA_LTLIBRARIES += libvpx_plugin.la
433 codec_LTLIBRARIES += $(LTLIBvpx)
434
435 libtwolame_plugin_la_SOURCES = codec/twolame.c
436 libtwolame_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DLIBTWOLAME_STATIC
437 libtwolame_plugin_la_CFLAGS = $(AM_CFLAGS) $(TWOLAME_CFLAGS)
438 libtwolame_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
439 libtwolame_plugin_la_LIBADD = $(TWOLAME_LIBS) $(LIBM)
440 EXTRA_LTLIBRARIES += libtwolame_plugin.la
441 codec_LTLIBRARIES += $(LTLIBtwolame)
442
443
444 ### Hardware encoders ###
445
446 libcrystalhd_plugin_la_SOURCES = codec/crystalhd.c codec/h264_nal.h
447 libcrystalhd_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
448 libcrystalhd_plugin_la_LIBADD = $(LIBS_crystalhd)
449 EXTRA_LTLIBRARIES += libcrystalhd_plugin.la
450 codec_LTLIBRARIES += $(LTLIBcrystalhd)
451
452 libqsv_plugin_la_SOURCES = codec/qsv.c
453 libqsv_plugin_la_CFLAGS = $(AM_CFLAGS) $(MFX_CFLAGS)
454 libqsv_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
455 libqsv_plugin_la_LIBADD = $(MFX_LIBS)
456 EXTRA_LTLIBRARIES += libqsv_plugin.la
457 codec_LTLIBRARIES += $(LTLIBqsv)
458
459
460 ### External frameworks ###
461
462 libdmo_plugin_la_SOURCES = codec/dmo/dmo.c codec/dmo/dmo.h codec/dmo/buffer.c
463 libqsv_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
464 libdmo_plugin_la_LIBADD = $(LIBM)
465 if HAVE_WIN32
466 libdmo_plugin_la_LIBADD += -lole32 -luuid
467 codec_LTLIBRARIES += libdmo_plugin.la
468 endif
469
470 libmft_plugin_la_SOURCES = codec/mft.c
471 if HAVE_WIN32
472 libmft_plugin_la_LIBADD = -lole32 -luuid
473 codec_LTLIBRARIES += libmft_plugin.la
474 endif
475
476 libquicktime_plugin_la_SOURCES = codec/quicktime.c
477 libquicktime_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
478 libquicktime_plugin_la_LIBADD = $(LIBM)
479 EXTRA_LTLIBRARIES += libquicktime_plugin.la
480 codec_LTLIBRARIES += $(LTLIBquicktime)
481
482 libgstdecode_plugin_la_SOURCES = codec/gstdecode.c
483 libgstdecode_plugin_la_CFLAGS = $(AM_CFLAGS) $(GST_VIDEO_CFLAGS) $(GST_APP_CFLAGS)
484 libgstdecode_plugin_la_LIBADD = $(GST_VIDEO_LIBS) $(GST_APP_LIBS)
485 if HAVE_GST_DECODE
486 codec_LTLIBRARIES += libgstdecode_plugin.la
487 endif