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