Makefile.am 17.6 KB
Newer Older
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
1 2 3
codecdir = $(pluginsdir)/codec
codec_LTLIBRARIES =

4 5 6
AM_CPPFLAGS += -I$(srcdir)/codec

libddummy_plugin_la_SOURCES = codec/ddummy.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
7 8
codec_LTLIBRARIES += libddummy_plugin.la

9
libedummy_plugin_la_SOURCES = codec/edummy.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
10 11 12 13 14 15 16
if ENABLE_SOUT
codec_LTLIBRARIES += libedummy_plugin.la
endif


### Audio codecs ###

17
liba52_plugin_la_SOURCES = codec/a52.c codec/a52.h
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
18 19
codec_LTLIBRARIES += liba52_plugin.la

20
libadpcm_plugin_la_SOURCES = codec/adpcm.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
21 22
codec_LTLIBRARIES += libadpcm_plugin.la

23
libaes3_plugin_la_SOURCES = codec/aes3.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
24 25
codec_LTLIBRARIES += libaes3_plugin.la

26
libaraw_plugin_la_SOURCES = codec/araw.c
27
libaraw_plugin_la_LIBADD = $(LIBM)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
28 29
codec_LTLIBRARIES += libaraw_plugin.la

30
libdts_plugin_la_SOURCES = codec/dts.c codec/dts_header.c codec/dts_header.h
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
31 32
codec_LTLIBRARIES += libdts_plugin.la

33
libfaad_plugin_la_SOURCES = codec/faad.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
34 35 36 37 38 39
libfaad_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_faad)
libfaad_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libfaad_plugin_la_LIBADD = $(LIBS_faad) $(LIBM)
EXTRA_LTLIBRARIES += libfaad_plugin.la
codec_LTLIBRARIES += $(LTLIBfaad)

40
libg711_plugin_la_SOURCES = codec/g711.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
41 42
codec_LTLIBRARIES += libg711_plugin.la

43
libfluidsynth_plugin_la_SOURCES = codec/fluidsynth.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
44 45 46 47 48
libfluidsynth_plugin_la_CFLAGS = $(AM_CFLAGS) $(FLUIDSYNTH_CFLAGS)
libfluidsynth_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libfluidsynth_plugin_la_LIBADD = $(FLUIDSYNTH_LIBS)
EXTRA_LTLIBRARIES += libfluidsynth_plugin.la
codec_LTLIBRARIES += $(LTLIBfluidsynth)
49 50 51
if HAVE_DARWIN
libfluidsynth_plugin_la_LDFLAGS += -Wl,-framework,CoreFoundation,-framework,CoreServices
endif
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
52

53
liblpcm_plugin_la_SOURCES = codec/lpcm.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
54 55
codec_LTLIBRARIES += liblpcm_plugin.la

56
libmpeg_audio_plugin_la_SOURCES = codec/mpeg_audio.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
57 58
codec_LTLIBRARIES += libmpeg_audio_plugin.la

59
libuleaddvaudio_plugin_la_SOURCES = codec/uleaddvaudio.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
60 61 62
codec_LTLIBRARIES += libuleaddvaudio_plugin.la

libwma_fixed_plugin_la_SOURCES = \
63 64 65 66 67 68 69
	codec/wmafixed/asf.h codec/wmafixed/bswap.h \
	codec/wmafixed/fft.c codec/wmafixed/fft.h \
	codec/wmafixed/mdct.c codec/wmafixed/mdct.h \
	codec/wmafixed/wma.c codec/wmafixed/wmadeci.c \
	codec/wmafixed/bitstream.c codec/wmafixed/bitstream.h \
	codec/wmafixed/wmadata.h codec/wmafixed/wmadec.h \
	codec/wmafixed/wmafixed.c codec/wmafixed/wmafixed.h
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
70 71 72 73 74 75 76 77
libwma_fixed_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
libwma_fixed_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
EXTRA_LTLIBRARIES += libwma_fixed_plugin.la
codec_LTLIBRARIES += $(LTLIBwma_fixed)


### Video codecs ###

78
libcdg_plugin_la_SOURCES = codec/cdg.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
79 80
codec_LTLIBRARIES += libcdg_plugin.la

81
liblibmpeg2_plugin_la_SOURCES = codec/libmpeg2.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
82 83 84 85 86 87
liblibmpeg2_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_libmpeg2)
liblibmpeg2_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
liblibmpeg2_plugin_la_LIBADD = $(LIBS_libmpeg2)
EXTRA_LTLIBRARIES += liblibmpeg2_plugin.la
codec_LTLIBRARIES += $(LTLIBlibmpeg2)

88
librawvideo_plugin_la_SOURCES = codec/rawvideo.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
89 90
codec_LTLIBRARIES += librawvideo_plugin.la

91
libschroedinger_plugin_la_SOURCES = codec/schroedinger.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
92 93 94 95 96 97 98 99 100
libschroedinger_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_schroedinger)
libschroedinger_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libschroedinger_plugin_la_LIBADD = $(LIBS_schroedinger)
EXTRA_LTLIBRARIES += libschroedinger_plugin.la
codec_LTLIBRARIES += $(LTLIBschroedinger)


### Image codecs ###

101
libpng_plugin_la_SOURCES = codec/png.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
102 103 104 105 106
libpng_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libpng_plugin_la_LIBADD = -lpng -lz $(LIBM)
EXTRA_LTLIBRARIES += libpng_plugin.la
codec_LTLIBRARIES += $(LTLIBpng)

107 108 109 110 111 112
libjpeg_plugin_la_SOURCES = codec/jpeg.c
libjpeg_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libjpeg_plugin_la_LIBADD = -ljpeg
EXTRA_LTLIBRARIES += libjpeg_plugin.la
codec_LTLIBRARIES += $(LTLIBjpeg)

Jean-Paul Saman's avatar
Jean-Paul Saman committed
113 114 115 116 117 118 119
libsvgdec_plugin_la_SOURCES = codec/svg.c
libsvgdec_plugin_la_CFLAGS = $(AM_CLAGS) $(CFLAGS_svgdec)
libsvgdec_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'  $(LDFLAGS_svg)
libsvgdec_plugin_la_LIBADD = $(LIBS_svgdec)
EXTRA_LTLIBRARIES += libsvgdec_plugin.la
codec_LTLIBRARIES += $(LTLIBsvgdec)

120
libsdl_image_plugin_la_SOURCES = codec/sdl_image.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
121 122 123 124 125 126
libsdl_image_plugin_la_CFLAGS = $(AM_CFLAGS) $(SDL_IMAGE_CFLAGS)
libsdl_image_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libsdl_image_plugin_la_LIBADD = $(SDL_IMAGE_LIBS)
EXTRA_LTLIBRARIES += libsdl_image_plugin.la
codec_LTLIBRARIES += $(LTLIBsdl_image)

127
libxwd_plugin_la_SOURCES = codec/xwd.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
128 129 130
libxwd_plugin_la_CFLAGS = $(AM_CFLAGS) $(XPROTO_CFLAGS)
libxwd_plugin_la_LIBADD = $(XPROTO_LIBS)
libxwd_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
131 132 133
if HAVE_XCB
codec_LTLIBRARIES += libxwd_plugin.la
endif
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
134 135 136 137


### SPU ###

138
liblibass_plugin_la_SOURCES = codec/libass.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
139 140 141
liblibass_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_libass)
liblibass_plugin_la_CFLAGS = $(AM_CFLAGS) $(LIBASS_CFLAGS)
liblibass_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
142
liblibass_plugin_la_LIBADD = $(LIBASS_LIBS) $(LIBS_libass) $(LIBS_freetype)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
143 144 145
EXTRA_LTLIBRARIES += liblibass_plugin.la
codec_LTLIBRARIES += $(LTLIBlibass)

146
libcc_plugin_la_SOURCES = codec/cc.c codec/cc.h codec/substext.h
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
147 148
codec_LTLIBRARIES += libcc_plugin.la

149
libcvdsub_plugin_la_SOURCES = codec/cvdsub.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
150 151
codec_LTLIBRARIES += libcvdsub_plugin.la

152
libdvbsub_plugin_la_SOURCES = codec/dvbsub.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
153 154
codec_LTLIBRARIES += libdvbsub_plugin.la

155
libscte27_plugin_la_SOURCES = codec/scte27.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
156 157
codec_LTLIBRARIES += libscte27_plugin.la

158
libspudec_plugin_la_SOURCES = codec/spudec/spudec.c codec/spudec/parse.c codec/spudec/spudec.h
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
159 160 161
libspudec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
codec_LTLIBRARIES += libspudec_plugin.la

162
libstl_plugin_la_SOURCES = codec/stl.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
163 164
codec_LTLIBRARIES += libstl_plugin.la

165
libsubsdec_plugin_la_SOURCES = codec/subsdec.c codec/substext.h
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
166 167
codec_LTLIBRARIES += libsubsdec_plugin.la

168
libsubsusf_plugin_la_SOURCES = codec/subsusf.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
169 170
codec_LTLIBRARIES += libsubsusf_plugin.la

171
libsvcdsub_plugin_la_SOURCES = codec/svcdsub.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
172 173
codec_LTLIBRARIES += libsvcdsub_plugin.la

174
libt140_plugin_la_SOURCES = codec/t140.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
175 176 177 178
if ENABLE_SOUT
codec_LTLIBRARIES += libt140_plugin.la
endif

179
libtelx_plugin_la_SOURCES = codec/telx.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
180 181 182 183
libtelx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
EXTRA_LTLIBRARIES += libtelx_plugin.la
codec_LTLIBRARIES += $(LTLIBtelx)

184
libzvbi_plugin_la_SOURCES = codec/zvbi.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
185 186 187 188 189 190 191 192 193
libzvbi_plugin_la_CFLAGS = $(AM_CFLAGS) $(ZVBI_CFLAGS) $(CFLAGS_zvbi)
libzvbi_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libzvbi_plugin_la_LIBADD = $(ZVBI_LIBS) $(SOCKET_LIBS)
if HAVE_WIN32
libzvbi_plugin_la_LIBADD += -lpthreadGC2
endif
EXTRA_LTLIBRARIES += libzvbi_plugin.la
codec_LTLIBRARIES += $(LTLIBzvbi)

François Cartegnie's avatar
François Cartegnie committed
194 195
libsubstx3g_plugin_la_SOURCES = codec/substx3g.c codec/substext.h
codec_LTLIBRARIES += libsubstx3g_plugin.la
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
196 197 198

### Xiph ###

199
libflac_plugin_la_SOURCES = codec/flac.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
200 201 202 203 204 205
libflac_plugin_la_CFLAGS = $(AM_CFLAGS) $(FLAC_CFLAGS)
libflac_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libflac_plugin_la_LIBADD = $(FLAC_LIBS)
EXTRA_LTLIBRARIES += libflac_plugin.la
codec_LTLIBRARIES += $(LTLIBflac)

206
libkate_plugin_la_SOURCES = codec/kate.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
207 208 209 210 211 212
libkate_plugin_la_CFLAGS = $(AM_CFLAGS) $(TIGER_CFLAGS) $(KATE_CFLAGS)
libkate_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libkate_plugin_la_LIBADD = $(TIGER_LIBS) $(KATE_LIBS) $(LIBM)
EXTRA_LTLIBRARIES += libkate_plugin.la
codec_LTLIBRARIES += $(LTLIBkate)

213
libopus_plugin_la_SOURCES = codec/opus.c codec/opus_header.c codec/opus_header.h
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
214 215 216 217 218 219
libopus_plugin_la_CFLAGS = $(AM_CFLAGS) $(OPUS_CFLAGS)
libopus_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libopus_plugin_la_LIBADD = $(OPUS_LIBS) $(LIBM)
EXTRA_LTLIBRARIES += libopus_plugin.la
codec_LTLIBRARIES += $(LTLIBopus)

220
libspeex_plugin_la_SOURCES = codec/speex.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
221 222 223 224 225 226
libspeex_plugin_la_CFLAGS = $(AM_CFLAGS) $(SPEEX_CFLAGS)
libspeex_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libspeex_plugin_la_LIBADD = $(SPEEX_LIBS) $(LIBM)
EXTRA_LTLIBRARIES += libspeex_plugin.la
codec_LTLIBRARIES += $(LTLIBspeex)

227
libtheora_plugin_la_SOURCES = codec/theora.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
228 229 230 231 232 233
libtheora_plugin_la_CFLAGS = $(AM_CFLAGS) $(THEORA_CFLAGS)
libtheora_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libtheora_plugin_la_LIBADD = $(THEORA_LIBS)
EXTRA_LTLIBRARIES += libtheora_plugin.la
codec_LTLIBRARIES += $(LTLIBtheora)

234
libtremor_plugin_la_SOURCES = codec/vorbis.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
235 236 237 238 239 240
libtremor_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_tremor
libtremor_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libtremor_plugin_la_LIBADD = -lvorbisdec -logg
EXTRA_LTLIBRARIES += libtremor_plugin.la
codec_LTLIBRARIES += $(LTLIBtremor)

241
libvorbis_plugin_la_SOURCES = codec/vorbis.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
242 243 244 245 246 247 248 249 250 251
libvorbis_plugin_la_CFLAGS = $(AM_CFLAGS) $(VORBIS_CFLAGS)
libvorbis_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libvorbis_plugin_la_LIBADD = $(VORBIS_LIBS)
EXTRA_LTLIBRARIES += libvorbis_plugin.la
codec_LTLIBRARIES += $(LTLIBvorbis)


### FFmpeg/libav ###

libavcodec_plugin_la_SOURCES = \
252 253 254 255 256 257 258 259 260
	codec/avcodec/avcommon_compat.h \
	codec/avcodec/avcommon.h \
	codec/avcodec/video.c \
	codec/avcodec/subtitle.c \
	codec/avcodec/audio.c \
	codec/avcodec/fourcc.c \
	codec/avcodec/chroma.c codec/avcodec/chroma.h \
	codec/avcodec/va.c codec/avcodec/va.h \
	codec/avcodec/avcodec.c codec/avcodec/avcodec.h
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
261
if ENABLE_SOUT
262
libavcodec_plugin_la_SOURCES += codec/avcodec/encoder.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
263
endif
264
libavcodec_plugin_la_CFLAGS = $(AVCODEC_CFLAGS) $(AM_CFLAGS)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
265 266 267 268
libavcodec_plugin_la_LIBADD = $(AVCODEC_LIBS) $(LIBM)
libavcodec_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(SYMBOLIC_LDFLAGS)

if MERGE_FFMPEG
269
libavcodec_plugin_la_SOURCES += demux/avformat/demux.c access/avio.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
270 271 272
libavcodec_plugin_la_CFLAGS += $(AVFORMAT_CFLAGS)
libavcodec_plugin_la_LIBADD += $(AVFORMAT_LIBS)
if ENABLE_SOUT
273
libavcodec_plugin_la_SOURCES += demux/avformat/mux.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
274 275 276 277 278 279 280 281 282
endif
libavcodec_plugin_la_CFLAGS += -DMERGE_FFMPEG
endif
if HAVE_AVCODEC
codec_LTLIBRARIES += libavcodec_plugin.la
endif

### avcodec hardware acceleration ###

283
libvaapi_drm_plugin_la_SOURCES = \
284
	video_chroma/copy.c video_chroma/copy.h \
285
	codec/avcodec/vaapi.c
286 287 288 289 290 291 292 293 294 295 296
libvaapi_drm_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DVLC_VA_BACKEND_DRM
libvaapi_drm_plugin_la_CFLAGS = $(AM_CFLAGS) \
	$(LIBVA_DRM_CFLAGS) $(AVCODEC_CFLAGS)
libvaapi_drm_plugin_la_LIBADD = $(LIBVA_DRM_LIBS)
libvaapi_x11_plugin_la_SOURCES = \
	video_chroma/copy.c video_chroma/copy.h \
	codec/avcodec/vaapi.c
libvaapi_x11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DVLC_VA_BACKEND_XLIB
libvaapi_x11_plugin_la_CFLAGS = $(AM_CFLAGS) \
	$(LIBVA_X11_CFLAGS) $(X_CFLAGS) $(AVCODEC_CFLAGS)
libvaapi_x11_plugin_la_LIBADD = $(LIBVA_X11_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
297
if HAVE_AVCODEC_VAAPI
298 299 300 301 302 303
if HAVE_VAAPI_DRM
codec_LTLIBRARIES += libvaapi_drm_plugin.la
endif
if HAVE_VAAPI_X11
codec_LTLIBRARIES += libvaapi_x11_plugin.la
endif
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
304 305 306
endif

libdxva2_plugin_la_SOURCES = \
307
	video_chroma/copy.c video_chroma/copy.h \
308
	codec/avcodec/dxva2.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
309 310 311 312 313 314
libdxva2_plugin_la_LIBADD = -lole32 -lshlwapi -luuid
if HAVE_AVCODEC_DXVA2
codec_LTLIBRARIES += libdxva2_plugin.la
endif

libvda_plugin_la_SOURCES = \
315
	video_chroma/copy.c video_chroma/copy.h \
316
	codec/avcodec/vda.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
317 318
libvda_plugin_la_CFLAGS = $(AM_CFLAGS) $(AVCODEC_CFLAGS)
libvda_plugin_la_LDFLAGS = -Wl,-framework,CoreFoundation,-framework,VideoDecodeAcceleration,-framework,QuartzCore
David Fuhrmann's avatar
David Fuhrmann committed
319
libvda_plugin_la_LIBADD = $(AVCODEC_LIBS)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
320 321 322 323
if HAVE_AVCODEC_VDA
codec_LTLIBRARIES += libvda_plugin.la
endif

324
libhwdummy_plugin_la_SOURCES = codec/avcodec/hwdummy.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
325 326 327 328 329 330 331 332 333 334 335
libhwdummy_plugin_la_CFLAGS = $(AM_CFLAGS) $(VDPAU_CFLAGS) $(AVCODEC_CFLAGS)
libhwdummy_plugin_la_LIBADD = $(AVCODEC_LIBS)
# FIXME: hwdummy only needs libavutil, and only if avcodec < 55.13.0
if HAVE_AVCODEC_VDPAU
codec_LTLIBRARIES += libhwdummy_plugin.la
endif


### OpenMAX ###

noinst_HEADERS += \
336 337 338 339 340 341 342 343 344 345
	codec/omxil/OMX_Broadcom.h \
	codec/omxil/OMX_Component.h \
	codec/omxil/OMX_Core.h \
	codec/omxil/OMX_Image.h \
	codec/omxil/OMX_IVCommon.h \
	codec/omxil/OMX_Types.h \
	codec/omxil/OMX_Audio.h \
	codec/omxil/OMX_Index.h \
	codec/omxil/OMX_Other.h \
	codec/omxil/OMX_Video.h
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
346 347

libomxil_plugin_la_SOURCES = \
348
	codec/omxil/utils.c codec/omxil/omxil_utils.h \
349
	codec/h264_nal.c codec/h264_nal.h \
350
	codec/omxil/qcom.c codec/omxil/qcom.h \
351 352
	codec/omxil/omxil.c codec/omxil/omxil.h codec/omxil/omxil_core.c codec/omxil/omxil_core.h \
	video_chroma/copy.c
353
libomxil_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil $(CFLAGS_omxil)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
354 355 356
libomxil_plugin_la_LIBADD = $(LIBDL)
libomxil_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'

357
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
358
libomxil_vout_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil $(CFLAGS_omxil_vout)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
359 360 361 362 363 364 365
libomxil_vout_plugin_la_LIBADD = $(LIBDL)
libomxil_vout_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'

libiomx_plugin_la_SOURCES = $(libomxil_plugin_la_SOURCES)
libiomx_plugin_la_CPPFLAGS = $(libomxil_plugin_la_CPPFLAGS) -DUSE_IOMX
libiomx_plugin_la_LIBADD = $(libomxil_plugin_la_LIBADD)

366
libmediacodec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil
367
libmediacodec_plugin_la_SOURCES = codec/omxil/android_mediacodec.c codec/omxil/utils.c \
368 369
	video_chroma/copy.c codec/omxil/android_opaque.c codec/omxil/android_opaque.h \
	codec/h264_nal.c codec/h264_nal.h
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
370 371 372 373 374 375 376 377

codec_LTLIBRARIES += $(LTLIBomxil) $(LTLIBomxil_vout)
EXTRA_LTLIBRARIES += libomxil_plugin.la libomxil_vout_plugin.la
if HAVE_ANDROID
codec_LTLIBRARIES += libiomx_plugin.la libmediacodec_plugin.la
endif


378 379 380 381 382 383 384 385 386 387
### MMAL ###

libmmal_codec_plugin_la_SOURCES = codec/mmal.c
libmmal_codec_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_mmal_codec)
libmmal_codec_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)' $(LDFLAGS_mmal_codec)
libmmal_codec_plugin_la_LIBADD = $(LIBS_mmal_codec)
EXTRA_LTLIBRARIES += libmmal_codec_plugin.la
codec_LTLIBRARIES += $(LTLIBmmal_codec)


Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
388 389
### X26x encoders ###

Rafaël Carré's avatar
Rafaël Carré committed
390 391 392 393 394 395 396 397
libx265_plugin_la_SOURCES = codec/x265.c
libx265_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
libx265_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x265)
libx265_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x265) -rpath '$(codecdir)'
libx265_plugin_la_LIBADD = $(LIBS_x265)
EXTRA_LTLIBRARIES += libx265_plugin.la
codec_LTLIBRARIES += $(LTLIBx265)

398
libx262_plugin_la_SOURCES = codec/x264.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
399 400
libx262_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_x262
libx262_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x262)
401
libx262_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x262) -rpath '$(codecdir)'
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
402 403 404 405
libx262_plugin_la_LIBADD = $(LIBS_x262)
EXTRA_LTLIBRARIES += libx262_plugin.la
codec_LTLIBRARIES += $(LTLIBx262)

406
libx264_plugin_la_SOURCES = codec/x264.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
407 408
libx264_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_x264) -DMODULE_NAME_IS_x264
libx264_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x264)
409
libx264_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x264) -rpath '$(codecdir)'
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
410 411 412 413
libx264_plugin_la_LIBADD = $(LIBS_x264)
EXTRA_LTLIBRARIES += libx264_plugin.la
codec_LTLIBRARIES += $(LTLIBx264)

414
libx26410b_plugin_la_SOURCES = codec/x264.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
415 416
libx26410b_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_x26410b
libx26410b_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x26410b)
417
libx26410b_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x26410b) -rpath '$(codecdir)'
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
418 419 420 421 422 423 424
libx26410b_plugin_la_LIBADD = $(LIBS_x26410b)
EXTRA_LTLIBRARIES += libx26410b_plugin.la
codec_LTLIBRARIES += $(LTLIBx26410b)


### Misc encoders ###

425
libfdkaac_plugin_la_SOURCES = codec/fdkaac.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
426 427 428 429 430 431
libfdkaac_plugin_la_CFLAGS = $(AM_CFLAGS) $(FDKAAC_CFLAGS)
libfdkaac_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libfdkaac_plugin_la_LIBADD = $(FDKAAC_LIBS)
EXTRA_LTLIBRARIES += libfdkaac_plugin.la
codec_LTLIBRARIES += $(LTLIBfdkaac)

Rafaël Carré's avatar
Rafaël Carré committed
432 433 434
libshine_plugin_la_SOURCES = codec/shine.c
libshine_plugin_la_CFLAGS = $(AM_CFLAGS) $(SHINE_CFLAGS)
libshine_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)' $(SHINE_LIBS)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
435 436 437
EXTRA_LTLIBRARIES += libshine_plugin.la
codec_LTLIBRARIES += $(LTLIBshine)

Rafaël Carré's avatar
Rafaël Carré committed
438 439 440 441 442 443 444 445
libvpx_plugin_la_SOURCES = codec/vpx.c
libvpx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
libvpx_plugin_la_CFLAGS = $(AM_CFLAGS) $(VPX_CFLAGS) $(CPPFLAGS_vpx)
libvpx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libvpx_plugin_la_LIBADD = $(VPX_LIBS)
EXTRA_LTLIBRARIES += libvpx_plugin.la
codec_LTLIBRARIES += $(LTLIBvpx)

446
libtwolame_plugin_la_SOURCES = codec/twolame.c
447
libtwolame_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DLIBTWOLAME_STATIC
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
448 449 450 451 452 453 454 455 456
libtwolame_plugin_la_CFLAGS = $(AM_CFLAGS) $(TWOLAME_CFLAGS)
libtwolame_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libtwolame_plugin_la_LIBADD = $(TWOLAME_LIBS) $(LIBM)
EXTRA_LTLIBRARIES += libtwolame_plugin.la
codec_LTLIBRARIES += $(LTLIBtwolame)


### Hardware encoders ###

457
libcrystalhd_plugin_la_SOURCES = codec/crystalhd.c codec/h264_nal.c codec/h264_nal.h
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
458 459 460 461 462
libcrystalhd_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libcrystalhd_plugin_la_LIBADD = $(LIBS_crystalhd)
EXTRA_LTLIBRARIES += libcrystalhd_plugin.la
codec_LTLIBRARIES += $(LTLIBcrystalhd)

463
libqsv_plugin_la_SOURCES = codec/qsv.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
464 465 466 467 468 469 470 471 472
libqsv_plugin_la_CFLAGS = $(AM_CFLAGS) $(MFX_CFLAGS)
libqsv_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libqsv_plugin_la_LIBADD = $(MFX_LIBS)
EXTRA_LTLIBRARIES += libqsv_plugin.la
codec_LTLIBRARIES += $(LTLIBqsv)


### External frameworks ###

473
libdmo_plugin_la_SOURCES = codec/dmo/dmo.c codec/dmo/dmo.h codec/dmo/buffer.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
474 475 476 477 478 479 480
libqsv_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
libdmo_plugin_la_LIBADD = $(LIBM)
if HAVE_WIN32
libdmo_plugin_la_LIBADD += -lole32 -luuid
codec_LTLIBRARIES += libdmo_plugin.la
endif

481 482 483 484 485 486
libmft_plugin_la_SOURCES = codec/mft.c
if HAVE_WIN32
libmft_plugin_la_LIBADD = -lole32 -luuid
codec_LTLIBRARIES += libmft_plugin.la
endif

487
libquicktime_plugin_la_SOURCES = codec/quicktime.c
488
libquicktime_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
489 490 491
libquicktime_plugin_la_LIBADD = $(LIBM)
EXTRA_LTLIBRARIES += libquicktime_plugin.la
codec_LTLIBRARIES += $(LTLIBquicktime)
492 493 494 495 496 497 498

libgstdecode_plugin_la_SOURCES = codec/gstdecode.c
libgstdecode_plugin_la_CFLAGS = $(AM_CFLAGS) $(GST_VIDEO_CFLAGS) $(GST_APP_CFLAGS)
libgstdecode_plugin_la_LIBADD = $(GST_VIDEO_LIBS) $(GST_APP_LIBS)
if HAVE_GST_DECODE
codec_LTLIBRARIES += libgstdecode_plugin.la
endif