Makefile.am 23.8 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
if ENABLE_SOUT
codec_LTLIBRARIES += libedummy_plugin.la
endif


### Audio codecs ###
16 17
libspdif_plugin_la_SOURCES = codec/spdif.c
codec_LTLIBRARIES += libspdif_plugin.la
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
18

19 20
liba52_plugin_la_SOURCES = codec/a52.c
liba52_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_a52)
21
liba52_plugin_la_LIBADD = $(LIBS_a52)
22 23 24
liba52_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
EXTRA_LTLIBRARIES += liba52_plugin.la
codec_LTLIBRARIES += $(LTLIBa52)
25

26 27 28
libdca_plugin_la_SOURCES = codec/dca.c
libdca_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(DCA_CFLAGS)
libdca_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
29
libdca_plugin_la_LIBADD = $(LIBM) $(DCA_LIBS)
30 31 32
EXTRA_LTLIBRARIES += libdca_plugin.la
codec_LTLIBRARIES += $(LTLIBdca)

33
libadpcm_plugin_la_SOURCES = codec/adpcm.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
34 35
codec_LTLIBRARIES += libadpcm_plugin.la

36
libaes3_plugin_la_SOURCES = codec/aes3.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
37 38
codec_LTLIBRARIES += libaes3_plugin.la

39
libaraw_plugin_la_SOURCES = codec/araw.c
40
libaraw_plugin_la_LIBADD = $(LIBM)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
41 42
codec_LTLIBRARIES += libaraw_plugin.la

43
libfaad_plugin_la_SOURCES = codec/faad.c packetizer/mpeg4audio.h
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
44 45 46 47 48 49
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)

50
libg711_plugin_la_SOURCES = codec/g711.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
51 52
codec_LTLIBRARIES += libg711_plugin.la

53
libfluidsynth_plugin_la_SOURCES = codec/fluidsynth.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
54 55 56 57 58
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)
59 60 61
if HAVE_DARWIN
libfluidsynth_plugin_la_LDFLAGS += -Wl,-framework,CoreFoundation,-framework,CoreServices
endif
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
62

63 64 65 66 67 68
libaudiotoolboxmidi_plugin_la_SOURCES = codec/audiotoolbox_midi.c
libaudiotoolboxmidi_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libaudiotoolboxmidi_plugin_la_LDFLAGS += -Wl,-framework,CoreFoundation,-framework,AudioUnit,-framework,AudioToolbox
EXTRA_LTLIBRARIES += libaudiotoolboxmidi_plugin.la
codec_LTLIBRARIES += $(LTLIBaudiotoolboxmidi)

69
liblpcm_plugin_la_SOURCES = codec/lpcm.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
70 71
codec_LTLIBRARIES += liblpcm_plugin.la

72 73 74
libmad_plugin_la_SOURCES = codec/mad.c
libmad_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(MAD_CFLAGS)
libmad_plugin_la_LIBADD = $(AM_LIBADD) $(MAD_LIBS)
75
if HAVE_MAD
76
audio_filter_LTLIBRARIES += libmad_plugin.la
77
endif
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
78

79 80 81 82 83 84 85
libmpg123_plugin_la_SOURCES = codec/mpg123.c
libmpg123_plugin_la_CFLAGS = $(AM_CFLAGS) $(MPG123_CFLAGS)
libmpg123_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libmpg123_plugin_la_LIBADD = $(MPG123_LIBS)
EXTRA_LTLIBRARIES += libmpg123_plugin.la
codec_LTLIBRARIES += $(LTLIBmpg123)

86
libuleaddvaudio_plugin_la_SOURCES = codec/uleaddvaudio.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
87 88 89
codec_LTLIBRARIES += libuleaddvaudio_plugin.la

libwma_fixed_plugin_la_SOURCES = \
90 91 92 93 94 95 96
	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
97 98 99 100 101 102 103 104
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 ###

105
libcdg_plugin_la_SOURCES = codec/cdg.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
106 107
codec_LTLIBRARIES += libcdg_plugin.la

108 109
liblibmpeg2_plugin_la_SOURCES = codec/libmpeg2.c \
	codec/synchro.c codec/synchro.h
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
110 111 112 113 114 115
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)

116
librawvideo_plugin_la_SOURCES = codec/rawvideo.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
117 118
codec_LTLIBRARIES += librawvideo_plugin.la

119 120 121 122 123 124
librtpvideo_plugin_la_SOURCES = codec/rtpvideo.c
if ENABLE_SOUT
codec_LTLIBRARIES += librtpvideo_plugin.la
endif


125
libschroedinger_plugin_la_SOURCES = codec/schroedinger.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
126 127 128 129 130 131 132 133 134
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 ###

135
libpng_plugin_la_SOURCES = codec/png.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
136 137 138 139 140
libpng_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libpng_plugin_la_LIBADD = -lpng -lz $(LIBM)
EXTRA_LTLIBRARIES += libpng_plugin.la
codec_LTLIBRARIES += $(LTLIBpng)

141 142 143 144 145 146
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)

Tristan Matthews's avatar
Tristan Matthews committed
147 148 149 150 151 152
libbpg_plugin_la_SOURCES = codec/bpg.c
libbpg_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libbpg_plugin_la_LIBADD = -lbpg
EXTRA_LTLIBRARIES += libbpg_plugin.la
codec_LTLIBRARIES += $(LTLIBbpg)

Jean-Paul Saman's avatar
Jean-Paul Saman committed
153
libsvgdec_plugin_la_SOURCES = codec/svg.c
154
libsvgdec_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_svgdec)
Jean-Paul Saman's avatar
Jean-Paul Saman committed
155 156 157 158 159
libsvgdec_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'  $(LDFLAGS_svg)
libsvgdec_plugin_la_LIBADD = $(LIBS_svgdec)
EXTRA_LTLIBRARIES += libsvgdec_plugin.la
codec_LTLIBRARIES += $(LTLIBsvgdec)

160
libsdl_image_plugin_la_SOURCES = codec/sdl_image.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
161 162 163 164 165 166
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)

167
libxwd_plugin_la_SOURCES = codec/xwd.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
168 169 170
libxwd_plugin_la_CFLAGS = $(AM_CFLAGS) $(XPROTO_CFLAGS)
libxwd_plugin_la_LIBADD = $(XPROTO_LIBS)
libxwd_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
171 172 173
if HAVE_XCB
codec_LTLIBRARIES += libxwd_plugin.la
endif
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
174 175 176 177


### SPU ###

178
liblibass_plugin_la_SOURCES = codec/libass.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
179 180 181
liblibass_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_libass)
liblibass_plugin_la_CFLAGS = $(AM_CFLAGS) $(LIBASS_CFLAGS)
liblibass_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
182
liblibass_plugin_la_LIBADD = $(LIBASS_LIBS) $(LIBS_libass) $(LIBS_freetype) $(FREETYPE_LIBS)
183 184 185
if HAVE_WINSTORE
liblibass_plugin_la_LIBADD += -ldwrite
endif
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
186 187 188
EXTRA_LTLIBRARIES += liblibass_plugin.la
codec_LTLIBRARIES += $(LTLIBlibass)

189 190
libcc_plugin_la_SOURCES = codec/cc.c codec/cc.h codec/substext.h \
                          codec/cea708.h codec/cea708.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
191 192
codec_LTLIBRARIES += libcc_plugin.la

193
libcvdsub_plugin_la_SOURCES = codec/cvdsub.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
194 195
codec_LTLIBRARIES += libcvdsub_plugin.la

196
libdvbsub_plugin_la_SOURCES = codec/dvbsub.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
197 198
codec_LTLIBRARIES += libdvbsub_plugin.la

199
libaribsub_plugin_la_SOURCES = codec/arib/aribsub.c codec/arib/substext.h
200 201
libaribsub_plugin_la_CFLAGS = $(AM_CFLAGS) $(ARIBB24_CFLAGS)
libaribsub_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
202
libaribsub_plugin_la_LIBADD = $(ARIBB24_LIBS)
203 204
EXTRA_LTLIBRARIES += libaribsub_plugin.la
codec_LTLIBRARIES += $(LTLIBaribsub)
205

206 207 208 209
libscte18_plugin_la_SOURCES = codec/scte18.c codec/scte18.h \
                              codec/atsc_a65.c codec/atsc_a65.h
codec_LTLIBRARIES += libscte18_plugin.la

210
libscte27_plugin_la_SOURCES = codec/scte27.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
211 212
codec_LTLIBRARIES += libscte27_plugin.la

213
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
214 215 216
libspudec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
codec_LTLIBRARIES += libspudec_plugin.la

217
libstl_plugin_la_SOURCES = codec/stl.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
218 219
codec_LTLIBRARIES += libstl_plugin.la

220
libsubsdec_plugin_la_SOURCES = codec/subsdec.c codec/substext.h
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
221 222
codec_LTLIBRARIES += libsubsdec_plugin.la

223
libsubsusf_plugin_la_SOURCES = codec/subsusf.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
224 225
codec_LTLIBRARIES += libsubsusf_plugin.la

226 227 228 229
libttml_plugin_la_SOURCES = codec/ttml/substtml.c \
                            demux/ttml.c \
                            codec/ttml/ttml.h codec/ttml/ttml.c
codec_LTLIBRARIES += libttml_plugin.la
Hugo Beauzée-Luyssen's avatar
Hugo Beauzée-Luyssen committed
230

231 232 233
libwebvtt_plugin_la_SOURCES = codec/webvtt/subsvtt.c \
                              codec/webvtt/webvtt.c \
                              codec/webvtt/webvtt.h \
234
                              demux/webvtt.c \
235 236
                              demux/mp4/minibox.h
codec_LTLIBRARIES += libwebvtt_plugin.la
237 238 239 240 241 242 243 244
if ENABLE_CSS
# dependency: we need grammar build first
BUILT_SOURCES += codec/webvtt/CSSGrammar.h
libwebvtt_plugin_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/codec/webvtt/ -I$(builddir)/codec/webvtt/
libwebvtt_plugin_la_SOURCES += codec/webvtt/CSSGrammar.y \
                               codec/webvtt/CSSLexer.l \
                               codec/webvtt/css_parser.c \
                               codec/webvtt/css_parser.h \
245 246
                               codec/webvtt/css_style.c \
                               codec/webvtt/css_style.h \
247 248
                               codec/webvtt/css_bridge.h
endif
249

250
libsvcdsub_plugin_la_SOURCES = codec/svcdsub.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
251 252
codec_LTLIBRARIES += libsvcdsub_plugin.la

253
libt140_plugin_la_SOURCES = codec/t140.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
254 255 256 257
if ENABLE_SOUT
codec_LTLIBRARIES += libt140_plugin.la
endif

258
libtelx_plugin_la_SOURCES = codec/telx.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
259 260 261 262
libtelx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
EXTRA_LTLIBRARIES += libtelx_plugin.la
codec_LTLIBRARIES += $(LTLIBtelx)

263 264 265 266
libtextst_plugin_la_SOURCES = codec/textst.c
libtextst_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
codec_LTLIBRARIES += libtextst_plugin.la

267
libzvbi_plugin_la_SOURCES = codec/zvbi.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
268 269
libzvbi_plugin_la_CFLAGS = $(AM_CFLAGS) $(ZVBI_CFLAGS) $(CFLAGS_zvbi)
libzvbi_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
270
libzvbi_plugin_la_LIBADD = $(ZVBI_LIBS) $(SOCKET_LIBS)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
271 272 273 274 275 276
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
277 278
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
279 280 281

### Xiph ###

282
libflac_plugin_la_SOURCES = codec/flac.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
283 284 285 286 287 288
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)

289
libkate_plugin_la_SOURCES = codec/kate.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
290 291 292 293 294 295
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)

296
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
297 298 299 300 301 302
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)

303
libspeex_plugin_la_SOURCES = codec/speex.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
304 305 306 307 308 309
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)

310
libtheora_plugin_la_SOURCES = codec/theora.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
311 312 313 314 315 316
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)

Tristan Matthews's avatar
Tristan Matthews committed
317 318 319
libdaala_plugin_la_SOURCES = codec/daala.c
libdaala_plugin_la_CFLAGS = $(AM_CFLAGS) $(DAALA_CFLAGS)
libdaala_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
Tristan Matthews's avatar
Tristan Matthews committed
320
libdaala_plugin_la_LIBADD = $(DAALA_LIBS)
Tristan Matthews's avatar
Tristan Matthews committed
321 322 323
EXTRA_LTLIBRARIES += libdaala_plugin.la
codec_LTLIBRARIES += $(LTLIBdaala)

324
libtremor_plugin_la_SOURCES = codec/vorbis.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
325 326 327 328 329 330
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)

331
libvorbis_plugin_la_SOURCES = codec/vorbis.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
332 333 334 335 336 337
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)

338 339 340 341 342 343 344
liboggspots_plugin_la_SOURCES = codec/oggspots.c
liboggspots_plugin_la_CFLAGS = $(AM_CFLAGS) $(OGGSPOTS_CFLAGS)
liboggspots_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
liboggspots_plugin_la_LIBADD = $(OGGSPOTS_LIBS)
EXTRA_LTLIBRARIES += liboggspots_plugin.la
codec_LTLIBRARIES += $(LTLIBoggspots)

345
libvideotoolbox_plugin_la_SOURCES = \
346
	codec/vt_utils.c codec/vt_utils.h \
347 348
	codec/videotoolbox.m codec/hxxx_helper.c codec/hxxx_helper.h \
	packetizer/hxxx_nal.h packetizer/hxxx_nal.c \
349 350
	packetizer/hxxx_sei.h packetizer/hxxx_sei.c \
	packetizer/h264_slice.c packetizer/h264_slice.h \
351 352
	packetizer/h264_nal.c packetizer/h264_nal.h \
	packetizer/hevc_nal.c packetizer/hevc_nal.h
353
if HAVE_OSX
354
libvideotoolbox_plugin_la_OBJCFLAGS = $(AM_OBJCFLAGS) -mmacosx-version-min=10.8
355
endif
356
if HAVE_IOS
357
libvideotoolbox_plugin_la_OBJCFLAGS = $(AM_OBJCFLAGS) -miphoneos-version-min=8.0
358 359
endif
if HAVE_TVOS
360
libvideotoolbox_plugin_la_OBJCFLAGS = $(AM_OBJCFLAGS) -mtvos-version-min=10.2
361
endif
362
libvideotoolbox_plugin_la_LIBADD = libchroma_copy.la
363
libvideotoolbox_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)' -Wl,-framework,Foundation -Wl,-framework,VideoToolbox -Wl,-framework,CoreMedia -Wl,-framework,CoreVideo
364 365
EXTRA_LTLIBRARIES += libvideotoolbox_plugin.la
codec_LTLIBRARIES += $(LTLIBvideotoolbox)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
366 367

### FFmpeg/libav ###
368
libavcodec_common_la_SOURCES = codec/avcodec/fourcc.c codec/avcodec/avcommon.h \
369 370
	codec/avcodec/chroma.c codec/avcodec/chroma.h \
	codec/avcodec/avcommon_compat.h
371 372
libavcodec_common_la_CFLAGS = $(AVCODEC_CFLAGS) $(AM_CFLAGS)
libavcodec_common_la_LDFLAGS = -static
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
373 374

libavcodec_plugin_la_SOURCES = \
375 376 377 378 379
	codec/avcodec/video.c \
	codec/avcodec/subtitle.c \
	codec/avcodec/audio.c \
	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
380
if ENABLE_SOUT
381
libavcodec_plugin_la_SOURCES += codec/avcodec/encoder.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
382
endif
383
libavcodec_plugin_la_CFLAGS = $(AVCODEC_CFLAGS) $(AM_CFLAGS)
384
libavcodec_plugin_la_LIBADD = $(AVCODEC_LIBS) $(LIBM) libavcodec_common.la
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
385 386 387
libavcodec_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(SYMBOLIC_LDFLAGS)

if MERGE_FFMPEG
388 389 390
libavcodec_plugin_la_SOURCES += demux/avformat/demux.c access/avio.c packetizer/avparser.c
libavcodec_plugin_la_CFLAGS += $(AVFORMAT_CFLAGS) $(AVUTIL_CFLAGS)
libavcodec_plugin_la_LIBADD += $(AVFORMAT_LIBS) $(AVUTIL_LIBS) $(LIBM)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
391
if ENABLE_SOUT
392
libavcodec_plugin_la_SOURCES += demux/avformat/mux.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
393 394 395
endif
libavcodec_plugin_la_CFLAGS += -DMERGE_FFMPEG
endif
396 397 398
if HAVE_DARWIN
libavcodec_plugin_la_LDFLAGS += -Wl,-framework,Foundation -Wl,-framework,Security,-framework,CoreFoundation
endif
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
399
if HAVE_AVCODEC
400
noinst_LTLIBRARIES += libavcodec_common.la
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
401 402 403 404 405
codec_LTLIBRARIES += libavcodec_plugin.la
endif

### avcodec hardware acceleration ###

406
libvaapi_drm_plugin_la_SOURCES = \
407
	codec/avcodec/vaapi.c hw/vaapi/vlc_vaapi.c hw/vaapi/vlc_vaapi.h
408 409 410
libvaapi_drm_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DVLC_VA_BACKEND_DRM
libvaapi_drm_plugin_la_CFLAGS = $(AM_CFLAGS) \
	$(LIBVA_DRM_CFLAGS) $(AVCODEC_CFLAGS)
411
libvaapi_drm_plugin_la_LIBADD = $(LIBVA_DRM_LIBS)
412
libvaapi_plugin_la_SOURCES = \
413
	codec/avcodec/vaapi.c hw/vaapi/vlc_vaapi.c hw/vaapi/vlc_vaapi.h
414 415 416
libvaapi_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
libvaapi_plugin_la_CFLAGS = $(AM_CFLAGS) $(AVCODEC_CFLAGS)
libvaapi_plugin_la_LIBADD = $(LIBVA_LIBS)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
417
if HAVE_AVCODEC_VAAPI
418 419 420
if HAVE_VAAPI_DRM
codec_LTLIBRARIES += libvaapi_drm_plugin.la
endif
421
codec_LTLIBRARIES += libvaapi_plugin.la
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
422 423
endif

Steve Lhomme's avatar
Steve Lhomme committed
424
libd3d9_common_la_SOURCES = video_chroma/d3d9_fmt.c video_chroma/d3d9_fmt.h \
425
	video_chroma/dxgi_fmt.c video_chroma/dxgi_fmt.h
426 427 428 429 430
libd3d9_common_la_LDFLAGS = -static
if HAVE_WIN32_DESKTOP
noinst_LTLIBRARIES += libd3d9_common.la
endif

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
431
libdxva2_plugin_la_SOURCES = \
432
	codec/avcodec/dxva2.c codec/avcodec/directx_va.c codec/avcodec/directx_va.h \
433
	codec/avcodec/va_surface.c codec/avcodec/va_surface.h codec/avcodec/va_surface_internal.h \
434
	packetizer/h264_nal.c packetizer/h264_nal.h \
435 436
	packetizer/hevc_nal.c packetizer/hevc_nal.h
libdxva2_plugin_la_LIBADD = libd3d9_common.la $(LIBCOM) -lshlwapi -luuid
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
437 438 439 440
if HAVE_AVCODEC_DXVA2
codec_LTLIBRARIES += libdxva2_plugin.la
endif

441 442 443 444 445 446 447
libd3d11_common_la_SOURCES = video_chroma/d3d11_fmt.c video_chroma/d3d11_fmt.h \
	video_chroma/dxgi_fmt.c video_chroma/dxgi_fmt.h
libd3d11_common_la_LDFLAGS = -static
if HAVE_WIN32
noinst_LTLIBRARIES += libd3d11_common.la
endif

448 449
libd3d11va_plugin_la_SOURCES = \
	codec/avcodec/d3d11va.c codec/avcodec/directx_va.c codec/avcodec/directx_va.h \
450
        codec/avcodec/va_surface.c codec/avcodec/va_surface.h codec/avcodec/va_surface_internal.h \
451 452
	packetizer/h264_nal.c packetizer/h264_nal.h \
	packetizer/hevc_nal.c packetizer/hevc_nal.h
453
libd3d11va_plugin_la_LIBADD = libd3d11_common.la $(LIBCOM) -luuid
Steve Lhomme's avatar
Steve Lhomme committed
454 455 456
if HAVE_WINSTORE
libd3d11va_plugin_la_LIBADD += -ld3d11
endif
457 458 459 460
if HAVE_AVCODEC_D3D11VA
codec_LTLIBRARIES += libd3d11va_plugin.la
endif

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
461 462 463
### OpenMAX ###

noinst_HEADERS += \
464 465 466 467 468 469 470 471 472 473
	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
474 475

libomxil_plugin_la_SOURCES = \
476
	codec/omxil/utils.c codec/omxil/omxil_utils.h \
477 478
	packetizer/h264_nal.c packetizer/h264_nal.h \
	packetizer/hevc_nal.c packetizer/hevc_nal.h \
479
	codec/omxil/qcom.c codec/omxil/qcom.h \
480
	codec/omxil/omxil.c codec/omxil/omxil.h codec/omxil/omxil_core.c codec/omxil/omxil_core.h
481
if HAVE_ANDROID
482 483
libomxil_plugin_la_SOURCES += video_output/android/utils.c video_output/android/utils.h \
	video_output/android/display.h
484
endif
485
libomxil_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil $(CFLAGS_omxil)
486
libomxil_plugin_la_LIBADD = libchroma_copy.la $(LIBDL)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
487 488
libomxil_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'

489
libomxil_vout_plugin_la_SOURCES = codec/omxil/vout.c codec/omxil/omxil_core.c codec/omxil/utils.c codec/omxil/qcom.c
490
libomxil_vout_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil $(CFLAGS_omxil_vout)
491
libomxil_vout_plugin_la_LIBADD = libchroma_copy.la $(LIBDL)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
492 493 494 495 496 497
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)

498
libmediacodec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/codec/omxil
Thomas Guillem's avatar
Thomas Guillem committed
499
libmediacodec_plugin_la_SOURCES = codec/omxil/mediacodec.c codec/omxil/mediacodec.h \
Thomas Guillem's avatar
Thomas Guillem committed
500
	codec/omxil/mediacodec_jni.c codec/omxil/mediacodec_ndk.c codec/omxil/utils.c \
501
	video_output/android/utils.c video_output/android/utils.h \
502
	video_output/android/display.h \
503 504 505
	codec/hxxx_helper.c codec/hxxx_helper.h \
	packetizer/hxxx_nal.h packetizer/hxxx_nal.c \
	packetizer/h264_nal.c packetizer/h264_nal.h \
506
	packetizer/hevc_nal.c packetizer/hevc_nal.h
507
libmediacodec_plugin_la_LIBADD = libchroma_copy.la 
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
508 509 510 511 512 513 514 515 516
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


### X26x encoders ###

517
libx265_plugin_la_SOURCES = codec/x265.c
Rafaël Carré's avatar
Rafaël Carré committed
518
libx265_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
519
libx265_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x265)
Rafaël Carré's avatar
Rafaël Carré committed
520 521 522 523 524
libx265_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x265) -rpath '$(codecdir)'
libx265_plugin_la_LIBADD = $(LIBS_x265)
EXTRA_LTLIBRARIES += libx265_plugin.la
codec_LTLIBRARIES += $(LTLIBx265)

525
libx262_plugin_la_SOURCES = codec/x264.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
526 527
libx262_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_x262
libx262_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x262)
528
libx262_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x262) -rpath '$(codecdir)'
529
libx262_plugin_la_LIBADD = $(LIBS_x262) $(LIBM)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
530 531 532
EXTRA_LTLIBRARIES += libx262_plugin.la
codec_LTLIBRARIES += $(LTLIBx262)

533
libx264_plugin_la_SOURCES = codec/x264.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
534 535
libx264_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_x264) -DMODULE_NAME_IS_x264
libx264_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x264)
536
libx264_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x264) -rpath '$(codecdir)'
537
libx264_plugin_la_LIBADD = $(LIBS_x264) $(LIBM)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
538 539 540
EXTRA_LTLIBRARIES += libx264_plugin.la
codec_LTLIBRARIES += $(LTLIBx264)

541
libx26410b_plugin_la_SOURCES = codec/x264.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
542 543
libx26410b_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_x26410b
libx26410b_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_x26410b)
544
libx26410b_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_x26410b) -rpath '$(codecdir)'
545
libx26410b_plugin_la_LIBADD = $(LIBS_x26410b) $(LIBM)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
546 547 548 549 550 551
EXTRA_LTLIBRARIES += libx26410b_plugin.la
codec_LTLIBRARIES += $(LTLIBx26410b)


### Misc encoders ###

552
libfdkaac_plugin_la_SOURCES = codec/fdkaac.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
553 554 555 556 557 558
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
559 560 561
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
562 563 564
EXTRA_LTLIBRARIES += libshine_plugin.la
codec_LTLIBRARIES += $(LTLIBshine)

Rafaël Carré's avatar
Rafaël Carré committed
565 566 567 568 569 570 571 572
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)

Tristan Matthews's avatar
Tristan Matthews committed
573 574 575 576 577 578 579 580
libaom_plugin_la_SOURCES = codec/aom.c
libaom_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
libaom_plugin_la_CFLAGS = $(AM_CFLAGS) $(AOM_CFLAGS) $(CPPFLAGS_aom)
libaom_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libaom_plugin_la_LIBADD = $(AOM_LIBS) $(LIBPTHREAD)
EXTRA_LTLIBRARIES += libaom_plugin.la
codec_LTLIBRARIES += $(LTLIBaom)

581
libtwolame_plugin_la_SOURCES = codec/twolame.c
582
libtwolame_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DLIBTWOLAME_STATIC
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
583 584 585 586 587 588 589 590 591
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 ###

592
libcrystalhd_plugin_la_SOURCES = codec/crystalhd.c packetizer/h264_nal.c packetizer/h264_nal.h
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
593 594 595 596 597
libcrystalhd_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
libcrystalhd_plugin_la_LIBADD = $(LIBS_crystalhd)
EXTRA_LTLIBRARIES += libcrystalhd_plugin.la
codec_LTLIBRARIES += $(LTLIBcrystalhd)

598
libqsv_plugin_la_SOURCES = codec/qsv.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
599 600 601 602 603 604 605 606 607
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 ###

608
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
609 610 611
libqsv_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
libdmo_plugin_la_LIBADD = $(LIBM)
if HAVE_WIN32
612
libdmo_plugin_la_LIBADD += $(LIBCOM) -luuid
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
613 614 615
codec_LTLIBRARIES += libdmo_plugin.la
endif

616
libmft_plugin_la_SOURCES = codec/mft.c packetizer/h264_nal.c packetizer/h264_nal.h
617
if HAVE_WIN32
618
libmft_plugin_la_LIBADD = $(LIBCOM) -luuid -lmfuuid -lmfplat
619 620 621
codec_LTLIBRARIES += libmft_plugin.la
endif

622 623
libgstdecode_plugin_la_SOURCES = codec/gstreamer/gstdecode.c \
								 codec/gstreamer/gstvlcpictureplaneallocator.c \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
624
								 codec/gstreamer/gstvlcpictureplaneallocator.h \
625
								 codec/gstreamer/gstvlcvideopool.c \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
626 627 628
								 codec/gstreamer/gstvlcvideopool.h \
								 codec/gstreamer/gstvlcvideosink.c \
								 codec/gstreamer/gstvlcvideosink.h
629 630 631 632 633
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