0770d943f3b9707094343afe882f1570647297c3
[vlc.git] / modules / access / Modules.am
1 SUBDIRS = rtp
2 noinst_LTLIBRARIES =
3
4 libfilesystem_plugin_la_SOURCES = \
5         fs.h \
6         file.c \
7         directory.c \
8         fs.c
9 libfilesystem_plugin_la_CFLAGS = $(AM_CFLAGS)
10 libfilesystem_plugin_la_LIBADD = $(AM_LIBADD)
11 if HAVE_WIN32
12 libfilesystem_plugin_la_LIBADD += -lshlwapi
13 endif
14
15 libidummy_plugin_la_SOURCES = idummy.c
16 libidummy_plugin_la_CFLAGS = $(AM_CFLAGS)
17 libidummy_plugin_la_LIBADD = $(AM_LIBADD)
18
19 libsdp_plugin_la_SOURCES = sdp.c
20 libsdp_plugin_la_CFLAGS = $(AM_CFLAGS)
21 libsdp_plugin_la_LIBADD = $(AM_LIBADD)
22
23 libtimecode_plugin_la_SOURCES = timecode.c
24 libtimecode_plugin_la_CFLAGS = $(AM_CFLAGS)
25 libtimecode_plugin_la_LIBADD = $(AM_LIBADD)
26
27 libzip_plugin_la_SOURCES = zip/zip.h zip/zipstream.c zip/zipaccess.c
28 libzip_plugin_la_CFLAGS = $(AM_CFLAGS) $(MINIZIP_CFLAGS)
29 libzip_plugin_la_LIBADD = $(AM_LIBADD) $(MINIZIP_LIBS)
30 if HAVE_ZLIB
31 libvlc_LTLIBRARIES += libzip_plugin.la
32 if !HAVE_MINIZIP
33 libunzip_la_SOURCES = zip/unzip/unzip.c zip/unzip/unzip.h zip/unzip/crypt.h \
34         zip/unzip/ioapi.c zip/unzip/ioapi.h
35 libunzip_la_LIBADD = -lz
36 libunzip_la_LDFLAGS = -static
37 noinst_LTLIBRARIES += libunzip.la
38 libzip_plugin_la_CFLAGS += -I$(srcdir)/zip/unzip
39 libzip_plugin_la_LIBADD += libunzip.la
40 endif
41 endif
42
43 SOURCES_access_directory = directory.c
44 SOURCES_access_gnomevfs = gnomevfs.c
45 SOURCES_access_eyetv = eyetv.m
46 SOURCES_dc1394 = dc1394.c
47 SOURCES_dv1394 = dv.c
48 SOURCES_linsys_sdi = linsys/linsys_sdi.c linsys/linsys_sdi.h
49 SOURCES_linsys_hdsdi = \
50         linsys/linsys_hdsdi.c \
51         linsys/linsys_sdiaudio.h \
52         linsys/linsys_sdivideo.h \
53         $(NULL)
54 SOURCES_access_jack = jack.c
55 SOURCES_access_mtp = mtp.c
56 SOURCES_access_imem = imem.c
57 SOURCES_access_avio = avio.c avio.h ../codec/avcodec/cpu.c
58 SOURCES_access_attachment = attachment.c
59 SOURCES_access_vdr = vdr.c
60 SOURCES_libbluray = bluray.c
61
62 SOURCES_access_rar = rar/rar.c rar/rar.h rar/access.c
63 SOURCES_stream_filter_rar = rar/rar.c rar/rar.h rar/stream.c
64
65 if HAVE_DECKLINK
66 libdecklink_plugin_la_SOURCES = decklink.cpp
67 libdecklink_plugin_la_CXXFLAGS = $(AM_CFLAGS) $(CPPFLAGS_decklink)
68 libdecklink_plugin_la_LIBADD = $(AM_LIBADD) $(LIBS_decklink) -ldl
69 libvlc_LTLIBRARIES += libdecklink_plugin.la
70 endif
71
72 if HAVE_QTKIT
73 libqtcapture_plugin_la_SOURCES = qtcapture.m
74 libqtcapture_plugin_la_LIBADDD = $(AM_LIBADD)
75 libqtcapture_plugin_la_LDFLAGS = -Wl,-framework,Cocoa -Wl,-framework,QTKit -Wl,-framework,CoreVideo -Wl,-framework,QuartzCore
76
77 libqtsound_plugin_la_SOURCES = qtsound.m
78 libqtsound_plugin_la_LIBADD = $(AM_LIBADD)
79 libqtsound_plugin_la_LDFLAGS = -Wl,-framework,Cocoa -Wl,-framework,QTKit -Wl,-framework,CoreAudio
80
81 libvlc_LTLIBRARIES += \
82         libqtcapture_plugin.la \
83         libqtsound_plugin.la \
84         $(NULL)
85 endif
86
87 libvlc_LTLIBRARIES += \
88         libfilesystem_plugin.la \
89         libidummy_plugin.la \
90         libaccess_udp_plugin.la \
91         libaccess_tcp_plugin.la \
92         libaccess_http_plugin.la \
93         libaccess_ftp_plugin.la \
94         libaccess_imem_plugin.la \
95         libaccess_attachment_plugin.la \
96         libsdp_plugin.la \
97         libtimecode_plugin.la \
98         libaccess_rar_plugin.la \
99         libstream_filter_rar_plugin.la \
100         libaccess_vdr_plugin.la \
101         $(NULL)
102
103
104 ### Audio capture ###
105
106 libaccess_oss_plugin_la_SOURCES = oss.c
107 libaccess_oss_plugin_la_CFLAGS = $(AM_CFLAGS)
108 libaccess_oss_plugin_la_LIBADD = $(AM_LIBADD) $(OSS_LIBS)
109 if HAVE_OSS
110 libvlc_LTLIBRARIES += libaccess_oss_plugin.la
111 endif
112
113 libaccess_alsa_plugin_la_SOURCES = alsa.c
114 libaccess_alsa_plugin_la_CFLAGS = $(AM_CFLAGS) $(ALSA_CFLAGS)
115 libaccess_alsa_plugin_la_LIBADD = $(AM_LIBADD) $(ALSA_LIBS)
116 if HAVE_ALSA
117 libvlc_LTLIBRARIES += libaccess_alsa_plugin.la
118 endif
119
120 libpulsesrc_plugin_la_SOURCES = \
121         ../audio_output/vlcpulse.c \
122         ../audio_output/vlcpulse.h \
123         pulse.c
124 libpulsesrc_plugin_la_CFLAGS= $(AM_CFLAGS) $(PULSE_CFLAGS)
125 libpulsesrc_plugin_la_LIBADD = $(AM_LIBADD) $(PULSE_LIBS)
126 if HAVE_PULSE
127 libvlc_LTLIBRARIES += libpulsesrc_plugin.la
128 endif
129
130
131 ### Video capture ###
132
133 libshm_plugin_la_SOURCES = shm.c
134 libshm_plugin_la_CFLAGS = $(AM_CFLAGS)
135 libshm_plugin_la_LIBADD = $(AM_LIBADD) $(LIBM)
136 libvlc_LTLIBRARIES += libshm_plugin.la
137
138 libv4l2_plugin_la_SOURCES = \
139         v4l2/linux/videodev2.h \
140         v4l2/linux/v4l2-common.h \
141         v4l2/linux/v4l2-controls.h \
142         v4l2/v4l2.c \
143         v4l2/video.c \
144         v4l2/vbi.c \
145         v4l2/demux.c \
146         v4l2/access.c \
147         v4l2/radio.c \
148         v4l2/controls.c \
149         v4l2/lib.c \
150         v4l2/v4l2.h
151 libv4l2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/v4l2
152 libv4l2_plugin_la_CFLAGS = $(AM_CFLAGS) $(ZVBI_CFLAGS)
153 libv4l2_plugin_la_LIBADD = $(AM_LIBADD) $(LIBDL) $(LIBM) $(ZVBI_LIBS)
154 if HAVE_V4L2
155 libvlc_LTLIBRARIES += libv4l2_plugin.la
156 endif
157
158 libdshow_plugin_la_SOURCES = dshow/vlc_dshow.h dshow/dshow.cpp dshow/access.h \
159         dshow/filter.cpp dshow/filter.h dshow/crossbar.cpp
160 libdshow_plugin_la_CFLAGS = $(AM_CFLAGS)
161 libdshow_plugin_la_LIBADD = $(AM_LIBADD) -lole32 -loleaut32 -luuid -lstrmiids -lksuser
162 if HAVE_WIN32
163 libvlc_LTLIBRARIES += libdshow_plugin.la
164 endif
165
166
167 ### Screen grab ###
168
169 libxcb_screen_plugin_la_SOURCES = screen/xcb.c
170 libxcb_screen_plugin_la_CFLAGS = $(AM_CFLAGS) \
171         $(XCB_CFLAGS) $(XCB_COMPOSITE_CFLAGS) $(XCB_SHM_CFLAGS)
172 libxcb_screen_plugin_la_LIBADD = $(AM_LIBADD) \
173         $(XCB_LIBS) $(XCB_COMPOSITE_LIBS) $(XCB_SHM_LIBS)
174 if HAVE_XCB
175 libvlc_LTLIBRARIES += libxcb_screen_plugin.la
176 endif
177
178 libscreen_plugin_la_SOURCES = screen/screen.c screen/screen.h
179 libscreen_plugin_la_CFLAGS = $(AM_CFLAGS)
180 libscreen_plugin_la_LIBADD = $(AM_LIBADD)
181 if HAVE_WIN32
182 libscreen_plugin_la_SOURCES += screen/win32.c
183 libscreen_plugin_la_LIBADD += -lgdi32
184 libvlc_LTLIBRARIES += libscreen_plugin.la
185 endif
186 if HAVE_MAC_SCREEN
187 libscreen_plugin_la_SOURCES += screen/mac.c
188 libscreen_plugin_la_LDFLAGS = $(AM_LDFLAGS)
189 libscreen_plugin_la_LDFLAGS += "-Wl,-framework,OpenGL,-framework,ApplicationServices"
190 libvlc_LTLIBRARIES += libscreen_plugin.la
191 endif
192
193 ### VNC ###
194 SOURCES_libvnc = vnc.c
195
196 ### RDP / Remote Desktop ###
197 SOURCES_rdp = rdp.c
198
199 ### Optical media ###
200
201 SOURCES_cdda = \
202         cdda.c \
203         vcd/cdrom.c \
204         vcd/cdrom.h \
205         vcd/cdrom_internals.h
206 SOURCES_vcd = \
207         vcd/vcd.c \
208         vcd/cdrom.c \
209         vcd/cdrom.h \
210         vcd/cdrom_internals.h
211 SOURCES_vcdx = \
212         vcdx/access.h vcdx/access.c \
213         vcdx/vcd.c vcdx/vcd.h \
214         vcdx/vcdplayer.h vcdx/vcdplayer.c \
215         vcdx/info.c vcdx/info.h
216
217 SOURCES_dvdnav = dvdnav.c
218 SOURCES_dvdread = dvdread.c
219
220 libaccess_bd_plugin_la_SOURCES = bd/bd.c bd/mpls.c bd/mpls.h bd/clpi.c bd/clpi.h
221 libaccess_bd_plugin_la_CFLAGS = $(AM_CFLAGS)
222 libaccess_bd_plugin_la_LIBADD = $(AM_LIBADD)
223 libvlc_LTLIBRARIES += libaccess_bd_plugin.la
224
225
226 ### Digital TV ###
227
228 libdtv_plugin_la_SOURCES = \
229         dtv/dtv.h \
230         dtv/access.c
231 libdtv_plugin_la_CFLAGS = $(AM_CFLAGS)
232 libdtv_plugin_la_LIBADD = $(AM_LIBADD)
233
234 if HAVE_LINUX_DVB
235 libdtv_plugin_la_SOURCES += dtv/linux.c
236 libdtv_plugin_la_CFLAGS += -DHAVE_LINUX_DVB
237 if HAVE_DVBPSI
238 libdtv_plugin_la_SOURCES += dtv/en50221.c dtv/en50221.h
239 libdtv_plugin_la_CFLAGS += -DHAVE_DVBPSI $(DVBPSI_CFLAGS)
240 libdtv_plugin_la_LIBADD += $(DVBPSI_LIBS)
241 endif
242 libvlc_LTLIBRARIES += libdtv_plugin.la
243 endif
244
245 if HAVE_WIN32
246 # Work-around automake bug:
247 # Use an import library for C++ to retain C linker on other platforms.
248 libbda_la_SOURCES = dtv/bdadefs.h dtv/bdagraph.cpp dtv/bdagraph.hpp
249 libbda_la_CXXFLAGS = $(AM_CXXFLAGS)
250 libbda_la_LDFLAGS = -static
251 libbda_la_LIBADD = -lstrmiids -lole32 -loleaut32 -luuid
252 noinst_LTLIBRARIES += libbda.la
253
254 libdtv_plugin_la_DEPENDENCIES = libbda.la
255 libdtv_plugin_la_LIBADD += libbda.la -lstdc++
256 libvlc_LTLIBRARIES += libdtv_plugin.la
257 endif
258
259 # Old Linux DVB scanner
260 libdvb_plugin_la_SOURCES = \
261         dvb/access.c \
262         dvb/linux_dvb.c \
263         dvb/scan.c dvb/scan.h \
264         dvb/dvb.h
265 libdvb_plugin_la_CFLAGS = $(AM_CFLAGS)
266 libdvb_plugin_la_LIBADD = $(AM_LIBADD)
267 if HAVE_LINUX_DVB
268 if HAVE_DVBPSI
269 libvlc_LTLIBRARIES += libdvb_plugin.la
270 libdvb_plugin_la_CFLAGS += $(DVBPSI_CFLAGS)
271 libdvb_plugin_la_LIBADD += $(DVBPSI_LIBS)
272 endif
273 endif
274
275 ### Network streams ###
276
277 libaccess_smb_plugin_la_SOURCES = smb.c
278 libaccess_smb_plugin_la_CFLAGS = $(AM_CFLAGS) $(SMBCLIENT_CFLAGS)
279 libaccess_smb_plugin_la_LIBADD = $(AM_LIBADD) $(SMBCLIENT_LIBS)
280 if HAVE_WIN32
281 libaccess_smb_plugin_la_LIBADD += -lmpr
282 endif
283 libvlc_LTLIBRARIES += $(LTLIBaccess_smb)
284 EXTRA_LTLIBRARIES += libaccess_smb_plugin.la
285
286 SOURCES_access_udp = udp.c
287 SOURCES_access_tcp = tcp.c
288 SOURCES_access_http = http.c
289 SOURCES_access_ftp = ftp.c
290 SOURCES_access_sftp = sftp.c
291 SOURCES_live555 = live555.cpp mms/asf.c mms/buffer.c
292
293 libaccess_mms_plugin_la_SOURCES = \
294         mms/mms.c mms/mms.h \
295         mms/mmsh.c mms/mmsh.h \
296         mms/mmstu.c mms/mmstu.h \
297         mms/buffer.c mms/buffer.h \
298         mms/asf.h mms/asf.c \
299         ../demux/asf/libasf_guid.h
300 libaccess_mms_plugin_la_CFLAGS = $(AM_CFLAGS)
301 libaccess_mms_plugin_la_LIBADD = $(AM_LIBADD) $(SOCKET_LIBS)
302 libvlc_LTLIBRARIES += libaccess_mms_plugin.la
303
304 libaccess_realrtsp_plugin_la_SOURCES = \
305         rtsp/access.c \
306         rtsp/rtsp.c rtsp/rtsp.h \
307         rtsp/real.c rtsp/real.h \
308         rtsp/real_rmff.c rtsp/real_rmff.h \
309         rtsp/real_sdpplin.c rtsp/real_sdpplin.h \
310         rtsp/real_asmrp.c
311 libaccess_realrtsp_plugin_la_CFLAGS = $(AM_CFLAGS)
312 libaccess_realrtsp_plugin_la_LIBADD = $(AM_LIBADD) $(SOCKET_LIBS)
313 libvlc_LTLIBRARIES += $(LTLIBaccess_realrtsp)
314 EXTRA_LTLIBRARIES += libaccess_realrtsp_plugin.la