add rpath to LDFLAGS to build plugin properly
[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 libtremor_plugin_la_SOURCES = codec/vorbis.c
242 libtremor_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_tremor
243 libtremor_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
244 libtremor_plugin_la_LIBADD = -lvorbisdec -logg
245 EXTRA_LTLIBRARIES += libtremor_plugin.la
246 codec_LTLIBRARIES += $(LTLIBtremor)
247
248 libvorbis_plugin_la_SOURCES = codec/vorbis.c
249 libvorbis_plugin_la_CFLAGS = $(AM_CFLAGS) $(VORBIS_CFLAGS)
250 libvorbis_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
251 libvorbis_plugin_la_LIBADD = $(VORBIS_LIBS)
252 EXTRA_LTLIBRARIES += libvorbis_plugin.la
253 codec_LTLIBRARIES += $(LTLIBvorbis)
254
255
256 ### FFmpeg/libav ###
257
258 libavcodec_plugin_la_SOURCES = \
259         codec/avcodec/avcommon_compat.h \
260         codec/avcodec/avcommon.h \
261         codec/avcodec/video.c \
262         codec/avcodec/subtitle.c \
263         codec/avcodec/audio.c \
264         codec/avcodec/fourcc.c \
265         codec/avcodec/chroma.c codec/avcodec/chroma.h \
266         codec/avcodec/va.c codec/avcodec/va.h \
267         codec/avcodec/avcodec.c codec/avcodec/avcodec.h
268 if ENABLE_SOUT
269 libavcodec_plugin_la_SOURCES += codec/avcodec/encoder.c
270 endif
271 libavcodec_plugin_la_CFLAGS = $(AVCODEC_CFLAGS) $(AM_CFLAGS)
272 libavcodec_plugin_la_LIBADD = $(AVCODEC_LIBS) $(LIBM)
273 libavcodec_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(SYMBOLIC_LDFLAGS)
274
275 if MERGE_FFMPEG
276 libavcodec_plugin_la_SOURCES += demux/avformat/demux.c access/avio.c
277 libavcodec_plugin_la_CFLAGS += $(AVFORMAT_CFLAGS)
278 libavcodec_plugin_la_LIBADD += $(AVFORMAT_LIBS)
279 if ENABLE_SOUT
280 libavcodec_plugin_la_SOURCES += demux/avformat/mux.c
281 endif
282 libavcodec_plugin_la_CFLAGS += -DMERGE_FFMPEG
283 endif
284 if HAVE_AVCODEC
285 codec_LTLIBRARIES += libavcodec_plugin.la
286 endif
287
288 ### avcodec hardware acceleration ###
289
290 libvaapi_drm_plugin_la_SOURCES = \
291         video_chroma/copy.c video_chroma/copy.h \
292         codec/avcodec/vaapi.c
293 libvaapi_drm_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DVLC_VA_BACKEND_DRM
294 libvaapi_drm_plugin_la_CFLAGS = $(AM_CFLAGS) \
295         $(LIBVA_DRM_CFLAGS) $(AVCODEC_CFLAGS)
296 libvaapi_drm_plugin_la_LIBADD = $(LIBVA_DRM_LIBS)
297 libvaapi_x11_plugin_la_SOURCES = \
298         video_chroma/copy.c video_chroma/copy.h \
299         codec/avcodec/vaapi.c
300 libvaapi_x11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DVLC_VA_BACKEND_XLIB
301 libvaapi_x11_plugin_la_CFLAGS = $(AM_CFLAGS) \
302         $(LIBVA_X11_CFLAGS) $(X_CFLAGS) $(AVCODEC_CFLAGS)
303 libvaapi_x11_plugin_la_LIBADD = $(LIBVA_X11_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11
304 if HAVE_AVCODEC_VAAPI
305 if HAVE_VAAPI_DRM
306 codec_LTLIBRARIES += libvaapi_drm_plugin.la
307 endif
308 if HAVE_VAAPI_X11
309 codec_LTLIBRARIES += libvaapi_x11_plugin.la
310 endif
311 endif
312
313 libdxva2_plugin_la_SOURCES = \
314         video_chroma/copy.c video_chroma/copy.h \
315         codec/avcodec/dxva2.c
316 libdxva2_plugin_la_LIBADD = -lole32 -lshlwapi -luuid
317 if HAVE_AVCODEC_DXVA2
318 codec_LTLIBRARIES += libdxva2_plugin.la
319 endif
320
321 libvda_plugin_la_SOURCES = \
322         video_chroma/copy.c video_chroma/copy.h \
323         codec/avcodec/vda.c
324 libvda_plugin_la_CFLAGS = $(AM_CFLAGS) $(AVCODEC_CFLAGS)
325 libvda_plugin_la_LDFLAGS = -Wl,-framework,CoreFoundation,-framework,VideoDecodeAcceleration,-framework,QuartzCore
326 libvda_plugin_la_LIBADD = $(AVCODEC_LIBS)
327 if HAVE_AVCODEC_VDA
328 codec_LTLIBRARIES += libvda_plugin.la
329 endif
330
331 libhwdummy_plugin_la_SOURCES = codec/avcodec/hwdummy.c
332 libhwdummy_plugin_la_CFLAGS = $(AM_CFLAGS) $(VDPAU_CFLAGS) $(AVCODEC_CFLAGS)
333 libhwdummy_plugin_la_LIBADD = $(AVCODEC_LIBS)
334 # FIXME: hwdummy only needs libavutil, and only if avcodec < 55.13.0
335 if HAVE_AVCODEC_VDPAU
336 codec_LTLIBRARIES += libhwdummy_plugin.la
337 endif
338
339
340 ### OpenMAX ###
341
342 noinst_HEADERS += \
343         codec/omxil/OMX_Broadcom.h \
344         codec/omxil/OMX_Component.h \
345         codec/omxil/OMX_Core.h \
346         codec/omxil/OMX_Image.h \
347         codec/omxil/OMX_IVCommon.h \
348         codec/omxil/OMX_Types.h \
349         codec/omxil/OMX_Audio.h \
350         codec/omxil/OMX_Index.h \
351         codec/omxil/OMX_Other.h \
352         codec/omxil/OMX_Video.h
353
354 libomxil_plugin_la_SOURCES = \
355         codec/omxil/utils.c codec/omxil/omxil_utils.h \
356         codec/h264_nal.c codec/h264_nal.h \
357         codec/omxil/qcom.c codec/omxil/qcom.h \
358         codec/omxil/omxil.c codec/omxil/omxil.h codec/omxil/omxil_core.c codec/omxil/omxil_core.h \
359         video_chroma/copy.c
360 libomxil_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil $(CFLAGS_omxil)
361 libomxil_plugin_la_LIBADD = $(LIBDL)
362 libomxil_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
363
364 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
365 libomxil_vout_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil $(CFLAGS_omxil_vout)
366 libomxil_vout_plugin_la_LIBADD = $(LIBDL)
367 libomxil_vout_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
368
369 libiomx_plugin_la_SOURCES = $(libomxil_plugin_la_SOURCES)
370 libiomx_plugin_la_CPPFLAGS = $(libomxil_plugin_la_CPPFLAGS) -DUSE_IOMX
371 libiomx_plugin_la_LIBADD = $(libomxil_plugin_la_LIBADD)
372
373 libmediacodec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil
374 libmediacodec_plugin_la_SOURCES = codec/omxil/android_mediacodec.c codec/omxil/utils.c \
375         video_chroma/copy.c codec/omxil/android_opaque.c codec/omxil/android_opaque.h \
376         codec/h264_nal.c codec/h264_nal.h
377
378 codec_LTLIBRARIES += $(LTLIBomxil) $(LTLIBomxil_vout)
379 EXTRA_LTLIBRARIES += libomxil_plugin.la libomxil_vout_plugin.la
380 if HAVE_ANDROID
381 codec_LTLIBRARIES += libiomx_plugin.la libmediacodec_plugin.la
382 endif
383
384
385 ### MMAL ###
386
387 libmmal_codec_plugin_la_SOURCES = codec/mmal.c
388 libmmal_codec_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_mmal_codec)
389 libmmal_codec_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)' $(LDFLAGS_mmal_codec)
390 libmmal_codec_plugin_la_LIBADD = $(LIBS_mmal_codec)
391 EXTRA_LTLIBRARIES += libmmal_codec_plugin.la
392 codec_LTLIBRARIES += $(LTLIBmmal_codec)
393
394
395 ### X26x encoders ###
396
397 libx265_plugin_la_SOURCES = codec/x265.c
398 libx265_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
399 libx265_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x265)
400 libx265_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x265) -rpath '$(codecdir)'
401 libx265_plugin_la_LIBADD = $(LIBS_x265)
402 EXTRA_LTLIBRARIES += libx265_plugin.la
403 codec_LTLIBRARIES += $(LTLIBx265)
404
405 libx262_plugin_la_SOURCES = codec/x264.c
406 libx262_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_x262
407 libx262_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x262)
408 libx262_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x262) -rpath '$(codecdir)'
409 libx262_plugin_la_LIBADD = $(LIBS_x262)
410 EXTRA_LTLIBRARIES += libx262_plugin.la
411 codec_LTLIBRARIES += $(LTLIBx262)
412
413 libx264_plugin_la_SOURCES = codec/x264.c
414 libx264_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_x264) -DMODULE_NAME_IS_x264
415 libx264_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x264)
416 libx264_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x264) -rpath '$(codecdir)'
417 libx264_plugin_la_LIBADD = $(LIBS_x264)
418 EXTRA_LTLIBRARIES += libx264_plugin.la
419 codec_LTLIBRARIES += $(LTLIBx264)
420
421 libx26410b_plugin_la_SOURCES = codec/x264.c
422 libx26410b_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_x26410b
423 libx26410b_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x26410b)
424 libx26410b_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x26410b) -rpath '$(codecdir)'
425 libx26410b_plugin_la_LIBADD = $(LIBS_x26410b)
426 EXTRA_LTLIBRARIES += libx26410b_plugin.la
427 codec_LTLIBRARIES += $(LTLIBx26410b)
428
429
430 ### Misc encoders ###
431
432 libfdkaac_plugin_la_SOURCES = codec/fdkaac.c
433 libfdkaac_plugin_la_CFLAGS = $(AM_CFLAGS) $(FDKAAC_CFLAGS)
434 libfdkaac_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
435 libfdkaac_plugin_la_LIBADD = $(FDKAAC_LIBS)
436 EXTRA_LTLIBRARIES += libfdkaac_plugin.la
437 codec_LTLIBRARIES += $(LTLIBfdkaac)
438
439 libshine_plugin_la_SOURCES = codec/shine.c
440 libshine_plugin_la_CFLAGS = $(AM_CFLAGS) $(SHINE_CFLAGS)
441 libshine_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)' $(SHINE_LIBS)
442 EXTRA_LTLIBRARIES += libshine_plugin.la
443 codec_LTLIBRARIES += $(LTLIBshine)
444
445 libvpx_plugin_la_SOURCES = codec/vpx.c
446 libvpx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
447 libvpx_plugin_la_CFLAGS = $(AM_CFLAGS) $(VPX_CFLAGS) $(CPPFLAGS_vpx)
448 libvpx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
449 libvpx_plugin_la_LIBADD = $(VPX_LIBS)
450 EXTRA_LTLIBRARIES += libvpx_plugin.la
451 codec_LTLIBRARIES += $(LTLIBvpx)
452
453 libtwolame_plugin_la_SOURCES = codec/twolame.c
454 libtwolame_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DLIBTWOLAME_STATIC
455 libtwolame_plugin_la_CFLAGS = $(AM_CFLAGS) $(TWOLAME_CFLAGS)
456 libtwolame_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
457 libtwolame_plugin_la_LIBADD = $(TWOLAME_LIBS) $(LIBM)
458 EXTRA_LTLIBRARIES += libtwolame_plugin.la
459 codec_LTLIBRARIES += $(LTLIBtwolame)
460
461
462 ### Hardware encoders ###
463
464 libcrystalhd_plugin_la_SOURCES = codec/crystalhd.c codec/h264_nal.c codec/h264_nal.h
465 libcrystalhd_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
466 libcrystalhd_plugin_la_LIBADD = $(LIBS_crystalhd)
467 EXTRA_LTLIBRARIES += libcrystalhd_plugin.la
468 codec_LTLIBRARIES += $(LTLIBcrystalhd)
469
470 libqsv_plugin_la_SOURCES = codec/qsv.c
471 libqsv_plugin_la_CFLAGS = $(AM_CFLAGS) $(MFX_CFLAGS)
472 libqsv_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
473 libqsv_plugin_la_LIBADD = $(MFX_LIBS)
474 EXTRA_LTLIBRARIES += libqsv_plugin.la
475 codec_LTLIBRARIES += $(LTLIBqsv)
476
477
478 ### External frameworks ###
479
480 libdmo_plugin_la_SOURCES = codec/dmo/dmo.c codec/dmo/dmo.h codec/dmo/buffer.c
481 libqsv_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
482 libdmo_plugin_la_LIBADD = $(LIBM)
483 if HAVE_WIN32
484 libdmo_plugin_la_LIBADD += -lole32 -luuid
485 codec_LTLIBRARIES += libdmo_plugin.la
486 endif
487
488 libmft_plugin_la_SOURCES = codec/mft.c codec/h264_nal.c codec/h264_nal.h
489 if HAVE_WIN32
490 libmft_plugin_la_LIBADD = -lole32 -luuid
491 codec_LTLIBRARIES += libmft_plugin.la
492 endif
493
494 libquicktime_plugin_la_SOURCES = codec/quicktime.c
495 libquicktime_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
496 libquicktime_plugin_la_LIBADD = $(LIBM)
497 EXTRA_LTLIBRARIES += libquicktime_plugin.la
498 codec_LTLIBRARIES += $(LTLIBquicktime)
499
500 libgstdecode_plugin_la_SOURCES = codec/gstdecode.c
501 libgstdecode_plugin_la_CFLAGS = $(AM_CFLAGS) $(GST_VIDEO_CFLAGS) $(GST_APP_CFLAGS)
502 libgstdecode_plugin_la_LIBADD = $(GST_VIDEO_LIBS) $(GST_APP_LIBS)
503 if HAVE_GST_DECODE
504 codec_LTLIBRARIES += libgstdecode_plugin.la
505 endif