demux: hls: add adaptative based hls demuxer
[vlc.git] / modules / demux / Makefile.am
1 demuxdir = $(pluginsdir)/demux
2 demux_LTLIBRARIES =
3
4 libflacsys_plugin_la_SOURCES = demux/flac.c demux/xiph_metadata.h demux/xiph_metadata.c
5 libflacsys_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
6 demux_LTLIBRARIES += libflacsys_plugin.la
7
8 libogg_plugin_la_SOURCES = demux/ogg.c demux/ogg.h demux/oggseek.c demux/oggseek.h \
9         demux/xiph_metadata.h demux/xiph.h demux/xiph_metadata.c demux/opus.h
10 libogg_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBVORBIS_CFLAGS) $(OGG_CFLAGS)
11 libogg_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(demuxdir)'
12 libogg_plugin_la_LIBADD = $(LIBVORBIS_LIBS) $(OGG_LIBS)
13 EXTRA_LTLIBRARIES += libogg_plugin.la
14 demux_LTLIBRARIES += $(LTLIBogg)
15
16 libdemuxdump_plugin_la_SOURCES = demux/demuxdump.c
17 demux_LTLIBRARIES += libdemuxdump_plugin.la
18
19 librawdv_plugin_la_SOURCES = demux/rawdv.c demux/rawdv.h
20 demux_LTLIBRARIES += librawdv_plugin.la
21
22 librawvid_plugin_la_SOURCES = demux/rawvid.c
23 demux_LTLIBRARIES += librawvid_plugin.la
24
25 libau_plugin_la_SOURCES = demux/au.c
26 demux_LTLIBRARIES += libau_plugin.la
27
28 librawaud_plugin_la_SOURCES = demux/rawaud.c
29 demux_LTLIBRARIES += librawaud_plugin.la
30
31 libwav_plugin_la_SOURCES = demux/wav.c demux/windows_audio_commons.h
32 demux_LTLIBRARIES += libwav_plugin.la
33
34 libnsv_plugin_la_SOURCES = demux/nsv.c
35 demux_LTLIBRARIES += libnsv_plugin.la
36
37 libreal_plugin_la_SOURCES = demux/real.c
38 demux_LTLIBRARIES += libreal_plugin.la
39
40 libps_plugin_la_SOURCES = demux/mpeg/ps.c demux/mpeg/ps.h demux/mpeg/pes.h
41 demux_LTLIBRARIES += libps_plugin.la
42
43 libmod_plugin_la_SOURCES = demux/mod.c
44 libmod_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_mod)
45 libmod_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(demuxdir)'
46 libmod_plugin_la_LIBADD = $(LIBS_mod)
47 EXTRA_LTLIBRARIES += libmod_plugin.la
48 demux_LTLIBRARIES += $(LTLIBmod)
49
50 libpva_plugin_la_SOURCES = demux/pva.c
51 demux_LTLIBRARIES += libpva_plugin.la
52
53 libaiff_plugin_la_SOURCES = demux/aiff.c
54 demux_LTLIBRARIES += libaiff_plugin.la
55
56 libmjpeg_plugin_la_SOURCES = demux/mjpeg.c demux/mxpeg_helper.h
57 demux_LTLIBRARIES += libmjpeg_plugin.la
58
59 libsubtitle_plugin_la_SOURCES = demux/subtitle.c
60 libsubtitle_plugin_la_LIBADD = $(LIBM)
61 demux_LTLIBRARIES += libsubtitle_plugin.la
62
63 libty_plugin_la_SOURCES = demux/ty.c codec/cc.h
64 demux_LTLIBRARIES += libty_plugin.la
65
66 libvobsub_plugin_la_SOURCES = demux/vobsub.c demux/vobsub.h \
67                               demux/mpeg/ps.h demux/mpeg/pes.h
68 demux_LTLIBRARIES += libvobsub_plugin.la
69
70 libvoc_plugin_la_SOURCES = demux/voc.c
71 demux_LTLIBRARIES += libvoc_plugin.la
72
73 libxa_plugin_la_SOURCES = demux/xa.c
74 demux_LTLIBRARIES += libxa_plugin.la
75
76 libnuv_plugin_la_SOURCES = demux/nuv.c
77 demux_LTLIBRARIES += libnuv_plugin.la
78
79 libnsc_plugin_la_SOURCES = demux/nsc.c
80 demux_LTLIBRARIES += libnsc_plugin.la
81
82 libmpc_plugin_la_SOURCES = demux/mpc.c
83 libmpc_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(demuxdir)'
84 libmpc_plugin_la_LIBADD = $(LIBS_mpc) $(LIBM)
85 EXTRA_LTLIBRARIES += libmpc_plugin.la
86 demux_LTLIBRARIES += $(LTLIBmpc)
87
88 libtta_plugin_la_SOURCES = demux/tta.c
89 demux_LTLIBRARIES += libtta_plugin.la
90
91 libvc1_plugin_la_SOURCES = demux/vc1.c
92 demux_LTLIBRARIES += libvc1_plugin.la
93
94 libdemux_cdg_plugin_la_SOURCES = demux/cdg.c
95 libdemux_cdg_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
96 demux_LTLIBRARIES += libdemux_cdg_plugin.la
97
98 libsmf_plugin_la_SOURCES = demux/smf.c
99 demux_LTLIBRARIES += libsmf_plugin.la
100
101 libgme_plugin_la_SOURCES = demux/gme.c dummy.cpp
102 libgme_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(demuxdir)'
103 libgme_plugin_la_LIBADD = $(LIBS_gme)
104 EXTRA_LTLIBRARIES += libgme_plugin.la
105 demux_LTLIBRARIES += $(LTLIBgme)
106
107 libsid_plugin_la_SOURCES = demux/sid.cpp
108 libsid_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_sid)
109 libsid_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(demuxdir)'
110 libsid_plugin_la_LIBADD = $(LIBS_sid)
111 EXTRA_LTLIBRARIES += libsid_plugin.la
112 demux_LTLIBRARIES += $(LTLIBsid)
113
114 libdiracsys_plugin_la_SOURCES = demux/dirac.c
115 libdiracsys_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
116 demux_LTLIBRARIES += libdiracsys_plugin.la
117
118 libimage_plugin_la_SOURCES = demux/image.c demux/mxpeg_helper.h
119 demux_LTLIBRARIES += libimage_plugin.la
120
121 libdemux_stl_plugin_la_SOURCES = demux/stl.c
122 libdemux_stl_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
123 demux_LTLIBRARIES += libdemux_stl_plugin.la
124
125 libasf_plugin_la_SOURCES = demux/asf/asf.c demux/asf/libasf.c demux/asf/libasf.h \
126                            demux/asf/asfpacket.c demux/asf/asfpacket.h \
127                            demux/asf/libasf_guid.h
128 demux_LTLIBRARIES += libasf_plugin.la
129
130 libavi_plugin_la_SOURCES = demux/avi/avi.c demux/avi/libavi.c demux/avi/libavi.h
131 demux_LTLIBRARIES += libavi_plugin.la
132
133 libcaf_plugin_la_SOURCES = demux/caf.c
134 libcaf_plugin_la_LIBADD = $(LIBM)
135 demux_LTLIBRARIES += libcaf_plugin.la
136
137 libavformat_plugin_la_SOURCES = demux/avformat/demux.c \
138         codec/avcodec/fourcc.c \
139         codec/avcodec/chroma.c \
140         codec/avcodec/avcommon.h \
141         codec/avcodec/avcommon_compat.h \
142         demux/vobsub.h \
143         demux/avformat/avformat.c demux/avformat/avformat.h
144 if ENABLE_SOUT
145 libavformat_plugin_la_SOURCES += demux/avformat/mux.c
146 endif
147 libavformat_plugin_la_CFLAGS = $(AM_CFLAGS) $(AVFORMAT_CFLAGS) $(AVUTIL_CFLAGS)
148 libavformat_plugin_la_LIBADD = $(AVFORMAT_LIBS) $(AVUTIL_LIBS) $(LIBM)
149 libavformat_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(SYMBOLIC_LDFLAGS)
150 if HAVE_ZLIB
151 libavformat_plugin_la_LIBADD += -lz
152 endif
153 if HAVE_DARWIN
154 libavformat_plugin_la_LDFLAGS += -Wl,-read_only_relocs,suppress
155 endif
156 if HAVE_AVFORMAT
157 if !MERGE_FFMPEG
158 demux_LTLIBRARIES += libavformat_plugin.la
159 endif
160 endif
161
162 libes_plugin_la_SOURCES  = demux/mpeg/es.c codec/dts_header.c codec/dts_header.h
163 demux_LTLIBRARIES += libes_plugin.la
164
165 libh264_plugin_la_SOURCES = demux/mpeg/h264.c
166 demux_LTLIBRARIES += libh264_plugin.la
167
168 libhevc_plugin_la_SOURCES = demux/mpeg/hevc.c demux/mpeg/mpeg_parser_helpers.h
169 demux_LTLIBRARIES += libhevc_plugin.la
170
171 libmkv_plugin_la_SOURCES = \
172         demux/mkv/util.hpp demux/mkv/util.cpp \
173         demux/mkv/virtual_segment.hpp demux/mkv/virtual_segment.cpp \
174         demux/mkv/matroska_segment.hpp demux/mkv/matroska_segment.cpp \
175         demux/mkv/matroska_segment_parse.cpp \
176         demux/mkv/demux.hpp demux/mkv/demux.cpp \
177         demux/mkv/Ebml_parser.hpp demux/mkv/Ebml_parser.cpp \
178         demux/mkv/chapters.hpp demux/mkv/chapters.cpp \
179         demux/mkv/chapter_command.hpp demux/mkv/chapter_command.cpp \
180         demux/mkv/stream_io_callback.hpp demux/mkv/stream_io_callback.cpp \
181         demux/mp4/libmp4.c demux/vobsub.h \
182         demux/mkv/mkv.hpp demux/mkv/mkv.cpp \
183         demux/windows_audio_commons.h
184 libmkv_plugin_la_SOURCES += codec/dts_header.h codec/dts_header.c
185 libmkv_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
186 libmkv_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(demuxdir)'
187 libmkv_plugin_la_LIBADD = $(LIBS_mkv)
188 if HAVE_ZLIB
189 libmkv_plugin_la_LIBADD += -lz
190 endif
191 demux_LTLIBRARIES += $(LTLIBmkv)
192 EXTRA_LTLIBRARIES += libmkv_plugin.la
193
194 libmp4_plugin_la_SOURCES = demux/mp4/mp4.c demux/mp4/mp4.h \
195                            demux/mp4/libmp4.c demux/mp4/libmp4.h \
196                            demux/mp4/id3genres.h demux/mp4/languages.h \
197                            demux/asf/asfpacket.c demux/asf/asfpacket.h \
198                            demux/mp4/essetup.c demux/mp4/meta.c
199 libmp4_plugin_la_LIBADD = $(LIBM)
200 libmp4_plugin_la_LDFLAGS = $(AM_LDFLAGS)
201 if HAVE_ZLIB
202 libmp4_plugin_la_LIBADD += -lz
203 endif
204 demux_LTLIBRARIES += libmp4_plugin.la
205
206 libmpgv_plugin_la_SOURCES = demux/mpeg/mpgv.c
207 demux_LTLIBRARIES += libmpgv_plugin.la
208
209 libplaylist_plugin_la_SOURCES = \
210         demux/playlist/asx.c \
211         demux/playlist/b4s.c \
212         demux/playlist/dvb.c \
213         demux/playlist/gvp.c \
214         demux/playlist/ifo.c \
215         demux/playlist/itml.c \
216         demux/playlist/itml.h \
217         demux/playlist/m3u.c \
218         demux/playlist/pls.c \
219         demux/playlist/podcast.c \
220         demux/playlist/qtl.c \
221         demux/playlist/ram.c \
222         demux/playlist/sgimb.c \
223         demux/playlist/shoutcast.c \
224         demux/playlist/wpl.c \
225         demux/playlist/xspf.c \
226         demux/playlist/directory.c \
227         demux/playlist/playlist.c demux/playlist/playlist.h
228 demux_LTLIBRARIES += libplaylist_plugin.la
229
230 libts_plugin_la_SOURCES = demux/mpeg/ts.c \
231         demux/mpeg/mpeg4_iod.c demux/mpeg/mpeg4_iod.h \
232         demux/mpeg/pes.h \
233         mux/mpeg/csa.c mux/mpeg/dvbpsi_compat.h \
234         mux/mpeg/streams.h mux/mpeg/tables.c mux/mpeg/tables.h \
235         mux/mpeg/tsutil.c mux/mpeg/tsutil.h \
236         demux/dvb-text.h codec/opus_header.c demux/opus.h
237 libts_plugin_la_CFLAGS = $(AM_CFLAGS) $(DVBPSI_CFLAGS)
238 libts_plugin_la_LIBADD = $(DVBPSI_LIBS) $(SOCKET_LIBS)
239 if HAVE_ARIBB24
240 libts_plugin_la_CFLAGS += $(ARIBB24_CFLAGS)
241 libts_plugin_la_LIBADD += $(ARIBB24_LIBS)
242 endif
243 if HAVE_DVBPSI
244 demux_LTLIBRARIES += libts_plugin.la
245 endif
246
247 adaptative_SOURCES = \
248     demux/adaptative/playlist/AbstractPlaylist.cpp \
249     demux/adaptative/playlist/AbstractPlaylist.hpp \
250     demux/adaptative/playlist/BaseAdaptationSet.cpp \
251     demux/adaptative/playlist/BaseAdaptationSet.h \
252     demux/adaptative/playlist/BasePeriod.cpp \
253     demux/adaptative/playlist/BasePeriod.h \
254     demux/adaptative/playlist/BaseRepresentation.cpp \
255     demux/adaptative/playlist/BaseRepresentation.h \
256     demux/adaptative/playlist/CommonAttributesElements.cpp \
257     demux/adaptative/playlist/CommonAttributesElements.h \
258     demux/adaptative/playlist/ICanonicalUrl.hpp \
259     demux/adaptative/playlist/Inheritables.hpp \
260     demux/adaptative/playlist/Inheritables.cpp \
261     demux/adaptative/playlist/Segment.cpp \
262     demux/adaptative/playlist/Segment.h \
263     demux/adaptative/playlist/SegmentBase.cpp \
264     demux/adaptative/playlist/SegmentBase.h \
265     demux/adaptative/playlist/SegmentInfoCommon.cpp \
266     demux/adaptative/playlist/SegmentInfoCommon.h \
267     demux/adaptative/playlist/SegmentList.cpp \
268     demux/adaptative/playlist/SegmentList.h \
269     demux/adaptative/playlist/SegmentTimeline.cpp \
270     demux/adaptative/playlist/SegmentTimeline.h \
271     demux/adaptative/playlist/SegmentInformation.cpp \
272     demux/adaptative/playlist/SegmentInformation.hpp \
273     demux/adaptative/playlist/SegmentTemplate.cpp \
274     demux/adaptative/playlist/SegmentTemplate.h \
275     demux/adaptative/playlist/Url.cpp \
276     demux/adaptative/playlist/Url.hpp \
277     demux/adaptative/playlist/Templates.hpp \
278     demux/adaptative/logic/AbstractAdaptationLogic.cpp \
279     demux/adaptative/logic/AbstractAdaptationLogic.h \
280     demux/adaptative/logic/AlwaysBestAdaptationLogic.cpp \
281     demux/adaptative/logic/AlwaysBestAdaptationLogic.h \
282     demux/adaptative/logic/AlwaysLowestAdaptationLogic.cpp \
283     demux/adaptative/logic/AlwaysLowestAdaptationLogic.hpp \
284     demux/adaptative/logic/IDownloadRateObserver.h \
285     demux/adaptative/logic/RateBasedAdaptationLogic.h \
286     demux/adaptative/logic/RateBasedAdaptationLogic.cpp \
287     demux/adaptative/logic/Representationselectors.hpp \
288     demux/adaptative/logic/Representationselectors.cpp \
289     demux/adaptative/http/Chunk.cpp \
290     demux/adaptative/http/Chunk.h \
291     demux/adaptative/http/HTTPConnection.cpp \
292     demux/adaptative/http/HTTPConnection.hpp \
293     demux/adaptative/http/HTTPConnectionManager.cpp \
294     demux/adaptative/http/HTTPConnectionManager.h \
295     demux/adaptative/http/Sockets.hpp \
296     demux/adaptative/http/Sockets.cpp \
297     demux/adaptative/PlaylistManager.cpp \
298     demux/adaptative/PlaylistManager.h \
299     demux/adaptative/SegmentTracker.cpp \
300     demux/adaptative/SegmentTracker.hpp \
301     demux/adaptative/Streams.cpp \
302     demux/adaptative/Streams.hpp \
303     demux/adaptative/StreamsType.hpp \
304     demux/adaptative/tools/Helper.cpp \
305     demux/adaptative/tools/Helper.h \
306     demux/adaptative/tools/Properties.hpp \
307     demux/adaptative/tools/Retrieve.cpp \
308     demux/adaptative/tools/Retrieve.hpp
309
310 libdash_plugin_la_SOURCES = \
311     demux/dash/mpd/AdaptationSet.cpp \
312     demux/dash/mpd/AdaptationSet.h \
313     demux/dash/mpd/DASHCommonAttributesElements.cpp \
314     demux/dash/mpd/DASHCommonAttributesElements.h \
315     demux/dash/mpd/DASHSegment.cpp \
316     demux/dash/mpd/DASHSegment.h \
317     demux/dash/mpd/ContentDescription.cpp \
318     demux/dash/mpd/ContentDescription.h \
319     demux/dash/mpd/IsoffMainParser.cpp \
320     demux/dash/mpd/IsoffMainParser.h \
321     demux/dash/mpd/MPD.cpp \
322     demux/dash/mpd/MPD.h \
323     demux/dash/mpd/MPDFactory.cpp \
324     demux/dash/mpd/MPDFactory.h \
325     demux/dash/mpd/Period.cpp \
326     demux/dash/mpd/Period.h \
327     demux/dash/mpd/Profile.cpp \
328     demux/dash/mpd/Profile.hpp \
329     demux/dash/mpd/ProgramInformation.cpp \
330     demux/dash/mpd/ProgramInformation.h \
331     demux/dash/mpd/Representation.cpp \
332     demux/dash/mpd/Representation.h \
333     demux/dash/mpd/TrickModeType.cpp \
334     demux/dash/mpd/TrickModeType.h \
335     demux/dash/mp4/AtomsReader.cpp \
336     demux/dash/mp4/AtomsReader.hpp \
337     demux/dash/xml/DOMHelper.cpp \
338     demux/dash/xml/DOMHelper.h \
339     demux/dash/xml/DOMParser.cpp \
340     demux/dash/xml/DOMParser.h \
341     demux/dash/xml/Node.cpp \
342     demux/dash/xml/Node.h \
343     demux/dash/dash.cpp \
344     demux/dash/dash.hpp \
345     demux/dash/DASHManager.cpp \
346     demux/dash/DASHManager.h
347
348 libdash_plugin_la_SOURCES += $(adaptative_SOURCES)
349 libdash_plugin_la_SOURCES += demux/mp4/libmp4.c demux/mp4/libmp4.h
350 libdash_plugin_la_CXXFLAGS = $(AM_CFLAGS) -I$(srcdir)/demux/dash
351 libdash_plugin_la_LIBADD = $(SOCKET_LIBS) $(LIBM)
352 if HAVE_ZLIB
353 libdash_plugin_la_LIBADD += -lz
354 endif
355 demux_LTLIBRARIES += libdash_plugin.la
356
357
358 libhls_plugin_la_SOURCES = \
359     demux/hls/playlist/M3U8.hpp \
360     demux/hls/playlist/M3U8.cpp \
361     demux/hls/playlist/Parser.hpp \
362     demux/hls/playlist/Parser.cpp \
363     demux/hls/playlist/Representation.hpp \
364     demux/hls/playlist/Representation.cpp \
365     demux/hls/playlist/HLSSegment.hpp \
366     demux/hls/playlist/HLSSegment.cpp \
367     demux/hls/playlist/Tags.hpp \
368     demux/hls/playlist/Tags.cpp \
369     demux/hls/HLSManager.hpp \
370     demux/hls/HLSManager.cpp \
371     demux/hls/hls.cpp \
372     demux/hls/hls.hpp
373
374 libhls_plugin_la_SOURCES += $(adaptative_SOURCES)
375 libhls_plugin_la_CXXFLAGS = $(AM_CFLAGS) -I$(srcdir)/demux/hls
376 libhls_plugin_la_LIBADD = $(SOCKET_LIBS) $(LIBM)
377 if HAVE_ZLIB
378 libhls_plugin_la_LIBADD += -lz
379 endif
380 if HAVE_GCRYPT
381 libhls_plugin_la_CXXFLAGS += $(GCRYPT_CFLAGS)
382 libhls_plugin_la_LIBADD += $(GCRYPT_LIBS)
383 endif
384
385 demux_LTLIBRARIES += libhls_plugin.la
386
387 libttml_plugin_la_SOURCES = demux/ttml.c
388 demux_LTLIBRARIES += libttml_plugin.la
389