decoders: add HDMV text subtitles decoder
[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 libspdif_plugin_la_SOURCES = codec/spdif.c
17 codec_LTLIBRARIES += libspdif_plugin.la
18
19 liba52_plugin_la_SOURCES = codec/a52.c
20 liba52_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_a52)
21 liba52_plugin_la_LIBADD = $(LIBS_a52)
22 liba52_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
23 EXTRA_LTLIBRARIES += liba52_plugin.la
24 codec_LTLIBRARIES += $(LTLIBa52)
25
26 libdca_plugin_la_SOURCES = codec/dca.c
27 libdca_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(DCA_CFLAGS)
28 libdca_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
29 libdca_plugin_la_LIBADD = $(LIBM) $(DCA_LIBS)
30 EXTRA_LTLIBRARIES += libdca_plugin.la
31 codec_LTLIBRARIES += $(LTLIBdca)
32
33 libadpcm_plugin_la_SOURCES = codec/adpcm.c
34 codec_LTLIBRARIES += libadpcm_plugin.la
35
36 libaes3_plugin_la_SOURCES = codec/aes3.c
37 codec_LTLIBRARIES += libaes3_plugin.la
38
39 libaraw_plugin_la_SOURCES = codec/araw.c
40 libaraw_plugin_la_LIBADD = $(LIBM)
41 codec_LTLIBRARIES += libaraw_plugin.la
42
43 libfaad_plugin_la_SOURCES = codec/faad.c
44 libfaad_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_faad)
45 libfaad_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
46 libfaad_plugin_la_LIBADD = $(LIBS_faad) $(LIBM)
47 EXTRA_LTLIBRARIES += libfaad_plugin.la
48 codec_LTLIBRARIES += $(LTLIBfaad)
49
50 libg711_plugin_la_SOURCES = codec/g711.c
51 codec_LTLIBRARIES += libg711_plugin.la
52
53 libfluidsynth_plugin_la_SOURCES = codec/fluidsynth.c
54 libfluidsynth_plugin_la_CFLAGS = $(AM_CFLAGS) $(FLUIDSYNTH_CFLAGS)
55 libfluidsynth_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
56 libfluidsynth_plugin_la_LIBADD = $(FLUIDSYNTH_LIBS)
57 EXTRA_LTLIBRARIES += libfluidsynth_plugin.la
58 codec_LTLIBRARIES += $(LTLIBfluidsynth)
59 if HAVE_DARWIN
60 libfluidsynth_plugin_la_LDFLAGS += -Wl,-framework,CoreFoundation,-framework,CoreServices
61 endif
62
63 liblpcm_plugin_la_SOURCES = codec/lpcm.c
64 codec_LTLIBRARIES += liblpcm_plugin.la
65
66 libmad_plugin_la_SOURCES = codec/mad.c
67 libmad_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(MAD_CFLAGS)
68 libmad_plugin_la_LIBADD = $(AM_LIBADD) $(MAD_LIBS)
69 if HAVE_MAD
70 audio_filter_LTLIBRARIES += libmad_plugin.la
71 endif
72
73 libmpg123_plugin_la_SOURCES = codec/mpg123.c
74 libmpg123_plugin_la_CFLAGS = $(AM_CFLAGS) $(MPG123_CFLAGS)
75 libmpg123_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
76 libmpg123_plugin_la_LIBADD = $(MPG123_LIBS)
77 EXTRA_LTLIBRARIES += libmpg123_plugin.la
78 codec_LTLIBRARIES += $(LTLIBmpg123)
79
80 libuleaddvaudio_plugin_la_SOURCES = codec/uleaddvaudio.c
81 codec_LTLIBRARIES += libuleaddvaudio_plugin.la
82
83 libwma_fixed_plugin_la_SOURCES = \
84         codec/wmafixed/asf.h codec/wmafixed/bswap.h \
85         codec/wmafixed/fft.c codec/wmafixed/fft.h \
86         codec/wmafixed/mdct.c codec/wmafixed/mdct.h \
87         codec/wmafixed/wma.c codec/wmafixed/wmadeci.c \
88         codec/wmafixed/bitstream.c codec/wmafixed/bitstream.h \
89         codec/wmafixed/wmadata.h codec/wmafixed/wmadec.h \
90         codec/wmafixed/wmafixed.c codec/wmafixed/wmafixed.h
91 libwma_fixed_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
92 libwma_fixed_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
93 EXTRA_LTLIBRARIES += libwma_fixed_plugin.la
94 codec_LTLIBRARIES += $(LTLIBwma_fixed)
95
96
97 ### Video codecs ###
98
99 libcdg_plugin_la_SOURCES = codec/cdg.c
100 codec_LTLIBRARIES += libcdg_plugin.la
101
102 liblibmpeg2_plugin_la_SOURCES = codec/libmpeg2.c
103 liblibmpeg2_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_libmpeg2)
104 liblibmpeg2_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
105 liblibmpeg2_plugin_la_LIBADD = $(LIBS_libmpeg2)
106 EXTRA_LTLIBRARIES += liblibmpeg2_plugin.la
107 codec_LTLIBRARIES += $(LTLIBlibmpeg2)
108
109 librawvideo_plugin_la_SOURCES = codec/rawvideo.c
110 codec_LTLIBRARIES += librawvideo_plugin.la
111
112 librtpvideo_plugin_la_SOURCES = codec/rtpvideo.c
113 if ENABLE_SOUT
114 codec_LTLIBRARIES += librtpvideo_plugin.la
115 endif
116
117
118 libschroedinger_plugin_la_SOURCES = codec/schroedinger.c
119 libschroedinger_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_schroedinger)
120 libschroedinger_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
121 libschroedinger_plugin_la_LIBADD = $(LIBS_schroedinger)
122 EXTRA_LTLIBRARIES += libschroedinger_plugin.la
123 codec_LTLIBRARIES += $(LTLIBschroedinger)
124
125
126 ### Image codecs ###
127
128 libpng_plugin_la_SOURCES = codec/png.c
129 libpng_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
130 libpng_plugin_la_LIBADD = -lpng -lz $(LIBM)
131 EXTRA_LTLIBRARIES += libpng_plugin.la
132 codec_LTLIBRARIES += $(LTLIBpng)
133
134 libjpeg_plugin_la_SOURCES = codec/jpeg.c
135 libjpeg_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
136 libjpeg_plugin_la_LIBADD = -ljpeg
137 EXTRA_LTLIBRARIES += libjpeg_plugin.la
138 codec_LTLIBRARIES += $(LTLIBjpeg)
139
140 libbpg_plugin_la_SOURCES = codec/bpg.c
141 libbpg_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
142 libbpg_plugin_la_LIBADD = -lbpg
143 EXTRA_LTLIBRARIES += libbpg_plugin.la
144 codec_LTLIBRARIES += $(LTLIBbpg)
145
146 libsvgdec_plugin_la_SOURCES = codec/svg.c
147 libsvgdec_plugin_la_CFLAGS = $(AM_CLAGS) $(CFLAGS_svgdec)
148 libsvgdec_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'  $(LDFLAGS_svg)
149 libsvgdec_plugin_la_LIBADD = $(LIBS_svgdec)
150 EXTRA_LTLIBRARIES += libsvgdec_plugin.la
151 codec_LTLIBRARIES += $(LTLIBsvgdec)
152
153 libsdl_image_plugin_la_SOURCES = codec/sdl_image.c
154 libsdl_image_plugin_la_CFLAGS = $(AM_CFLAGS) $(SDL_IMAGE_CFLAGS)
155 libsdl_image_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
156 libsdl_image_plugin_la_LIBADD = $(SDL_IMAGE_LIBS)
157 EXTRA_LTLIBRARIES += libsdl_image_plugin.la
158 codec_LTLIBRARIES += $(LTLIBsdl_image)
159
160 libxwd_plugin_la_SOURCES = codec/xwd.c
161 libxwd_plugin_la_CFLAGS = $(AM_CFLAGS) $(XPROTO_CFLAGS)
162 libxwd_plugin_la_LIBADD = $(XPROTO_LIBS)
163 libxwd_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
164 if HAVE_XCB
165 codec_LTLIBRARIES += libxwd_plugin.la
166 endif
167
168
169 ### SPU ###
170
171 liblibass_plugin_la_SOURCES = codec/libass.c
172 liblibass_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_libass)
173 liblibass_plugin_la_CFLAGS = $(AM_CFLAGS) $(LIBASS_CFLAGS)
174 liblibass_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
175 liblibass_plugin_la_LIBADD = $(LIBASS_LIBS) $(LIBS_libass) $(LIBS_freetype) $(FREETYPE_LIBS)
176 if HAVE_WINSTORE
177 liblibass_plugin_la_LIBADD += -ldwrite
178 endif
179 EXTRA_LTLIBRARIES += liblibass_plugin.la
180 codec_LTLIBRARIES += $(LTLIBlibass)
181
182 libcc_plugin_la_SOURCES = codec/cc.c codec/cc.h codec/substext.h
183 codec_LTLIBRARIES += libcc_plugin.la
184
185 libcvdsub_plugin_la_SOURCES = codec/cvdsub.c
186 codec_LTLIBRARIES += libcvdsub_plugin.la
187
188 libdvbsub_plugin_la_SOURCES = codec/dvbsub.c
189 codec_LTLIBRARIES += libdvbsub_plugin.la
190
191 libaribsub_plugin_la_SOURCES = codec/arib/aribsub.c codec/arib/substext.h
192 libaribsub_plugin_la_CFLAGS = $(AM_CFLAGS) $(ARIBB24_CFLAGS)
193 libaribsub_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
194 libaribsub_plugin_la_LIBADD = $(ARIBB24_LIBS)
195 EXTRA_LTLIBRARIES += libaribsub_plugin.la
196 codec_LTLIBRARIES += $(LTLIBaribsub)
197
198 libscte18_plugin_la_SOURCES = codec/scte18.c codec/scte18.h \
199                               codec/atsc_a65.c codec/atsc_a65.h
200 codec_LTLIBRARIES += libscte18_plugin.la
201
202 libscte27_plugin_la_SOURCES = codec/scte27.c
203 codec_LTLIBRARIES += libscte27_plugin.la
204
205 libspudec_plugin_la_SOURCES = codec/spudec/spudec.c codec/spudec/parse.c codec/spudec/spudec.h
206 libspudec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
207 codec_LTLIBRARIES += libspudec_plugin.la
208
209 libstl_plugin_la_SOURCES = codec/stl.c
210 codec_LTLIBRARIES += libstl_plugin.la
211
212 libsubsdec_plugin_la_SOURCES = codec/subsdec.c codec/substext.h
213 codec_LTLIBRARIES += libsubsdec_plugin.la
214
215 libsubsusf_plugin_la_SOURCES = codec/subsusf.c
216 codec_LTLIBRARIES += libsubsusf_plugin.la
217
218 libttml_plugin_la_SOURCES = codec/ttml/substtml.c \
219                             demux/ttml.c \
220                             codec/ttml/ttml.h codec/ttml/ttml.c
221 codec_LTLIBRARIES += libttml_plugin.la
222
223 libsvcdsub_plugin_la_SOURCES = codec/svcdsub.c
224 codec_LTLIBRARIES += libsvcdsub_plugin.la
225
226 libt140_plugin_la_SOURCES = codec/t140.c
227 if ENABLE_SOUT
228 codec_LTLIBRARIES += libt140_plugin.la
229 endif
230
231 libtelx_plugin_la_SOURCES = codec/telx.c
232 libtelx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
233 EXTRA_LTLIBRARIES += libtelx_plugin.la
234 codec_LTLIBRARIES += $(LTLIBtelx)
235
236 libtextst_plugin_la_SOURCES = codec/textst.c
237 libtextst_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
238 codec_LTLIBRARIES += libtextst_plugin.la
239
240 libzvbi_plugin_la_SOURCES = codec/zvbi.c
241 libzvbi_plugin_la_CFLAGS = $(AM_CFLAGS) $(ZVBI_CFLAGS) $(CFLAGS_zvbi)
242 libzvbi_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
243 libzvbi_plugin_la_LIBADD = $(ZVBI_LIBS) $(SOCKET_LIBS)
244 if HAVE_WIN32
245 libzvbi_plugin_la_LIBADD += -lpthreadGC2
246 endif
247 EXTRA_LTLIBRARIES += libzvbi_plugin.la
248 codec_LTLIBRARIES += $(LTLIBzvbi)
249
250 libsubstx3g_plugin_la_SOURCES = codec/substx3g.c codec/substext.h
251 codec_LTLIBRARIES += libsubstx3g_plugin.la
252
253 ### Xiph ###
254
255 libflac_plugin_la_SOURCES = codec/flac.c
256 libflac_plugin_la_CFLAGS = $(AM_CFLAGS) $(FLAC_CFLAGS)
257 libflac_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
258 libflac_plugin_la_LIBADD = $(FLAC_LIBS)
259 EXTRA_LTLIBRARIES += libflac_plugin.la
260 codec_LTLIBRARIES += $(LTLIBflac)
261
262 libkate_plugin_la_SOURCES = codec/kate.c
263 libkate_plugin_la_CFLAGS = $(AM_CFLAGS) $(TIGER_CFLAGS) $(KATE_CFLAGS)
264 libkate_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
265 libkate_plugin_la_LIBADD = $(TIGER_LIBS) $(KATE_LIBS) $(LIBM)
266 EXTRA_LTLIBRARIES += libkate_plugin.la
267 codec_LTLIBRARIES += $(LTLIBkate)
268
269 libopus_plugin_la_SOURCES = codec/opus.c codec/opus_header.c codec/opus_header.h
270 libopus_plugin_la_CFLAGS = $(AM_CFLAGS) $(OPUS_CFLAGS)
271 libopus_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
272 libopus_plugin_la_LIBADD = $(OPUS_LIBS) $(LIBM)
273 EXTRA_LTLIBRARIES += libopus_plugin.la
274 codec_LTLIBRARIES += $(LTLIBopus)
275
276 libspeex_plugin_la_SOURCES = codec/speex.c
277 libspeex_plugin_la_CFLAGS = $(AM_CFLAGS) $(SPEEX_CFLAGS)
278 libspeex_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
279 libspeex_plugin_la_LIBADD = $(SPEEX_LIBS) $(LIBM)
280 EXTRA_LTLIBRARIES += libspeex_plugin.la
281 codec_LTLIBRARIES += $(LTLIBspeex)
282
283 libtheora_plugin_la_SOURCES = codec/theora.c
284 libtheora_plugin_la_CFLAGS = $(AM_CFLAGS) $(THEORA_CFLAGS)
285 libtheora_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
286 libtheora_plugin_la_LIBADD = $(THEORA_LIBS)
287 EXTRA_LTLIBRARIES += libtheora_plugin.la
288 codec_LTLIBRARIES += $(LTLIBtheora)
289
290 libdaala_plugin_la_SOURCES = codec/daala.c
291 libdaala_plugin_la_CFLAGS = $(AM_CFLAGS) $(DAALA_CFLAGS)
292 libdaala_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
293 libdaala_plugin_la_LIBADD = $(DAALA_LIBS)
294 EXTRA_LTLIBRARIES += libdaala_plugin.la
295 codec_LTLIBRARIES += $(LTLIBdaala)
296
297 libtremor_plugin_la_SOURCES = codec/vorbis.c
298 libtremor_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_tremor
299 libtremor_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
300 libtremor_plugin_la_LIBADD = -lvorbisdec -logg
301 EXTRA_LTLIBRARIES += libtremor_plugin.la
302 codec_LTLIBRARIES += $(LTLIBtremor)
303
304 libvorbis_plugin_la_SOURCES = codec/vorbis.c
305 libvorbis_plugin_la_CFLAGS = $(AM_CFLAGS) $(VORBIS_CFLAGS)
306 libvorbis_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
307 libvorbis_plugin_la_LIBADD = $(VORBIS_LIBS)
308 EXTRA_LTLIBRARIES += libvorbis_plugin.la
309 codec_LTLIBRARIES += $(LTLIBvorbis)
310
311 liboggspots_plugin_la_SOURCES = codec/oggspots.c
312 liboggspots_plugin_la_CFLAGS = $(AM_CFLAGS) $(OGGSPOTS_CFLAGS)
313 liboggspots_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
314 liboggspots_plugin_la_LIBADD = $(OGGSPOTS_LIBS)
315 EXTRA_LTLIBRARIES += liboggspots_plugin.la
316 codec_LTLIBRARIES += $(LTLIBoggspots)
317
318 libvideotoolbox_plugin_la_SOURCES = video_chroma/copy.c video_chroma/copy.h codec/videotoolbox.m \
319                                     packetizer/h264_nal.c packetizer/h264_nal.h \
320                                     packetizer/hxxx_nal.c packetizer/hxxx_nal.h
321 if HAVE_OSX
322 libvideotoolbox_plugin_la_OBJCFLAGS = $(AM_CFLAGS) -mmacosx-version-min=10.8
323 endif
324 libvideotoolbox_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)' -Wl,-framework,Foundation -Wl,-framework,VideoToolbox -Wl,-framework,CoreMedia -Wl,-framework,CoreVideo
325 EXTRA_LTLIBRARIES += libvideotoolbox_plugin.la
326 codec_LTLIBRARIES += $(LTLIBvideotoolbox)
327
328 ### FFmpeg/libav ###
329
330 libavcodec_plugin_la_SOURCES = \
331         codec/avcodec/avcommon_compat.h \
332         codec/avcodec/avcommon.h \
333         codec/avcodec/video.c \
334         codec/avcodec/subtitle.c \
335         codec/avcodec/audio.c \
336         codec/avcodec/fourcc.c \
337         codec/avcodec/chroma.c codec/avcodec/chroma.h \
338         codec/avcodec/va.c codec/avcodec/va.h \
339         codec/avcodec/avcodec.c codec/avcodec/avcodec.h
340 if ENABLE_SOUT
341 libavcodec_plugin_la_SOURCES += codec/avcodec/encoder.c
342 endif
343 libavcodec_plugin_la_CFLAGS = $(AVCODEC_CFLAGS) $(AM_CFLAGS)
344 libavcodec_plugin_la_LIBADD = $(AVCODEC_LIBS) $(LIBM)
345 libavcodec_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(SYMBOLIC_LDFLAGS)
346
347 if MERGE_FFMPEG
348 libavcodec_plugin_la_SOURCES += demux/avformat/demux.c access/avio.c packetizer/avparser.c
349 libavcodec_plugin_la_CFLAGS += $(AVFORMAT_CFLAGS) $(AVUTIL_CFLAGS)
350 libavcodec_plugin_la_LIBADD += $(AVFORMAT_LIBS) $(AVUTIL_LIBS) $(LIBM)
351 if ENABLE_SOUT
352 libavcodec_plugin_la_SOURCES += demux/avformat/mux.c
353 endif
354 libavcodec_plugin_la_CFLAGS += -DMERGE_FFMPEG
355 endif
356 if HAVE_DARWIN
357 libavcodec_plugin_la_LDFLAGS += -Wl,-framework,Foundation -Wl,-framework,Security,-framework,CoreFoundation
358 endif
359 if HAVE_AVCODEC
360 codec_LTLIBRARIES += libavcodec_plugin.la
361 endif
362
363 ### avcodec hardware acceleration ###
364
365 libvaapi_drm_plugin_la_SOURCES = \
366         video_chroma/copy.c video_chroma/copy.h \
367         codec/avcodec/vaapi.c
368 libvaapi_drm_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DVLC_VA_BACKEND_DRM
369 libvaapi_drm_plugin_la_CFLAGS = $(AM_CFLAGS) \
370         $(LIBVA_DRM_CFLAGS) $(AVCODEC_CFLAGS)
371 libvaapi_drm_plugin_la_LIBADD = $(LIBVA_DRM_LIBS)
372 libvaapi_x11_plugin_la_SOURCES = \
373         video_chroma/copy.c video_chroma/copy.h \
374         codec/avcodec/vaapi.c
375 libvaapi_x11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DVLC_VA_BACKEND_XLIB
376 libvaapi_x11_plugin_la_CFLAGS = $(AM_CFLAGS) \
377         $(LIBVA_X11_CFLAGS) $(X_CFLAGS) $(AVCODEC_CFLAGS)
378 libvaapi_x11_plugin_la_LIBADD = $(LIBVA_X11_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11
379 if HAVE_AVCODEC_VAAPI
380 if HAVE_VAAPI_DRM
381 codec_LTLIBRARIES += libvaapi_drm_plugin.la
382 endif
383 if HAVE_VAAPI_X11
384 codec_LTLIBRARIES += libvaapi_x11_plugin.la
385 endif
386 endif
387
388 libdxva2_plugin_la_SOURCES = \
389         codec/avcodec/dxva2.c codec/avcodec/directx_va.c codec/avcodec/directx_va.h \
390         packetizer/h264_nal.c packetizer/h264_nal.h \
391         packetizer/hevc_nal.c packetizer/hevc_nal.h
392 libdxva2_plugin_la_LIBADD = $(LIBCOM) -lshlwapi -luuid
393 if HAVE_AVCODEC_DXVA2
394 codec_LTLIBRARIES += libdxva2_plugin.la
395 endif
396
397 libd3d11va_plugin_la_SOURCES = \
398         codec/avcodec/d3d11va.c codec/avcodec/directx_va.c codec/avcodec/directx_va.h \
399         video_chroma/dxgi_fmt.c video_chroma/dxgi_fmt.h \
400         packetizer/h264_nal.c packetizer/h264_nal.h \
401         packetizer/hevc_nal.c packetizer/hevc_nal.h
402 libd3d11va_plugin_la_LIBADD = $(LIBCOM) -luuid
403 if HAVE_WINSTORE
404 libd3d11va_plugin_la_LIBADD += -ld3d11
405 endif
406 if HAVE_AVCODEC_D3D11VA
407 codec_LTLIBRARIES += libd3d11va_plugin.la
408 endif
409
410 libvda_plugin_la_SOURCES = \
411         video_chroma/copy.c video_chroma/copy.h \
412         codec/avcodec/vda.c
413 libvda_plugin_la_CFLAGS = $(AM_CFLAGS) $(AVCODEC_CFLAGS)
414 libvda_plugin_la_LDFLAGS = -Wl,-framework,CoreFoundation,-framework,VideoDecodeAcceleration,-framework,QuartzCore
415 libvda_plugin_la_LIBADD = $(AVCODEC_LIBS)
416 if HAVE_AVCODEC_VDA
417 codec_LTLIBRARIES += libvda_plugin.la
418 endif
419
420
421 ### OpenMAX ###
422
423 noinst_HEADERS += \
424         codec/omxil/OMX_Broadcom.h \
425         codec/omxil/OMX_Component.h \
426         codec/omxil/OMX_Core.h \
427         codec/omxil/OMX_Image.h \
428         codec/omxil/OMX_IVCommon.h \
429         codec/omxil/OMX_Types.h \
430         codec/omxil/OMX_Audio.h \
431         codec/omxil/OMX_Index.h \
432         codec/omxil/OMX_Other.h \
433         codec/omxil/OMX_Video.h
434
435 libomxil_plugin_la_SOURCES = \
436         codec/omxil/utils.c codec/omxil/omxil_utils.h \
437         packetizer/h264_nal.c packetizer/h264_nal.h \
438         packetizer/hevc_nal.c packetizer/hevc_nal.h \
439         codec/omxil/qcom.c codec/omxil/qcom.h \
440         codec/omxil/omxil.c codec/omxil/omxil.h codec/omxil/omxil_core.c codec/omxil/omxil_core.h \
441         video_chroma/copy.c
442 if HAVE_ANDROID
443 libomxil_plugin_la_SOURCES += video_output/android/utils.c video_output/android/utils.h \
444         video_output/android/display.h
445 endif
446 libomxil_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil $(CFLAGS_omxil)
447 libomxil_plugin_la_LIBADD = $(LIBDL)
448 libomxil_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
449
450 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
451 libomxil_vout_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil $(CFLAGS_omxil_vout)
452 libomxil_vout_plugin_la_LIBADD = $(LIBDL)
453 libomxil_vout_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
454
455 libiomx_plugin_la_SOURCES = $(libomxil_plugin_la_SOURCES)
456 libiomx_plugin_la_CPPFLAGS = $(libomxil_plugin_la_CPPFLAGS) -DUSE_IOMX
457 libiomx_plugin_la_LIBADD = $(libomxil_plugin_la_LIBADD)
458
459 libmediacodec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil
460 libmediacodec_plugin_la_SOURCES = codec/omxil/mediacodec.c codec/omxil/mediacodec.h \
461         codec/omxil/mediacodec_jni.c codec/omxil/mediacodec_ndk.c codec/omxil/utils.c \
462         video_chroma/copy.c \
463         video_output/android/utils.c video_output/android/utils.h \
464         video_output/android/display.h \
465         packetizer/hxxx_nal.h packetizer/h264_nal.c packetizer/h264_nal.h \
466         packetizer/hevc_nal.c packetizer/hevc_nal.h
467
468 codec_LTLIBRARIES += $(LTLIBomxil) $(LTLIBomxil_vout)
469 EXTRA_LTLIBRARIES += libomxil_plugin.la libomxil_vout_plugin.la
470 if HAVE_ANDROID
471 codec_LTLIBRARIES += libiomx_plugin.la libmediacodec_plugin.la
472 endif
473
474
475 ### X26x encoders ###
476
477 libx265_plugin_la_SOURCES = codec/x265.c
478 libx265_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
479 libx265_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x265)
480 libx265_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x265) -rpath '$(codecdir)'
481 libx265_plugin_la_LIBADD = $(LIBS_x265)
482 EXTRA_LTLIBRARIES += libx265_plugin.la
483 codec_LTLIBRARIES += $(LTLIBx265)
484
485 libx262_plugin_la_SOURCES = codec/x264.c
486 libx262_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_x262
487 libx262_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x262)
488 libx262_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x262) -rpath '$(codecdir)'
489 libx262_plugin_la_LIBADD = $(LIBS_x262) $(LIBM)
490 EXTRA_LTLIBRARIES += libx262_plugin.la
491 codec_LTLIBRARIES += $(LTLIBx262)
492
493 libx264_plugin_la_SOURCES = codec/x264.c
494 libx264_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_x264) -DMODULE_NAME_IS_x264
495 libx264_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x264)
496 libx264_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x264) -rpath '$(codecdir)'
497 libx264_plugin_la_LIBADD = $(LIBS_x264) $(LIBM)
498 EXTRA_LTLIBRARIES += libx264_plugin.la
499 codec_LTLIBRARIES += $(LTLIBx264)
500
501 libx26410b_plugin_la_SOURCES = codec/x264.c
502 libx26410b_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_x26410b
503 libx26410b_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x26410b)
504 libx26410b_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x26410b) -rpath '$(codecdir)'
505 libx26410b_plugin_la_LIBADD = $(LIBS_x26410b) $(LIBM)
506 EXTRA_LTLIBRARIES += libx26410b_plugin.la
507 codec_LTLIBRARIES += $(LTLIBx26410b)
508
509
510 ### Misc encoders ###
511
512 libfdkaac_plugin_la_SOURCES = codec/fdkaac.c
513 libfdkaac_plugin_la_CFLAGS = $(AM_CFLAGS) $(FDKAAC_CFLAGS)
514 libfdkaac_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
515 libfdkaac_plugin_la_LIBADD = $(FDKAAC_LIBS)
516 EXTRA_LTLIBRARIES += libfdkaac_plugin.la
517 codec_LTLIBRARIES += $(LTLIBfdkaac)
518
519 libshine_plugin_la_SOURCES = codec/shine.c
520 libshine_plugin_la_CFLAGS = $(AM_CFLAGS) $(SHINE_CFLAGS)
521 libshine_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)' $(SHINE_LIBS)
522 EXTRA_LTLIBRARIES += libshine_plugin.la
523 codec_LTLIBRARIES += $(LTLIBshine)
524
525 libvpx_plugin_la_SOURCES = codec/vpx.c
526 libvpx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
527 libvpx_plugin_la_CFLAGS = $(AM_CFLAGS) $(VPX_CFLAGS) $(CPPFLAGS_vpx)
528 libvpx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
529 libvpx_plugin_la_LIBADD = $(VPX_LIBS)
530 EXTRA_LTLIBRARIES += libvpx_plugin.la
531 codec_LTLIBRARIES += $(LTLIBvpx)
532
533 libaom_plugin_la_SOURCES = codec/aom.c
534 libaom_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
535 libaom_plugin_la_CFLAGS = $(AM_CFLAGS) $(AOM_CFLAGS) $(CPPFLAGS_aom)
536 libaom_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
537 libaom_plugin_la_LIBADD = $(AOM_LIBS) $(LIBPTHREAD)
538 EXTRA_LTLIBRARIES += libaom_plugin.la
539 codec_LTLIBRARIES += $(LTLIBaom)
540
541 libtwolame_plugin_la_SOURCES = codec/twolame.c
542 libtwolame_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DLIBTWOLAME_STATIC
543 libtwolame_plugin_la_CFLAGS = $(AM_CFLAGS) $(TWOLAME_CFLAGS)
544 libtwolame_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
545 libtwolame_plugin_la_LIBADD = $(TWOLAME_LIBS) $(LIBM)
546 EXTRA_LTLIBRARIES += libtwolame_plugin.la
547 codec_LTLIBRARIES += $(LTLIBtwolame)
548
549
550 ### Hardware encoders ###
551
552 libcrystalhd_plugin_la_SOURCES = codec/crystalhd.c packetizer/h264_nal.c packetizer/h264_nal.h
553 libcrystalhd_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
554 libcrystalhd_plugin_la_LIBADD = $(LIBS_crystalhd)
555 EXTRA_LTLIBRARIES += libcrystalhd_plugin.la
556 codec_LTLIBRARIES += $(LTLIBcrystalhd)
557
558 libqsv_plugin_la_SOURCES = codec/qsv.c
559 libqsv_plugin_la_CFLAGS = $(AM_CFLAGS) $(MFX_CFLAGS)
560 libqsv_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
561 libqsv_plugin_la_LIBADD = $(MFX_LIBS)
562 EXTRA_LTLIBRARIES += libqsv_plugin.la
563 codec_LTLIBRARIES += $(LTLIBqsv)
564
565
566 ### External frameworks ###
567
568 libdmo_plugin_la_SOURCES = codec/dmo/dmo.c codec/dmo/dmo.h codec/dmo/buffer.c
569 libqsv_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
570 libdmo_plugin_la_LIBADD = $(LIBM)
571 if HAVE_WIN32
572 libdmo_plugin_la_LIBADD += $(LIBCOM) -luuid
573 codec_LTLIBRARIES += libdmo_plugin.la
574 endif
575
576 libmft_plugin_la_SOURCES = codec/mft.c packetizer/h264_nal.c packetizer/h264_nal.h
577 if HAVE_WIN32
578 libmft_plugin_la_LIBADD = $(LIBCOM) -luuid -lmfuuid -lmfplat
579 codec_LTLIBRARIES += libmft_plugin.la
580 endif
581
582 libgstdecode_plugin_la_SOURCES = codec/gstreamer/gstdecode.c \
583                                                                  codec/gstreamer/gstvlcpictureplaneallocator.c \
584                                                                  codec/gstreamer/gstvlcpictureplaneallocator.h \
585                                                                  codec/gstreamer/gstvlcvideopool.c \
586                                                                  codec/gstreamer/gstvlcvideopool.h \
587                                                                  codec/gstreamer/gstvlcvideosink.c \
588                                                                  codec/gstreamer/gstvlcvideosink.h
589 libgstdecode_plugin_la_CFLAGS = $(AM_CFLAGS) $(GST_VIDEO_CFLAGS) $(GST_APP_CFLAGS)
590 libgstdecode_plugin_la_LIBADD = $(GST_VIDEO_LIBS) $(GST_APP_LIBS)
591 if HAVE_GST_DECODE
592 codec_LTLIBRARIES += libgstdecode_plugin.la
593 endif