codecs: add support for ARIB subtitles
[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 libaribsub_plugin_la_SOURCES = codec/arib/aribsub.c codec/arib/substext.h
156 libaribsub_plugin_la_CFLAGS = $(ARIBB24_CFLAGS)
157 libaribsub_plugin_la_LIBADD = $(ARIBB24_LIBS)
158 codec_LTLIBRARIES += libaribsub_plugin.la
159
160 libscte27_plugin_la_SOURCES = codec/scte27.c
161 codec_LTLIBRARIES += libscte27_plugin.la
162
163 libspudec_plugin_la_SOURCES = codec/spudec/spudec.c codec/spudec/parse.c codec/spudec/spudec.h
164 libspudec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
165 codec_LTLIBRARIES += libspudec_plugin.la
166
167 libstl_plugin_la_SOURCES = codec/stl.c
168 codec_LTLIBRARIES += libstl_plugin.la
169
170 libsubsdec_plugin_la_SOURCES = codec/subsdec.c codec/substext.h
171 codec_LTLIBRARIES += libsubsdec_plugin.la
172
173 libsubsusf_plugin_la_SOURCES = codec/subsusf.c
174 codec_LTLIBRARIES += libsubsusf_plugin.la
175
176 libsvcdsub_plugin_la_SOURCES = codec/svcdsub.c
177 codec_LTLIBRARIES += libsvcdsub_plugin.la
178
179 libt140_plugin_la_SOURCES = codec/t140.c
180 if ENABLE_SOUT
181 codec_LTLIBRARIES += libt140_plugin.la
182 endif
183
184 libtelx_plugin_la_SOURCES = codec/telx.c
185 libtelx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
186 EXTRA_LTLIBRARIES += libtelx_plugin.la
187 codec_LTLIBRARIES += $(LTLIBtelx)
188
189 libzvbi_plugin_la_SOURCES = codec/zvbi.c
190 libzvbi_plugin_la_CFLAGS = $(AM_CFLAGS) $(ZVBI_CFLAGS) $(CFLAGS_zvbi)
191 libzvbi_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
192 libzvbi_plugin_la_LIBADD = $(ZVBI_LIBS) $(SOCKET_LIBS)
193 if HAVE_WIN32
194 libzvbi_plugin_la_LIBADD += -lpthreadGC2
195 endif
196 EXTRA_LTLIBRARIES += libzvbi_plugin.la
197 codec_LTLIBRARIES += $(LTLIBzvbi)
198
199 libsubstx3g_plugin_la_SOURCES = codec/substx3g.c codec/substext.h
200 codec_LTLIBRARIES += libsubstx3g_plugin.la
201
202 ### Xiph ###
203
204 libflac_plugin_la_SOURCES = codec/flac.c
205 libflac_plugin_la_CFLAGS = $(AM_CFLAGS) $(FLAC_CFLAGS)
206 libflac_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
207 libflac_plugin_la_LIBADD = $(FLAC_LIBS)
208 EXTRA_LTLIBRARIES += libflac_plugin.la
209 codec_LTLIBRARIES += $(LTLIBflac)
210
211 libkate_plugin_la_SOURCES = codec/kate.c
212 libkate_plugin_la_CFLAGS = $(AM_CFLAGS) $(TIGER_CFLAGS) $(KATE_CFLAGS)
213 libkate_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
214 libkate_plugin_la_LIBADD = $(TIGER_LIBS) $(KATE_LIBS) $(LIBM)
215 EXTRA_LTLIBRARIES += libkate_plugin.la
216 codec_LTLIBRARIES += $(LTLIBkate)
217
218 libopus_plugin_la_SOURCES = codec/opus.c codec/opus_header.c codec/opus_header.h
219 libopus_plugin_la_CFLAGS = $(AM_CFLAGS) $(OPUS_CFLAGS)
220 libopus_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
221 libopus_plugin_la_LIBADD = $(OPUS_LIBS) $(LIBM)
222 EXTRA_LTLIBRARIES += libopus_plugin.la
223 codec_LTLIBRARIES += $(LTLIBopus)
224
225 libspeex_plugin_la_SOURCES = codec/speex.c
226 libspeex_plugin_la_CFLAGS = $(AM_CFLAGS) $(SPEEX_CFLAGS)
227 libspeex_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
228 libspeex_plugin_la_LIBADD = $(SPEEX_LIBS) $(LIBM)
229 EXTRA_LTLIBRARIES += libspeex_plugin.la
230 codec_LTLIBRARIES += $(LTLIBspeex)
231
232 libtheora_plugin_la_SOURCES = codec/theora.c
233 libtheora_plugin_la_CFLAGS = $(AM_CFLAGS) $(THEORA_CFLAGS)
234 libtheora_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
235 libtheora_plugin_la_LIBADD = $(THEORA_LIBS)
236 EXTRA_LTLIBRARIES += libtheora_plugin.la
237 codec_LTLIBRARIES += $(LTLIBtheora)
238
239 libtremor_plugin_la_SOURCES = codec/vorbis.c
240 libtremor_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_tremor
241 libtremor_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
242 libtremor_plugin_la_LIBADD = -lvorbisdec -logg
243 EXTRA_LTLIBRARIES += libtremor_plugin.la
244 codec_LTLIBRARIES += $(LTLIBtremor)
245
246 libvorbis_plugin_la_SOURCES = codec/vorbis.c
247 libvorbis_plugin_la_CFLAGS = $(AM_CFLAGS) $(VORBIS_CFLAGS)
248 libvorbis_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
249 libvorbis_plugin_la_LIBADD = $(VORBIS_LIBS)
250 EXTRA_LTLIBRARIES += libvorbis_plugin.la
251 codec_LTLIBRARIES += $(LTLIBvorbis)
252
253
254 ### FFmpeg/libav ###
255
256 libavcodec_plugin_la_SOURCES = \
257         codec/avcodec/avcommon_compat.h \
258         codec/avcodec/avcommon.h \
259         codec/avcodec/video.c \
260         codec/avcodec/subtitle.c \
261         codec/avcodec/audio.c \
262         codec/avcodec/fourcc.c \
263         codec/avcodec/chroma.c codec/avcodec/chroma.h \
264         codec/avcodec/va.c codec/avcodec/va.h \
265         codec/avcodec/avcodec.c codec/avcodec/avcodec.h
266 if ENABLE_SOUT
267 libavcodec_plugin_la_SOURCES += codec/avcodec/encoder.c
268 endif
269 libavcodec_plugin_la_CFLAGS = $(AVCODEC_CFLAGS) $(AM_CFLAGS)
270 libavcodec_plugin_la_LIBADD = $(AVCODEC_LIBS) $(LIBM)
271 libavcodec_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(SYMBOLIC_LDFLAGS)
272
273 if MERGE_FFMPEG
274 libavcodec_plugin_la_SOURCES += demux/avformat/demux.c access/avio.c
275 libavcodec_plugin_la_CFLAGS += $(AVFORMAT_CFLAGS)
276 libavcodec_plugin_la_LIBADD += $(AVFORMAT_LIBS)
277 if ENABLE_SOUT
278 libavcodec_plugin_la_SOURCES += demux/avformat/mux.c
279 endif
280 libavcodec_plugin_la_CFLAGS += -DMERGE_FFMPEG
281 endif
282 if HAVE_AVCODEC
283 codec_LTLIBRARIES += libavcodec_plugin.la
284 endif
285
286 ### avcodec hardware acceleration ###
287
288 libvaapi_drm_plugin_la_SOURCES = \
289         video_chroma/copy.c video_chroma/copy.h \
290         codec/avcodec/vaapi.c
291 libvaapi_drm_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DVLC_VA_BACKEND_DRM
292 libvaapi_drm_plugin_la_CFLAGS = $(AM_CFLAGS) \
293         $(LIBVA_DRM_CFLAGS) $(AVCODEC_CFLAGS)
294 libvaapi_drm_plugin_la_LIBADD = $(LIBVA_DRM_LIBS)
295 libvaapi_x11_plugin_la_SOURCES = \
296         video_chroma/copy.c video_chroma/copy.h \
297         codec/avcodec/vaapi.c
298 libvaapi_x11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DVLC_VA_BACKEND_XLIB
299 libvaapi_x11_plugin_la_CFLAGS = $(AM_CFLAGS) \
300         $(LIBVA_X11_CFLAGS) $(X_CFLAGS) $(AVCODEC_CFLAGS)
301 libvaapi_x11_plugin_la_LIBADD = $(LIBVA_X11_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11
302 if HAVE_AVCODEC_VAAPI
303 if HAVE_VAAPI_DRM
304 codec_LTLIBRARIES += libvaapi_drm_plugin.la
305 endif
306 if HAVE_VAAPI_X11
307 codec_LTLIBRARIES += libvaapi_x11_plugin.la
308 endif
309 endif
310
311 libdxva2_plugin_la_SOURCES = \
312         video_chroma/copy.c video_chroma/copy.h \
313         codec/avcodec/dxva2.c
314 libdxva2_plugin_la_LIBADD = -lole32 -lshlwapi -luuid
315 if HAVE_AVCODEC_DXVA2
316 codec_LTLIBRARIES += libdxva2_plugin.la
317 endif
318
319 libvda_plugin_la_SOURCES = \
320         video_chroma/copy.c video_chroma/copy.h \
321         codec/avcodec/vda.c
322 libvda_plugin_la_CFLAGS = $(AM_CFLAGS) $(AVCODEC_CFLAGS)
323 libvda_plugin_la_LDFLAGS = -Wl,-framework,CoreFoundation,-framework,VideoDecodeAcceleration,-framework,QuartzCore
324 libvda_plugin_la_LIBADD = $(AVCODEC_LIBS)
325 if HAVE_AVCODEC_VDA
326 codec_LTLIBRARIES += libvda_plugin.la
327 endif
328
329 libhwdummy_plugin_la_SOURCES = codec/avcodec/hwdummy.c
330 libhwdummy_plugin_la_CFLAGS = $(AM_CFLAGS) $(VDPAU_CFLAGS) $(AVCODEC_CFLAGS)
331 libhwdummy_plugin_la_LIBADD = $(AVCODEC_LIBS)
332 # FIXME: hwdummy only needs libavutil, and only if avcodec < 55.13.0
333 if HAVE_AVCODEC_VDPAU
334 codec_LTLIBRARIES += libhwdummy_plugin.la
335 endif
336
337
338 ### OpenMAX ###
339
340 noinst_HEADERS += \
341         codec/omxil/OMX_Broadcom.h \
342         codec/omxil/OMX_Component.h \
343         codec/omxil/OMX_Core.h \
344         codec/omxil/OMX_Image.h \
345         codec/omxil/OMX_IVCommon.h \
346         codec/omxil/OMX_Types.h \
347         codec/omxil/OMX_Audio.h \
348         codec/omxil/OMX_Index.h \
349         codec/omxil/OMX_Other.h \
350         codec/omxil/OMX_Video.h
351
352 libomxil_plugin_la_SOURCES = \
353         codec/omxil/utils.c codec/omxil/omxil_utils.h \
354         codec/h264_nal.c codec/h264_nal.h \
355         codec/omxil/qcom.c codec/omxil/qcom.h \
356         codec/omxil/omxil.c codec/omxil/omxil.h codec/omxil/omxil_core.c codec/omxil/omxil_core.h \
357         video_chroma/copy.c
358 libomxil_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil $(CFLAGS_omxil)
359 libomxil_plugin_la_LIBADD = $(LIBDL)
360 libomxil_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
361
362 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
363 libomxil_vout_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil $(CFLAGS_omxil_vout)
364 libomxil_vout_plugin_la_LIBADD = $(LIBDL)
365 libomxil_vout_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
366
367 libiomx_plugin_la_SOURCES = $(libomxil_plugin_la_SOURCES)
368 libiomx_plugin_la_CPPFLAGS = $(libomxil_plugin_la_CPPFLAGS) -DUSE_IOMX
369 libiomx_plugin_la_LIBADD = $(libomxil_plugin_la_LIBADD)
370
371 libmediacodec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil
372 libmediacodec_plugin_la_SOURCES = codec/omxil/android_mediacodec.c codec/omxil/utils.c \
373         video_chroma/copy.c codec/omxil/android_opaque.c codec/omxil/android_opaque.h \
374         codec/h264_nal.c codec/h264_nal.h
375
376 codec_LTLIBRARIES += $(LTLIBomxil) $(LTLIBomxil_vout)
377 EXTRA_LTLIBRARIES += libomxil_plugin.la libomxil_vout_plugin.la
378 if HAVE_ANDROID
379 codec_LTLIBRARIES += libiomx_plugin.la libmediacodec_plugin.la
380 endif
381
382
383 ### MMAL ###
384
385 libmmal_codec_plugin_la_SOURCES = codec/mmal.c
386 libmmal_codec_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_mmal_codec)
387 libmmal_codec_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)' $(LDFLAGS_mmal_codec)
388 libmmal_codec_plugin_la_LIBADD = $(LIBS_mmal_codec)
389 EXTRA_LTLIBRARIES += libmmal_codec_plugin.la
390 codec_LTLIBRARIES += $(LTLIBmmal_codec)
391
392
393 ### X26x encoders ###
394
395 libx265_plugin_la_SOURCES = codec/x265.c
396 libx265_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
397 libx265_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x265)
398 libx265_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x265) -rpath '$(codecdir)'
399 libx265_plugin_la_LIBADD = $(LIBS_x265)
400 EXTRA_LTLIBRARIES += libx265_plugin.la
401 codec_LTLIBRARIES += $(LTLIBx265)
402
403 libx262_plugin_la_SOURCES = codec/x264.c
404 libx262_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_x262
405 libx262_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x262)
406 libx262_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x262) -rpath '$(codecdir)'
407 libx262_plugin_la_LIBADD = $(LIBS_x262)
408 EXTRA_LTLIBRARIES += libx262_plugin.la
409 codec_LTLIBRARIES += $(LTLIBx262)
410
411 libx264_plugin_la_SOURCES = codec/x264.c
412 libx264_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_x264) -DMODULE_NAME_IS_x264
413 libx264_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x264)
414 libx264_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x264) -rpath '$(codecdir)'
415 libx264_plugin_la_LIBADD = $(LIBS_x264)
416 EXTRA_LTLIBRARIES += libx264_plugin.la
417 codec_LTLIBRARIES += $(LTLIBx264)
418
419 libx26410b_plugin_la_SOURCES = codec/x264.c
420 libx26410b_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_x26410b
421 libx26410b_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x26410b)
422 libx26410b_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x26410b) -rpath '$(codecdir)'
423 libx26410b_plugin_la_LIBADD = $(LIBS_x26410b)
424 EXTRA_LTLIBRARIES += libx26410b_plugin.la
425 codec_LTLIBRARIES += $(LTLIBx26410b)
426
427
428 ### Misc encoders ###
429
430 libfdkaac_plugin_la_SOURCES = codec/fdkaac.c
431 libfdkaac_plugin_la_CFLAGS = $(AM_CFLAGS) $(FDKAAC_CFLAGS)
432 libfdkaac_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
433 libfdkaac_plugin_la_LIBADD = $(FDKAAC_LIBS)
434 EXTRA_LTLIBRARIES += libfdkaac_plugin.la
435 codec_LTLIBRARIES += $(LTLIBfdkaac)
436
437 libshine_plugin_la_SOURCES = codec/shine.c
438 libshine_plugin_la_CFLAGS = $(AM_CFLAGS) $(SHINE_CFLAGS)
439 libshine_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)' $(SHINE_LIBS)
440 EXTRA_LTLIBRARIES += libshine_plugin.la
441 codec_LTLIBRARIES += $(LTLIBshine)
442
443 libvpx_plugin_la_SOURCES = codec/vpx.c
444 libvpx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
445 libvpx_plugin_la_CFLAGS = $(AM_CFLAGS) $(VPX_CFLAGS) $(CPPFLAGS_vpx)
446 libvpx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
447 libvpx_plugin_la_LIBADD = $(VPX_LIBS)
448 EXTRA_LTLIBRARIES += libvpx_plugin.la
449 codec_LTLIBRARIES += $(LTLIBvpx)
450
451 libtwolame_plugin_la_SOURCES = codec/twolame.c
452 libtwolame_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DLIBTWOLAME_STATIC
453 libtwolame_plugin_la_CFLAGS = $(AM_CFLAGS) $(TWOLAME_CFLAGS)
454 libtwolame_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
455 libtwolame_plugin_la_LIBADD = $(TWOLAME_LIBS) $(LIBM)
456 EXTRA_LTLIBRARIES += libtwolame_plugin.la
457 codec_LTLIBRARIES += $(LTLIBtwolame)
458
459
460 ### Hardware encoders ###
461
462 libcrystalhd_plugin_la_SOURCES = codec/crystalhd.c codec/h264_nal.c codec/h264_nal.h
463 libcrystalhd_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
464 libcrystalhd_plugin_la_LIBADD = $(LIBS_crystalhd)
465 EXTRA_LTLIBRARIES += libcrystalhd_plugin.la
466 codec_LTLIBRARIES += $(LTLIBcrystalhd)
467
468 libqsv_plugin_la_SOURCES = codec/qsv.c
469 libqsv_plugin_la_CFLAGS = $(AM_CFLAGS) $(MFX_CFLAGS)
470 libqsv_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
471 libqsv_plugin_la_LIBADD = $(MFX_LIBS)
472 EXTRA_LTLIBRARIES += libqsv_plugin.la
473 codec_LTLIBRARIES += $(LTLIBqsv)
474
475
476 ### External frameworks ###
477
478 libdmo_plugin_la_SOURCES = codec/dmo/dmo.c codec/dmo/dmo.h codec/dmo/buffer.c
479 libqsv_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
480 libdmo_plugin_la_LIBADD = $(LIBM)
481 if HAVE_WIN32
482 libdmo_plugin_la_LIBADD += -lole32 -luuid
483 codec_LTLIBRARIES += libdmo_plugin.la
484 endif
485
486 libmft_plugin_la_SOURCES = codec/mft.c codec/h264_nal.c codec/h264_nal.h
487 if HAVE_WIN32
488 libmft_plugin_la_LIBADD = -lole32 -luuid
489 codec_LTLIBRARIES += libmft_plugin.la
490 endif
491
492 libquicktime_plugin_la_SOURCES = codec/quicktime.c
493 libquicktime_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
494 libquicktime_plugin_la_LIBADD = $(LIBM)
495 EXTRA_LTLIBRARIES += libquicktime_plugin.la
496 codec_LTLIBRARIES += $(LTLIBquicktime)
497
498 libgstdecode_plugin_la_SOURCES = codec/gstdecode.c
499 libgstdecode_plugin_la_CFLAGS = $(AM_CFLAGS) $(GST_VIDEO_CFLAGS) $(GST_APP_CFLAGS)
500 libgstdecode_plugin_la_LIBADD = $(GST_VIDEO_LIBS) $(GST_APP_LIBS)
501 if HAVE_GST_DECODE
502 codec_LTLIBRARIES += libgstdecode_plugin.la
503 endif