21549065e611669a4e85d6939e60b5f552136ac1
[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 libzvbi_plugin_la_SOURCES = codec/zvbi.c
237 libzvbi_plugin_la_CFLAGS = $(AM_CFLAGS) $(ZVBI_CFLAGS) $(CFLAGS_zvbi)
238 libzvbi_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
239 libzvbi_plugin_la_LIBADD = $(ZVBI_LIBS) $(SOCKET_LIBS)
240 if HAVE_WIN32
241 libzvbi_plugin_la_LIBADD += -lpthreadGC2
242 endif
243 EXTRA_LTLIBRARIES += libzvbi_plugin.la
244 codec_LTLIBRARIES += $(LTLIBzvbi)
245
246 libsubstx3g_plugin_la_SOURCES = codec/substx3g.c codec/substext.h
247 codec_LTLIBRARIES += libsubstx3g_plugin.la
248
249 ### Xiph ###
250
251 libflac_plugin_la_SOURCES = codec/flac.c
252 libflac_plugin_la_CFLAGS = $(AM_CFLAGS) $(FLAC_CFLAGS)
253 libflac_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
254 libflac_plugin_la_LIBADD = $(FLAC_LIBS)
255 EXTRA_LTLIBRARIES += libflac_plugin.la
256 codec_LTLIBRARIES += $(LTLIBflac)
257
258 libkate_plugin_la_SOURCES = codec/kate.c
259 libkate_plugin_la_CFLAGS = $(AM_CFLAGS) $(TIGER_CFLAGS) $(KATE_CFLAGS)
260 libkate_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
261 libkate_plugin_la_LIBADD = $(TIGER_LIBS) $(KATE_LIBS) $(LIBM)
262 EXTRA_LTLIBRARIES += libkate_plugin.la
263 codec_LTLIBRARIES += $(LTLIBkate)
264
265 libopus_plugin_la_SOURCES = codec/opus.c codec/opus_header.c codec/opus_header.h
266 libopus_plugin_la_CFLAGS = $(AM_CFLAGS) $(OPUS_CFLAGS)
267 libopus_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
268 libopus_plugin_la_LIBADD = $(OPUS_LIBS) $(LIBM)
269 EXTRA_LTLIBRARIES += libopus_plugin.la
270 codec_LTLIBRARIES += $(LTLIBopus)
271
272 libspeex_plugin_la_SOURCES = codec/speex.c
273 libspeex_plugin_la_CFLAGS = $(AM_CFLAGS) $(SPEEX_CFLAGS)
274 libspeex_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
275 libspeex_plugin_la_LIBADD = $(SPEEX_LIBS) $(LIBM)
276 EXTRA_LTLIBRARIES += libspeex_plugin.la
277 codec_LTLIBRARIES += $(LTLIBspeex)
278
279 libtheora_plugin_la_SOURCES = codec/theora.c
280 libtheora_plugin_la_CFLAGS = $(AM_CFLAGS) $(THEORA_CFLAGS)
281 libtheora_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
282 libtheora_plugin_la_LIBADD = $(THEORA_LIBS)
283 EXTRA_LTLIBRARIES += libtheora_plugin.la
284 codec_LTLIBRARIES += $(LTLIBtheora)
285
286 libdaala_plugin_la_SOURCES = codec/daala.c
287 libdaala_plugin_la_CFLAGS = $(AM_CFLAGS) $(DAALA_CFLAGS)
288 libdaala_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
289 libdaala_plugin_la_LIBADD = $(DAALA_LIBS)
290 EXTRA_LTLIBRARIES += libdaala_plugin.la
291 codec_LTLIBRARIES += $(LTLIBdaala)
292
293 libtremor_plugin_la_SOURCES = codec/vorbis.c
294 libtremor_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_tremor
295 libtremor_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
296 libtremor_plugin_la_LIBADD = -lvorbisdec -logg
297 EXTRA_LTLIBRARIES += libtremor_plugin.la
298 codec_LTLIBRARIES += $(LTLIBtremor)
299
300 libvorbis_plugin_la_SOURCES = codec/vorbis.c
301 libvorbis_plugin_la_CFLAGS = $(AM_CFLAGS) $(VORBIS_CFLAGS)
302 libvorbis_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
303 libvorbis_plugin_la_LIBADD = $(VORBIS_LIBS)
304 EXTRA_LTLIBRARIES += libvorbis_plugin.la
305 codec_LTLIBRARIES += $(LTLIBvorbis)
306
307 liboggspots_plugin_la_SOURCES = codec/oggspots.c
308 liboggspots_plugin_la_CFLAGS = $(AM_CFLAGS) $(OGGSPOTS_CFLAGS)
309 liboggspots_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
310 liboggspots_plugin_la_LIBADD = $(OGGSPOTS_LIBS)
311 EXTRA_LTLIBRARIES += liboggspots_plugin.la
312 codec_LTLIBRARIES += $(LTLIBoggspots)
313
314 libvideotoolbox_plugin_la_SOURCES = video_chroma/copy.c video_chroma/copy.h codec/videotoolbox.m \
315                                     packetizer/h264_nal.c packetizer/h264_nal.h \
316                                     packetizer/hxxx_nal.c packetizer/hxxx_nal.h
317 if HAVE_OSX
318 libvideotoolbox_plugin_la_OBJCFLAGS = $(AM_CFLAGS) -mmacosx-version-min=10.8
319 endif
320 libvideotoolbox_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)' -Wl,-framework,Foundation -Wl,-framework,VideoToolbox -Wl,-framework,CoreMedia -Wl,-framework,CoreVideo
321 EXTRA_LTLIBRARIES += libvideotoolbox_plugin.la
322 codec_LTLIBRARIES += $(LTLIBvideotoolbox)
323
324 ### FFmpeg/libav ###
325
326 libavcodec_plugin_la_SOURCES = \
327         codec/avcodec/avcommon_compat.h \
328         codec/avcodec/avcommon.h \
329         codec/avcodec/video.c \
330         codec/avcodec/subtitle.c \
331         codec/avcodec/audio.c \
332         codec/avcodec/fourcc.c \
333         codec/avcodec/chroma.c codec/avcodec/chroma.h \
334         codec/avcodec/va.c codec/avcodec/va.h \
335         codec/avcodec/avcodec.c codec/avcodec/avcodec.h
336 if ENABLE_SOUT
337 libavcodec_plugin_la_SOURCES += codec/avcodec/encoder.c
338 endif
339 libavcodec_plugin_la_CFLAGS = $(AVCODEC_CFLAGS) $(AM_CFLAGS)
340 libavcodec_plugin_la_LIBADD = $(AVCODEC_LIBS) $(LIBM)
341 libavcodec_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(SYMBOLIC_LDFLAGS)
342
343 if MERGE_FFMPEG
344 libavcodec_plugin_la_SOURCES += demux/avformat/demux.c access/avio.c packetizer/avparser.c
345 libavcodec_plugin_la_CFLAGS += $(AVFORMAT_CFLAGS) $(AVUTIL_CFLAGS)
346 libavcodec_plugin_la_LIBADD += $(AVFORMAT_LIBS) $(AVUTIL_LIBS) $(LIBM)
347 if ENABLE_SOUT
348 libavcodec_plugin_la_SOURCES += demux/avformat/mux.c
349 endif
350 libavcodec_plugin_la_CFLAGS += -DMERGE_FFMPEG
351 endif
352 if HAVE_DARWIN
353 libavcodec_plugin_la_LDFLAGS += -Wl,-framework,Foundation -Wl,-framework,Security,-framework,CoreFoundation
354 endif
355 if HAVE_AVCODEC
356 codec_LTLIBRARIES += libavcodec_plugin.la
357 endif
358
359 ### avcodec hardware acceleration ###
360
361 libvaapi_drm_plugin_la_SOURCES = \
362         video_chroma/copy.c video_chroma/copy.h \
363         codec/avcodec/vaapi.c
364 libvaapi_drm_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DVLC_VA_BACKEND_DRM
365 libvaapi_drm_plugin_la_CFLAGS = $(AM_CFLAGS) \
366         $(LIBVA_DRM_CFLAGS) $(AVCODEC_CFLAGS)
367 libvaapi_drm_plugin_la_LIBADD = $(LIBVA_DRM_LIBS)
368 libvaapi_x11_plugin_la_SOURCES = \
369         video_chroma/copy.c video_chroma/copy.h \
370         codec/avcodec/vaapi.c
371 libvaapi_x11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DVLC_VA_BACKEND_XLIB
372 libvaapi_x11_plugin_la_CFLAGS = $(AM_CFLAGS) \
373         $(LIBVA_X11_CFLAGS) $(X_CFLAGS) $(AVCODEC_CFLAGS)
374 libvaapi_x11_plugin_la_LIBADD = $(LIBVA_X11_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11
375 if HAVE_AVCODEC_VAAPI
376 if HAVE_VAAPI_DRM
377 codec_LTLIBRARIES += libvaapi_drm_plugin.la
378 endif
379 if HAVE_VAAPI_X11
380 codec_LTLIBRARIES += libvaapi_x11_plugin.la
381 endif
382 endif
383
384 libdxva2_plugin_la_SOURCES = \
385         codec/avcodec/dxva2.c codec/avcodec/directx_va.c codec/avcodec/directx_va.h \
386         packetizer/h264_nal.c packetizer/h264_nal.h \
387         packetizer/hevc_nal.c packetizer/hevc_nal.h
388 libdxva2_plugin_la_LIBADD = $(LIBCOM) -lshlwapi -luuid
389 if HAVE_AVCODEC_DXVA2
390 codec_LTLIBRARIES += libdxva2_plugin.la
391 endif
392
393 libd3d11va_plugin_la_SOURCES = \
394         codec/avcodec/d3d11va.c codec/avcodec/directx_va.c codec/avcodec/directx_va.h \
395         video_chroma/dxgi_fmt.c video_chroma/dxgi_fmt.h \
396         packetizer/h264_nal.c packetizer/h264_nal.h \
397         packetizer/hevc_nal.c packetizer/hevc_nal.h
398 libd3d11va_plugin_la_LIBADD = $(LIBCOM) -luuid
399 if HAVE_WINSTORE
400 libd3d11va_plugin_la_LIBADD += -ld3d11
401 endif
402 if HAVE_AVCODEC_D3D11VA
403 codec_LTLIBRARIES += libd3d11va_plugin.la
404 endif
405
406 libvda_plugin_la_SOURCES = \
407         video_chroma/copy.c video_chroma/copy.h \
408         codec/avcodec/vda.c
409 libvda_plugin_la_CFLAGS = $(AM_CFLAGS) $(AVCODEC_CFLAGS)
410 libvda_plugin_la_LDFLAGS = -Wl,-framework,CoreFoundation,-framework,VideoDecodeAcceleration,-framework,QuartzCore
411 libvda_plugin_la_LIBADD = $(AVCODEC_LIBS)
412 if HAVE_AVCODEC_VDA
413 codec_LTLIBRARIES += libvda_plugin.la
414 endif
415
416
417 ### OpenMAX ###
418
419 noinst_HEADERS += \
420         codec/omxil/OMX_Broadcom.h \
421         codec/omxil/OMX_Component.h \
422         codec/omxil/OMX_Core.h \
423         codec/omxil/OMX_Image.h \
424         codec/omxil/OMX_IVCommon.h \
425         codec/omxil/OMX_Types.h \
426         codec/omxil/OMX_Audio.h \
427         codec/omxil/OMX_Index.h \
428         codec/omxil/OMX_Other.h \
429         codec/omxil/OMX_Video.h
430
431 libomxil_plugin_la_SOURCES = \
432         codec/omxil/utils.c codec/omxil/omxil_utils.h \
433         packetizer/h264_nal.c packetizer/h264_nal.h \
434         packetizer/hevc_nal.c packetizer/hevc_nal.h \
435         codec/omxil/qcom.c codec/omxil/qcom.h \
436         codec/omxil/omxil.c codec/omxil/omxil.h codec/omxil/omxil_core.c codec/omxil/omxil_core.h \
437         video_chroma/copy.c
438 if HAVE_ANDROID
439 libomxil_plugin_la_SOURCES += video_output/android/utils.c video_output/android/utils.h \
440         video_output/android/display.h
441 endif
442 libomxil_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil $(CFLAGS_omxil)
443 libomxil_plugin_la_LIBADD = $(LIBDL)
444 libomxil_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
445
446 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
447 libomxil_vout_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil $(CFLAGS_omxil_vout)
448 libomxil_vout_plugin_la_LIBADD = $(LIBDL)
449 libomxil_vout_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
450
451 libiomx_plugin_la_SOURCES = $(libomxil_plugin_la_SOURCES)
452 libiomx_plugin_la_CPPFLAGS = $(libomxil_plugin_la_CPPFLAGS) -DUSE_IOMX
453 libiomx_plugin_la_LIBADD = $(libomxil_plugin_la_LIBADD)
454
455 libmediacodec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil
456 libmediacodec_plugin_la_SOURCES = codec/omxil/mediacodec.c codec/omxil/mediacodec.h \
457         codec/omxil/mediacodec_jni.c codec/omxil/mediacodec_ndk.c codec/omxil/utils.c \
458         video_chroma/copy.c \
459         video_output/android/utils.c video_output/android/utils.h \
460         video_output/android/display.h \
461         packetizer/hxxx_nal.h packetizer/h264_nal.c packetizer/h264_nal.h \
462         packetizer/hevc_nal.c packetizer/hevc_nal.h
463
464 codec_LTLIBRARIES += $(LTLIBomxil) $(LTLIBomxil_vout)
465 EXTRA_LTLIBRARIES += libomxil_plugin.la libomxil_vout_plugin.la
466 if HAVE_ANDROID
467 codec_LTLIBRARIES += libiomx_plugin.la libmediacodec_plugin.la
468 endif
469
470
471 ### X26x encoders ###
472
473 libx265_plugin_la_SOURCES = codec/x265.c
474 libx265_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
475 libx265_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x265)
476 libx265_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x265) -rpath '$(codecdir)'
477 libx265_plugin_la_LIBADD = $(LIBS_x265)
478 EXTRA_LTLIBRARIES += libx265_plugin.la
479 codec_LTLIBRARIES += $(LTLIBx265)
480
481 libx262_plugin_la_SOURCES = codec/x264.c
482 libx262_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_x262
483 libx262_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x262)
484 libx262_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x262) -rpath '$(codecdir)'
485 libx262_plugin_la_LIBADD = $(LIBS_x262) $(LIBM)
486 EXTRA_LTLIBRARIES += libx262_plugin.la
487 codec_LTLIBRARIES += $(LTLIBx262)
488
489 libx264_plugin_la_SOURCES = codec/x264.c
490 libx264_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_x264) -DMODULE_NAME_IS_x264
491 libx264_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x264)
492 libx264_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x264) -rpath '$(codecdir)'
493 libx264_plugin_la_LIBADD = $(LIBS_x264) $(LIBM)
494 EXTRA_LTLIBRARIES += libx264_plugin.la
495 codec_LTLIBRARIES += $(LTLIBx264)
496
497 libx26410b_plugin_la_SOURCES = codec/x264.c
498 libx26410b_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_x26410b
499 libx26410b_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x26410b)
500 libx26410b_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x26410b) -rpath '$(codecdir)'
501 libx26410b_plugin_la_LIBADD = $(LIBS_x26410b) $(LIBM)
502 EXTRA_LTLIBRARIES += libx26410b_plugin.la
503 codec_LTLIBRARIES += $(LTLIBx26410b)
504
505
506 ### Misc encoders ###
507
508 libfdkaac_plugin_la_SOURCES = codec/fdkaac.c
509 libfdkaac_plugin_la_CFLAGS = $(AM_CFLAGS) $(FDKAAC_CFLAGS)
510 libfdkaac_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
511 libfdkaac_plugin_la_LIBADD = $(FDKAAC_LIBS)
512 EXTRA_LTLIBRARIES += libfdkaac_plugin.la
513 codec_LTLIBRARIES += $(LTLIBfdkaac)
514
515 libshine_plugin_la_SOURCES = codec/shine.c
516 libshine_plugin_la_CFLAGS = $(AM_CFLAGS) $(SHINE_CFLAGS)
517 libshine_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)' $(SHINE_LIBS)
518 EXTRA_LTLIBRARIES += libshine_plugin.la
519 codec_LTLIBRARIES += $(LTLIBshine)
520
521 libvpx_plugin_la_SOURCES = codec/vpx.c
522 libvpx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
523 libvpx_plugin_la_CFLAGS = $(AM_CFLAGS) $(VPX_CFLAGS) $(CPPFLAGS_vpx)
524 libvpx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
525 libvpx_plugin_la_LIBADD = $(VPX_LIBS)
526 EXTRA_LTLIBRARIES += libvpx_plugin.la
527 codec_LTLIBRARIES += $(LTLIBvpx)
528
529 libaom_plugin_la_SOURCES = codec/aom.c
530 libaom_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
531 libaom_plugin_la_CFLAGS = $(AM_CFLAGS) $(AOM_CFLAGS) $(CPPFLAGS_aom)
532 libaom_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
533 libaom_plugin_la_LIBADD = $(AOM_LIBS) $(LIBPTHREAD)
534 EXTRA_LTLIBRARIES += libaom_plugin.la
535 codec_LTLIBRARIES += $(LTLIBaom)
536
537 libtwolame_plugin_la_SOURCES = codec/twolame.c
538 libtwolame_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DLIBTWOLAME_STATIC
539 libtwolame_plugin_la_CFLAGS = $(AM_CFLAGS) $(TWOLAME_CFLAGS)
540 libtwolame_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
541 libtwolame_plugin_la_LIBADD = $(TWOLAME_LIBS) $(LIBM)
542 EXTRA_LTLIBRARIES += libtwolame_plugin.la
543 codec_LTLIBRARIES += $(LTLIBtwolame)
544
545
546 ### Hardware encoders ###
547
548 libcrystalhd_plugin_la_SOURCES = codec/crystalhd.c packetizer/h264_nal.c packetizer/h264_nal.h
549 libcrystalhd_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
550 libcrystalhd_plugin_la_LIBADD = $(LIBS_crystalhd)
551 EXTRA_LTLIBRARIES += libcrystalhd_plugin.la
552 codec_LTLIBRARIES += $(LTLIBcrystalhd)
553
554 libqsv_plugin_la_SOURCES = codec/qsv.c
555 libqsv_plugin_la_CFLAGS = $(AM_CFLAGS) $(MFX_CFLAGS)
556 libqsv_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
557 libqsv_plugin_la_LIBADD = $(MFX_LIBS)
558 EXTRA_LTLIBRARIES += libqsv_plugin.la
559 codec_LTLIBRARIES += $(LTLIBqsv)
560
561
562 ### External frameworks ###
563
564 libdmo_plugin_la_SOURCES = codec/dmo/dmo.c codec/dmo/dmo.h codec/dmo/buffer.c
565 libqsv_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
566 libdmo_plugin_la_LIBADD = $(LIBM)
567 if HAVE_WIN32
568 libdmo_plugin_la_LIBADD += $(LIBCOM) -luuid
569 codec_LTLIBRARIES += libdmo_plugin.la
570 endif
571
572 libmft_plugin_la_SOURCES = codec/mft.c packetizer/h264_nal.c packetizer/h264_nal.h
573 if HAVE_WIN32
574 libmft_plugin_la_LIBADD = $(LIBCOM) -luuid -lmfuuid -lmfplat
575 codec_LTLIBRARIES += libmft_plugin.la
576 endif
577
578 libgstdecode_plugin_la_SOURCES = codec/gstreamer/gstdecode.c \
579                                                                  codec/gstreamer/gstvlcpictureplaneallocator.c \
580                                                                  codec/gstreamer/gstvlcpictureplaneallocator.h \
581                                                                  codec/gstreamer/gstvlcvideopool.c \
582                                                                  codec/gstreamer/gstvlcvideopool.h \
583                                                                  codec/gstreamer/gstvlcvideosink.c \
584                                                                  codec/gstreamer/gstvlcvideosink.h
585 libgstdecode_plugin_la_CFLAGS = $(AM_CFLAGS) $(GST_VIDEO_CFLAGS) $(GST_APP_CFLAGS)
586 libgstdecode_plugin_la_LIBADD = $(GST_VIDEO_LIBS) $(GST_APP_LIBS)
587 if HAVE_GST_DECODE
588 codec_LTLIBRARIES += libgstdecode_plugin.la
589 endif