modules: use different directory prefixes for each plugins subdirectory
[vlc.git] / modules / demux / Modules.am
1 SOURCES_flacsys = flac.c xiph_metadata.h xiph_metadata.c
2 SOURCES_ogg = ogg.c ogg.h oggseek.c oggseek.h xiph_metadata.h xiph.h xiph_metadata.c
3 SOURCES_demuxdump = demuxdump.c
4 SOURCES_rawdv = rawdv.c rawdv.h
5 SOURCES_rawvid = rawvid.c
6 SOURCES_au = au.c
7 SOURCES_rawaud = rawaud.c
8 SOURCES_wav = wav.c
9 SOURCES_nsv = nsv.c
10 SOURCES_real = real.c
11 SOURCES_ps = ps.c ps.h
12 SOURCES_mod = mod.c
13 SOURCES_pva = pva.c
14 SOURCES_aiff = aiff.c
15 SOURCES_mjpeg = mjpeg.c mxpeg_helper.h
16 SOURCES_subtitle = subtitle.c
17 SOURCES_ty = ty.c ../codec/cc.h
18 SOURCES_vobsub = vobsub.c vobsub.h
19 SOURCES_voc = voc.c
20 SOURCES_xa = xa.c
21 SOURCES_nuv = nuv.c
22 SOURCES_nsc = nsc.c
23 SOURCES_mpc = mpc.c
24 SOURCES_tta = tta.c
25 SOURCES_vc1 = vc1.c
26 SOURCES_demux_cdg = cdg.c
27 SOURCES_smf = smf.c
28 SOURCES_gme = gme.c dummy.cpp
29 SOURCES_sid = sid.cpp
30 SOURCES_dirac = dirac.c
31 SOURCES_image = image.c mxpeg_helper.h
32 SOURCES_demux_stl = stl.c
33
34 libasf_plugin_la_SOURCES = asf/asf.c asf/libasf.c asf/libasf.h asf/libasf_guid.h
35 libasf_plugin_la_CFLAGS = $(AM_CFLAGS)
36 libasf_plugin_la_LIBADD = $(AM_LIBADD)
37 if HAVE_WIN32
38 libasf_plugin_la_DEPENDENCIES = libasf_plugin.rc.o
39 endif
40
41 libavi_plugin_la_SOURCES = avi/avi.c avi/libavi.c avi/libavi.h
42 libavi_plugin_la_CFLAGS = $(AM_CFLAGS)
43 libavi_plugin_la_LIBADD = $(AM_LIBADD)
44 if HAVE_WIN32
45 libavi_plugin_la_DEPENDENCIES = libavi_plugin.rc.o
46 endif
47
48 libavformat_plugin_la_SOURCES = avformat/demux.c \
49         ../codec/avcodec/fourcc.c \
50         ../codec/avcodec/chroma.c \
51         ../codec/avcodec/cpu.c \
52         ../codec/avcodec/avcommon.h \
53         ../codec/avcodec/avcommon_compat.h \
54         vobsub.h \
55         avformat/avformat.c avformat/avformat.h
56 if ENABLE_SOUT
57 libavformat_plugin_la_SOURCES += avformat/mux.c
58 endif
59 libavformat_plugin_la_CFLAGS = $(AM_CFLAGS) $(AVFORMAT_CFLAGS) $(AVUTIL_CFLAGS)
60 libavformat_plugin_la_LIBADD = $(AM_LIBADD) $(AVFORMAT_LIBS) $(AVUTIL_LIBS) \
61                                 $(LIBM)
62 libavformat_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(SYMBOLIC_LDFLAGS)
63 if HAVE_ZLIB
64 libavformat_plugin_la_LIBADD += -lz
65 endif
66 if HAVE_DARWIN
67 libavformat_plugin_la_LDFLAGS += -Wl,-read_only_relocs,suppress
68 endif
69 if HAVE_WIN32
70 libavformat_plugin_la_DEPENDENCIES = libavformat_plugin.rc.o
71 endif
72 if HAVE_AVFORMAT
73 demux_LTLIBRARIES += libavformat_plugin.la
74 endif
75
76 libes_plugin_la_SOURCES  = mpeg/es.c
77 libes_plugin_la_CFLAGS = $(AM_CFLAGS)
78 libes_plugin_la_LIBADD = ../codec/libvlc_dts_header.la $(AM_LIBADD)
79 if HAVE_WIN32
80 libes_plugin_la_DEPENDENCIES = libes_plugin.rc.o
81 endif
82
83 libh264_plugin_la_SOURCES = mpeg/h264.c
84 libh264_plugin_la_CFLAGS = $(AM_CFLAGS)
85 libh264_plugin_la_LIBADD = $(AM_LIBADD)
86 if HAVE_WIN32
87 libh264_plugin_la_DEPENDENCIES = libh264_plugin.rc.o
88 endif
89
90 libmkv_plugin_la_SOURCES = \
91         mkv/util.hpp mkv/util.cpp \
92         mkv/virtual_segment.hpp mkv/virtual_segment.cpp \
93         mkv/matroska_segment.hpp mkv/matroska_segment.cpp \
94         mkv/matroska_segment_parse.cpp \
95         mkv/demux.hpp mkv/demux.cpp \
96         mkv/Ebml_parser.hpp mkv/Ebml_parser.cpp \
97         mkv/chapters.hpp mkv/chapters.cpp \
98         mkv/chapter_command.hpp mkv/chapter_command.cpp \
99         mkv/stream_io_callback.hpp mkv/stream_io_callback.cpp \
100         mp4/libmp4.c vobsub.h \
101         mkv/mkv.hpp mkv/mkv.cpp
102 libmkv_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
103 libmkv_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(demuxdir)'
104 libmkv_plugin_la_LIBADD = $(AM_LIBADD) $(LIBS_mkv)
105 if HAVE_ZLIB
106 libmkv_plugin_la_LIBADD += -lz
107 endif
108 demux_LTLIBRARIES += $(LTLIBmkv)
109 EXTRA_LTLIBRARIES += libmkv_plugin.la
110
111 libmp4_plugin_la_SOURCES = mp4/mp4.c mp4/libmp4.c mp4/libmp4.h mp4/id3genres.h
112 libmp4_plugin_la_CFLAGS = $(AM_CFLAGS)
113 libmp4_plugin_la_LIBADD = $(AM_LIBADD) $(LIBM)
114 libmp4_plugin_la_LDFLAGS = $(AM_LDFLAGS)
115 if HAVE_ZLIB
116 libmp4_plugin_la_LIBADD += -lz
117 endif
118 if HAVE_WIN32
119 libmp4_plugin_la_DEPENDENCIES = libmp4_plugin.rc.o
120 endif
121
122 libmpgv_plugin_la_SOURCES = mpeg/mpgv.c
123 libmpgv_plugin_la_CFLAGS = $(AM_CFLAGS)
124 libmpgv_plugin_la_LIBADD = $(AM_LIBADD)
125 if HAVE_WIN32
126 libmpgv_plugin_la_DEPENDENCIES = libmpgv_plugin.rc.o
127 endif
128
129 libplaylist_plugin_la_SOURCES = \
130         playlist/asx.c \
131         playlist/b4s.c \
132         playlist/dvb.c \
133         playlist/gvp.c \
134         playlist/ifo.c \
135         playlist/itml.c \
136         playlist/itml.h \
137         playlist/m3u.c \
138         playlist/pls.c \
139         playlist/podcast.c \
140         playlist/qtl.c \
141         playlist/ram.c \
142         playlist/sgimb.c \
143         playlist/shoutcast.c \
144         playlist/wpl.c \
145         playlist/xspf.c \
146         playlist/zpl.c \
147         playlist/playlist.c playlist/playlist.h
148 libplaylist_plugin_la_CFLAGS = $(AM_CFLAGS)
149 libplaylist_plugin_la_LIBADD = $(AM_LIBADD)
150 if HAVE_WIN32
151 libplaylist_plugin_la_DEPENDENCIES = libplaylist_plugin.rc.o
152 endif
153
154 libts_plugin_la_SOURCES = ts.c ../mux/mpeg/csa.c ../mux/mpeg/dvbpsi_compat.h dvb-text.h
155 libts_plugin_la_CFLAGS = $(AM_CFLAGS) $(DVBPSI_CFLAGS)
156 libts_plugin_la_LIBADD = $(AM_LIBADD) $(DVBPSI_LIBS) $(SOCKET_LIBS)
157 if HAVE_WIN32
158 libts_plugin_la_DEPENDENCIES = libts_plugin.rc.o
159 endif
160 if HAVE_DVBPSI
161 demux_LTLIBRARIES += libts_plugin.la
162 endif
163
164 demux_LTLIBRARIES += \
165         libaiff_plugin.la \
166         libasf_plugin.la \
167         libau_plugin.la \
168         libavi_plugin.la \
169         librawaud_plugin.la \
170         libdirac_plugin.la \
171         libdemux_cdg_plugin.la \
172         libdemuxdump_plugin.la \
173         libes_plugin.la \
174         libflacsys_plugin.la \
175         libh264_plugin.la \
176         libmjpeg_plugin.la \
177         libmp4_plugin.la \
178         libmpgv_plugin.la \
179         libnsc_plugin.la \
180         libnsv_plugin.la \
181         libnuv_plugin.la \
182         libplaylist_plugin.la \
183         libpva_plugin.la \
184         libps_plugin.la \
185         librawdv_plugin.la \
186         librawvid_plugin.la \
187         libreal_plugin.la \
188         libsmf_plugin.la \
189         libsubtitle_plugin.la \
190         libtta_plugin.la \
191         libty_plugin.la \
192         libvc1_plugin.la \
193         libvobsub_plugin.la \
194         libvoc_plugin.la \
195         libwav_plugin.la \
196         libxa_plugin.la \
197         libimage_plugin.la \
198         libdemux_stl_plugin.la \
199         $(NULL)
200
201 BUILT_SOURCES += dummy.cpp
202
203 dummy.cpp:
204         touch dummy.cpp