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