6e21d5813bac03a7b782b86bcaf65922c8b5f2ad
[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 codec_LTLIBRARIES += libaraw_plugin.la
28
29 libdts_plugin_la_SOURCES = codec/dts.c codec/dts_header.c codec/dts_header.h
30 codec_LTLIBRARIES += libdts_plugin.la
31
32 libfaad_plugin_la_SOURCES = codec/faad.c
33 libfaad_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_faad)
34 libfaad_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
35 libfaad_plugin_la_LIBADD = $(LIBS_faad) $(LIBM)
36 EXTRA_LTLIBRARIES += libfaad_plugin.la
37 codec_LTLIBRARIES += $(LTLIBfaad)
38
39 libg711_plugin_la_SOURCES = codec/g711.c
40 codec_LTLIBRARIES += libg711_plugin.la
41
42 libfluidsynth_plugin_la_SOURCES = codec/fluidsynth.c
43 libfluidsynth_plugin_la_CFLAGS = $(AM_CFLAGS) $(FLUIDSYNTH_CFLAGS)
44 libfluidsynth_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
45 libfluidsynth_plugin_la_LIBADD = $(FLUIDSYNTH_LIBS)
46 EXTRA_LTLIBRARIES += libfluidsynth_plugin.la
47 codec_LTLIBRARIES += $(LTLIBfluidsynth)
48
49 liblpcm_plugin_la_SOURCES = codec/lpcm.c
50 codec_LTLIBRARIES += liblpcm_plugin.la
51
52 libmpeg_audio_plugin_la_SOURCES = codec/mpeg_audio.c
53 codec_LTLIBRARIES += libmpeg_audio_plugin.la
54
55 libuleaddvaudio_plugin_la_SOURCES = codec/uleaddvaudio.c
56 codec_LTLIBRARIES += libuleaddvaudio_plugin.la
57
58 libwma_fixed_plugin_la_SOURCES = \
59         codec/wmafixed/asf.h codec/wmafixed/bswap.h \
60         codec/wmafixed/fft.c codec/wmafixed/fft.h \
61         codec/wmafixed/mdct.c codec/wmafixed/mdct.h \
62         codec/wmafixed/wma.c codec/wmafixed/wmadeci.c \
63         codec/wmafixed/bitstream.c codec/wmafixed/bitstream.h \
64         codec/wmafixed/wmadata.h codec/wmafixed/wmadec.h \
65         codec/wmafixed/wmafixed.c codec/wmafixed/wmafixed.h
66 libwma_fixed_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
67 libwma_fixed_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
68 EXTRA_LTLIBRARIES += libwma_fixed_plugin.la
69 codec_LTLIBRARIES += $(LTLIBwma_fixed)
70
71
72 ### Video codecs ###
73
74 libcdg_plugin_la_SOURCES = codec/cdg.c
75 codec_LTLIBRARIES += libcdg_plugin.la
76
77 liblibmpeg2_plugin_la_SOURCES = codec/libmpeg2.c
78 liblibmpeg2_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_libmpeg2)
79 liblibmpeg2_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
80 liblibmpeg2_plugin_la_LIBADD = $(LIBS_libmpeg2)
81 EXTRA_LTLIBRARIES += liblibmpeg2_plugin.la
82 codec_LTLIBRARIES += $(LTLIBlibmpeg2)
83
84 librawvideo_plugin_la_SOURCES = codec/rawvideo.c
85 codec_LTLIBRARIES += librawvideo_plugin.la
86
87 libschroedinger_plugin_la_SOURCES = codec/schroedinger.c
88 libschroedinger_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_schroedinger)
89 libschroedinger_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
90 libschroedinger_plugin_la_LIBADD = $(LIBS_schroedinger)
91 EXTRA_LTLIBRARIES += libschroedinger_plugin.la
92 codec_LTLIBRARIES += $(LTLIBschroedinger)
93
94
95 ### Image codecs ###
96
97 libpng_plugin_la_SOURCES = codec/png.c
98 libpng_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
99 libpng_plugin_la_LIBADD = -lpng -lz $(LIBM)
100 EXTRA_LTLIBRARIES += libpng_plugin.la
101 codec_LTLIBRARIES += $(LTLIBpng)
102
103 libsdl_image_plugin_la_SOURCES = codec/sdl_image.c
104 libsdl_image_plugin_la_CFLAGS = $(AM_CFLAGS) $(SDL_IMAGE_CFLAGS)
105 libsdl_image_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
106 libsdl_image_plugin_la_LIBADD = $(SDL_IMAGE_LIBS)
107 EXTRA_LTLIBRARIES += libsdl_image_plugin.la
108 codec_LTLIBRARIES += $(LTLIBsdl_image)
109
110 libxwd_plugin_la_SOURCES = codec/xwd.c
111 libxwd_plugin_la_CFLAGS = $(AM_CFLAGS) $(XPROTO_CFLAGS)
112 libxwd_plugin_la_LIBADD = $(XPROTO_LIBS)
113 libxwd_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
114 if HAVE_XCB
115 codec_LTLIBRARIES += libxwd_plugin.la
116 endif
117
118
119 ### SPU ###
120
121 liblibass_plugin_la_SOURCES = codec/libass.c
122 liblibass_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_libass)
123 liblibass_plugin_la_CFLAGS = $(AM_CFLAGS) $(LIBASS_CFLAGS)
124 liblibass_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
125 liblibass_plugin_la_LIBADD = $(LIBASS_LIBS) $(LIBS_libass) $(LIBS_freetype)
126 EXTRA_LTLIBRARIES += liblibass_plugin.la
127 codec_LTLIBRARIES += $(LTLIBlibass)
128
129 libcc_plugin_la_SOURCES = codec/cc.c codec/cc.h codec/substext.h
130 codec_LTLIBRARIES += libcc_plugin.la
131
132 libcvdsub_plugin_la_SOURCES = codec/cvdsub.c
133 codec_LTLIBRARIES += libcvdsub_plugin.la
134
135 libdvbsub_plugin_la_SOURCES = codec/dvbsub.c
136 codec_LTLIBRARIES += libdvbsub_plugin.la
137
138 libscte27_plugin_la_SOURCES = codec/scte27.c
139 codec_LTLIBRARIES += libscte27_plugin.la
140
141 libspudec_plugin_la_SOURCES = codec/spudec/spudec.c codec/spudec/parse.c codec/spudec/spudec.h
142 libspudec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
143 codec_LTLIBRARIES += libspudec_plugin.la
144
145 libstl_plugin_la_SOURCES = codec/stl.c
146 codec_LTLIBRARIES += libstl_plugin.la
147
148 libsubsdec_plugin_la_SOURCES = codec/subsdec.c codec/substext.h
149 codec_LTLIBRARIES += libsubsdec_plugin.la
150
151 libsubsusf_plugin_la_SOURCES = codec/subsusf.c
152 codec_LTLIBRARIES += libsubsusf_plugin.la
153
154 libsvcdsub_plugin_la_SOURCES = codec/svcdsub.c
155 codec_LTLIBRARIES += libsvcdsub_plugin.la
156
157 libt140_plugin_la_SOURCES = codec/t140.c
158 if ENABLE_SOUT
159 codec_LTLIBRARIES += libt140_plugin.la
160 endif
161
162 libtelx_plugin_la_SOURCES = codec/telx.c
163 libtelx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
164 EXTRA_LTLIBRARIES += libtelx_plugin.la
165 codec_LTLIBRARIES += $(LTLIBtelx)
166
167 libzvbi_plugin_la_SOURCES = codec/zvbi.c
168 libzvbi_plugin_la_CFLAGS = $(AM_CFLAGS) $(ZVBI_CFLAGS) $(CFLAGS_zvbi)
169 libzvbi_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
170 libzvbi_plugin_la_LIBADD = $(ZVBI_LIBS) $(SOCKET_LIBS)
171 if HAVE_WIN32
172 libzvbi_plugin_la_LIBADD += -lpthreadGC2
173 endif
174 EXTRA_LTLIBRARIES += libzvbi_plugin.la
175 codec_LTLIBRARIES += $(LTLIBzvbi)
176
177
178 ### Xiph ###
179
180 libflac_plugin_la_SOURCES = codec/flac.c
181 libflac_plugin_la_CFLAGS = $(AM_CFLAGS) $(FLAC_CFLAGS)
182 libflac_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
183 libflac_plugin_la_LIBADD = $(FLAC_LIBS)
184 EXTRA_LTLIBRARIES += libflac_plugin.la
185 codec_LTLIBRARIES += $(LTLIBflac)
186
187 libkate_plugin_la_SOURCES = codec/kate.c
188 libkate_plugin_la_CFLAGS = $(AM_CFLAGS) $(TIGER_CFLAGS) $(KATE_CFLAGS)
189 libkate_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
190 libkate_plugin_la_LIBADD = $(TIGER_LIBS) $(KATE_LIBS) $(LIBM)
191 EXTRA_LTLIBRARIES += libkate_plugin.la
192 codec_LTLIBRARIES += $(LTLIBkate)
193
194 libopus_plugin_la_SOURCES = codec/opus.c codec/opus_header.c codec/opus_header.h
195 libopus_plugin_la_CFLAGS = $(AM_CFLAGS) $(OPUS_CFLAGS)
196 libopus_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
197 libopus_plugin_la_LIBADD = $(OPUS_LIBS) $(LIBM)
198 EXTRA_LTLIBRARIES += libopus_plugin.la
199 codec_LTLIBRARIES += $(LTLIBopus)
200
201 libspeex_plugin_la_SOURCES = codec/speex.c
202 libspeex_plugin_la_CFLAGS = $(AM_CFLAGS) $(SPEEX_CFLAGS)
203 libspeex_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
204 libspeex_plugin_la_LIBADD = $(SPEEX_LIBS) $(LIBM)
205 EXTRA_LTLIBRARIES += libspeex_plugin.la
206 codec_LTLIBRARIES += $(LTLIBspeex)
207
208 libtheora_plugin_la_SOURCES = codec/theora.c
209 libtheora_plugin_la_CFLAGS = $(AM_CFLAGS) $(THEORA_CFLAGS)
210 libtheora_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
211 libtheora_plugin_la_LIBADD = $(THEORA_LIBS)
212 EXTRA_LTLIBRARIES += libtheora_plugin.la
213 codec_LTLIBRARIES += $(LTLIBtheora)
214
215 libtremor_plugin_la_SOURCES = codec/vorbis.c
216 libtremor_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_tremor
217 libtremor_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
218 libtremor_plugin_la_LIBADD = -lvorbisdec -logg
219 EXTRA_LTLIBRARIES += libtremor_plugin.la
220 codec_LTLIBRARIES += $(LTLIBtremor)
221
222 libvorbis_plugin_la_SOURCES = codec/vorbis.c
223 libvorbis_plugin_la_CFLAGS = $(AM_CFLAGS) $(VORBIS_CFLAGS)
224 libvorbis_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
225 libvorbis_plugin_la_LIBADD = $(VORBIS_LIBS)
226 EXTRA_LTLIBRARIES += libvorbis_plugin.la
227 codec_LTLIBRARIES += $(LTLIBvorbis)
228
229
230 ### FFmpeg/libav ###
231
232 libavcodec_plugin_la_SOURCES = \
233         codec/avcodec/avcommon_compat.h \
234         codec/avcodec/avcommon.h \
235         codec/avcodec/video.c \
236         codec/avcodec/subtitle.c \
237         codec/avcodec/audio.c \
238         codec/avcodec/cpu.c \
239         codec/avcodec/fourcc.c \
240         codec/avcodec/chroma.c codec/avcodec/chroma.h \
241         codec/avcodec/va.c codec/avcodec/va.h \
242         codec/avcodec/avcodec.c codec/avcodec/avcodec.h
243 if ENABLE_SOUT
244 libavcodec_plugin_la_SOURCES += codec/avcodec/encoder.c
245 endif
246 libavcodec_plugin_la_CFLAGS = $(AM_CFLAGS) $(AVCODEC_CFLAGS)
247 libavcodec_plugin_la_LIBADD = $(AVCODEC_LIBS) $(LIBM)
248 libavcodec_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(SYMBOLIC_LDFLAGS)
249
250 if MERGE_FFMPEG
251 libavcodec_plugin_la_SOURCES += demux/avformat/demux.c access/avio.c
252 libavcodec_plugin_la_CFLAGS += $(AVFORMAT_CFLAGS)
253 libavcodec_plugin_la_LIBADD += $(AVFORMAT_LIBS)
254 if ENABLE_SOUT
255 libavcodec_plugin_la_SOURCES += demux/avformat/mux.c
256 endif
257 libavcodec_plugin_la_CFLAGS += -DMERGE_FFMPEG
258 endif
259 if HAVE_AVCODEC
260 codec_LTLIBRARIES += libavcodec_plugin.la
261 endif
262
263 ### avcodec hardware acceleration ###
264
265 libvaapi_plugin_la_SOURCES = \
266         video_chroma/copy.c video_chroma/copy.h \
267         codec/avcodec/vaapi.c
268 libvaapi_plugin_la_CFLAGS = $(AM_CFLAGS) \
269         $(LIBVA_CFLAGS) $(X_CFLAGS) $(AVCODEC_CFLAGS)
270 libvaapi_plugin_la_LIBADD = $(LIBVA_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11
271 if HAVE_AVCODEC_VAAPI
272 codec_LTLIBRARIES += libvaapi_plugin.la
273 endif
274
275 libdxva2_plugin_la_SOURCES = \
276         video_chroma/copy.c video_chroma/copy.h \
277         codec/avcodec/dxva2.c
278 libdxva2_plugin_la_LIBADD = -lole32 -lshlwapi -luuid
279 if HAVE_AVCODEC_DXVA2
280 codec_LTLIBRARIES += libdxva2_plugin.la
281 endif
282
283 libvda_plugin_la_SOURCES = \
284         video_chroma/copy.c video_chroma/copy.h \
285         codec/avcodec/vda.c
286 libvda_plugin_la_CFLAGS = $(AM_CFLAGS) $(AVCODEC_CFLAGS)
287 libvda_plugin_la_LDFLAGS = -Wl,-framework,CoreFoundation,-framework,VideoDecodeAcceleration,-framework,QuartzCore
288 libvda_plugin_la_LIBADD = $(AVCODEC_LIBS)
289 if HAVE_AVCODEC_VDA
290 codec_LTLIBRARIES += libvda_plugin.la
291 endif
292
293 libhwdummy_plugin_la_SOURCES = codec/avcodec/hwdummy.c
294 libhwdummy_plugin_la_CFLAGS = $(AM_CFLAGS) $(VDPAU_CFLAGS) $(AVCODEC_CFLAGS)
295 libhwdummy_plugin_la_LIBADD = $(AVCODEC_LIBS)
296 # FIXME: hwdummy only needs libavutil, and only if avcodec < 55.13.0
297 if HAVE_AVCODEC_VDPAU
298 codec_LTLIBRARIES += libhwdummy_plugin.la
299 endif
300
301
302 ### OpenMAX ###
303
304 noinst_HEADERS += \
305         codec/omxil/OMX_Broadcom.h \
306         codec/omxil/OMX_Component.h \
307         codec/omxil/OMX_Core.h \
308         codec/omxil/OMX_Image.h \
309         codec/omxil/OMX_IVCommon.h \
310         codec/omxil/OMX_Types.h \
311         codec/omxil/OMX_Audio.h \
312         codec/omxil/OMX_Index.h \
313         codec/omxil/OMX_Other.h \
314         codec/omxil/OMX_Video.h
315
316 libomxil_plugin_la_SOURCES = \
317         codec/omxil/utils.c codec/omxil/omxil_utils.h \
318         codec/h264_nal.h \
319         codec/omxil/qcom.c codec/omxil/qcom.h \
320         codec/omxil/omxil.c codec/omxil/omxil.h codec/omxil/omxil_core.c codec/omxil/omxil_core.h
321 libomxil_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil $(CFLAGS_omxil)
322 libomxil_plugin_la_LIBADD = $(LIBDL)
323 libomxil_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
324
325 libomxil_vout_plugin_la_SOURCES = codec/omxil/vout.c codec/omxil/omxil_core.c codec/omxil/utils.c codec/omxil/qcom.c
326 libomxil_vout_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil $(CFLAGS_omxil_vout)
327 libomxil_vout_plugin_la_LIBADD = $(LIBDL)
328 libomxil_vout_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
329
330 libiomx_plugin_la_SOURCES = $(libomxil_plugin_la_SOURCES)
331 libiomx_plugin_la_CPPFLAGS = $(libomxil_plugin_la_CPPFLAGS) -DUSE_IOMX
332 libiomx_plugin_la_LIBADD = $(libomxil_plugin_la_LIBADD)
333
334 libmediacodec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil
335 libmediacodec_plugin_la_SOURCES = codec/omxil/android_mediacodec.c codec/omxil/utils.c
336
337 codec_LTLIBRARIES += $(LTLIBomxil) $(LTLIBomxil_vout)
338 EXTRA_LTLIBRARIES += libomxil_plugin.la libomxil_vout_plugin.la
339 if HAVE_ANDROID
340 codec_LTLIBRARIES += libiomx_plugin.la libmediacodec_plugin.la
341 endif
342
343
344 ### X26x encoders ###
345
346 libx265_plugin_la_SOURCES = codec/x265.c
347 libx265_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
348 libx265_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x265)
349 libx265_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x265) -rpath '$(codecdir)'
350 libx265_plugin_la_LIBADD = $(LIBS_x265)
351 EXTRA_LTLIBRARIES += libx265_plugin.la
352 codec_LTLIBRARIES += $(LTLIBx265)
353
354 libx262_plugin_la_SOURCES = codec/x264.c
355 libx262_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_x262
356 libx262_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x262)
357 libx262_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x262) -rpath '$(codecdir)'
358 libx262_plugin_la_LIBADD = $(LIBS_x262)
359 EXTRA_LTLIBRARIES += libx262_plugin.la
360 codec_LTLIBRARIES += $(LTLIBx262)
361
362 libx264_plugin_la_SOURCES = codec/x264.c
363 libx264_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_x264) -DMODULE_NAME_IS_x264
364 libx264_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x264)
365 libx264_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x264) -rpath '$(codecdir)'
366 libx264_plugin_la_LIBADD = $(LIBS_x264)
367 EXTRA_LTLIBRARIES += libx264_plugin.la
368 codec_LTLIBRARIES += $(LTLIBx264)
369
370 libx26410b_plugin_la_SOURCES = codec/x264.c
371 libx26410b_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_x26410b
372 libx26410b_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x26410b)
373 libx26410b_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x26410b) -rpath '$(codecdir)'
374 libx26410b_plugin_la_LIBADD = $(LIBS_x26410b)
375 EXTRA_LTLIBRARIES += libx26410b_plugin.la
376 codec_LTLIBRARIES += $(LTLIBx26410b)
377
378
379 ### Misc encoders ###
380
381 libdirac_plugin_la_SOURCES = codec/dirac.c
382 libdirac_plugin_la_CFLAGS = $(AM_CFLAGS) $(DIRAC_CFLAGS)
383 libdirac_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
384 libdirac_plugin_la_LIBADD = $(DIRAC_LIBS)
385 EXTRA_LTLIBRARIES += libdirac_plugin.la
386 codec_LTLIBRARIES += $(LTLIBdirac)
387
388 libfdkaac_plugin_la_SOURCES = codec/fdkaac.c
389 libfdkaac_plugin_la_CFLAGS = $(AM_CFLAGS) $(FDKAAC_CFLAGS)
390 libfdkaac_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
391 libfdkaac_plugin_la_LIBADD = $(FDKAAC_LIBS)
392 EXTRA_LTLIBRARIES += libfdkaac_plugin.la
393 codec_LTLIBRARIES += $(LTLIBfdkaac)
394
395 libshine_plugin_la_SOURCES = codec/shine.c
396 libshine_plugin_la_CFLAGS = $(AM_CFLAGS) $(SHINE_CFLAGS)
397 libshine_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)' $(SHINE_LIBS)
398 EXTRA_LTLIBRARIES += libshine_plugin.la
399 codec_LTLIBRARIES += $(LTLIBshine)
400
401 libvpx_plugin_la_SOURCES = codec/vpx.c
402 libvpx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
403 libvpx_plugin_la_CFLAGS = $(AM_CFLAGS) $(VPX_CFLAGS) $(CPPFLAGS_vpx)
404 libvpx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
405 libvpx_plugin_la_LIBADD = $(VPX_LIBS)
406 EXTRA_LTLIBRARIES += libvpx_plugin.la
407 codec_LTLIBRARIES += $(LTLIBvpx)
408
409 libtwolame_plugin_la_SOURCES = codec/twolame.c
410 libtwolame_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DLIBTWOLAME_STATIC
411 libtwolame_plugin_la_CFLAGS = $(AM_CFLAGS) $(TWOLAME_CFLAGS)
412 libtwolame_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
413 libtwolame_plugin_la_LIBADD = $(TWOLAME_LIBS) $(LIBM)
414 EXTRA_LTLIBRARIES += libtwolame_plugin.la
415 codec_LTLIBRARIES += $(LTLIBtwolame)
416
417
418 ### Hardware encoders ###
419
420 libcrystalhd_plugin_la_SOURCES = codec/crystalhd.c codec/h264_nal.h
421 libcrystalhd_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
422 libcrystalhd_plugin_la_LIBADD = $(LIBS_crystalhd)
423 EXTRA_LTLIBRARIES += libcrystalhd_plugin.la
424 codec_LTLIBRARIES += $(LTLIBcrystalhd)
425
426 libqsv_plugin_la_SOURCES = codec/qsv.c
427 libqsv_plugin_la_CFLAGS = $(AM_CFLAGS) $(MFX_CFLAGS)
428 libqsv_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
429 libqsv_plugin_la_LIBADD = $(MFX_LIBS)
430 EXTRA_LTLIBRARIES += libqsv_plugin.la
431 codec_LTLIBRARIES += $(LTLIBqsv)
432
433
434 ### External frameworks ###
435
436 libdmo_plugin_la_SOURCES = codec/dmo/dmo.c codec/dmo/dmo.h codec/dmo/buffer.c
437 libqsv_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
438 libdmo_plugin_la_LIBADD = $(LIBM)
439 if HAVE_WIN32
440 libdmo_plugin_la_LIBADD += -lole32 -luuid
441 codec_LTLIBRARIES += libdmo_plugin.la
442 endif
443
444 libquicktime_plugin_la_SOURCES = codec/quicktime.c
445 libquicktime_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
446 libquicktime_plugin_la_LIBADD = $(LIBM)
447 EXTRA_LTLIBRARIES += libquicktime_plugin.la
448 codec_LTLIBRARIES += $(LTLIBquicktime)