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