dshow is a c++ module, set CXXFLAGS
[vlc/gmpfix.git] / modules / access / Modules.am
blob60612408bd7405120e951b57fa5ec01e9b938ed4
1 SUBDIRS = rtp
2 noinst_LTLIBRARIES =
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
15 libidummy_plugin_la_SOURCES = idummy.c
16 libidummy_plugin_la_CFLAGS = $(AM_CFLAGS)
17 libidummy_plugin_la_LIBADD = $(AM_LIBADD)
19 libsdp_plugin_la_SOURCES = sdp.c
20 libsdp_plugin_la_CFLAGS = $(AM_CFLAGS)
21 libsdp_plugin_la_LIBADD = $(AM_LIBADD)
23 libtimecode_plugin_la_SOURCES = timecode.c
24 libtimecode_plugin_la_CFLAGS = $(AM_CFLAGS)
25 libtimecode_plugin_la_LIBADD = $(AM_LIBADD)
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
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
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
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
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
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
81 libvlc_LTLIBRARIES += \
82         libqtcapture_plugin.la \
83         libqtsound_plugin.la \
84         $(NULL)
85 endif
87 if HAVE_AVFOUNDATION
88 libavcapture_plugin_la_SOURCES = avcapture.m
89 libavcapture_plugin_la_LIBADD = $(AM_LIBADD)
90 libavcapture_plugin_la_LDFLAGS = -Wl,-framework,Cocoa -Wl,-framework,AVFoundation -Wl,-framework,CoreMedia
92 libvlc_LTLIBRARIES += \
93         libavcapture_plugin.la \
94         $(NULL)
95 endif
97 libvlc_LTLIBRARIES += \
98         libfilesystem_plugin.la \
99         libidummy_plugin.la \
100         libaccess_udp_plugin.la \
101         libaccess_tcp_plugin.la \
102         libaccess_http_plugin.la \
103         libaccess_ftp_plugin.la \
104         libaccess_imem_plugin.la \
105         libaccess_attachment_plugin.la \
106         libsdp_plugin.la \
107         libtimecode_plugin.la \
108         libaccess_rar_plugin.la \
109         libstream_filter_rar_plugin.la \
110         libaccess_vdr_plugin.la \
111         $(NULL)
114 ### Audio capture ###
116 libaccess_oss_plugin_la_SOURCES = oss.c
117 libaccess_oss_plugin_la_CFLAGS = $(AM_CFLAGS)
118 libaccess_oss_plugin_la_LIBADD = $(AM_LIBADD) $(OSS_LIBS)
119 if HAVE_OSS
120 libvlc_LTLIBRARIES += libaccess_oss_plugin.la
121 endif
123 libaccess_alsa_plugin_la_SOURCES = alsa.c
124 libaccess_alsa_plugin_la_CFLAGS = $(AM_CFLAGS) $(ALSA_CFLAGS)
125 libaccess_alsa_plugin_la_LIBADD = $(AM_LIBADD) $(ALSA_LIBS)
126 if HAVE_ALSA
127 libvlc_LTLIBRARIES += libaccess_alsa_plugin.la
128 endif
130 libpulsesrc_plugin_la_SOURCES = \
131         ../audio_output/vlcpulse.c \
132         ../audio_output/vlcpulse.h \
133         pulse.c
134 libpulsesrc_plugin_la_CFLAGS= $(AM_CFLAGS) $(PULSE_CFLAGS)
135 libpulsesrc_plugin_la_LIBADD = $(AM_LIBADD) $(PULSE_LIBS)
136 if HAVE_PULSE
137 libvlc_LTLIBRARIES += libpulsesrc_plugin.la
138 endif
141 ### Video capture ###
143 libshm_plugin_la_SOURCES = shm.c
144 libshm_plugin_la_CFLAGS = $(AM_CFLAGS)
145 libshm_plugin_la_LIBADD = $(AM_LIBADD) $(LIBM)
146 libvlc_LTLIBRARIES += libshm_plugin.la
148 libv4l2_plugin_la_SOURCES = \
149         v4l2/linux/videodev2.h \
150         v4l2/linux/v4l2-common.h \
151         v4l2/linux/v4l2-controls.h \
152         v4l2/v4l2.c \
153         v4l2/video.c \
154         v4l2/vbi.c \
155         v4l2/demux.c \
156         v4l2/access.c \
157         v4l2/radio.c \
158         v4l2/controls.c \
159         v4l2/lib.c \
160         v4l2/v4l2.h
161 libv4l2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/v4l2
162 libv4l2_plugin_la_CFLAGS = $(AM_CFLAGS) $(ZVBI_CFLAGS)
163 libv4l2_plugin_la_LIBADD = $(AM_LIBADD) $(LIBDL) $(LIBM) $(ZVBI_LIBS)
164 if HAVE_V4L2
165 libvlc_LTLIBRARIES += libv4l2_plugin.la
166 endif
168 libdshow_plugin_la_SOURCES = dshow/vlc_dshow.h dshow/dshow.cpp dshow/access.h \
169         dshow/filter.cpp dshow/filter.h dshow/crossbar.cpp
170 libdshow_plugin_la_CXXFLAGS = $(AM_CXXFLAGS)
171 libdshow_plugin_la_LIBADD = $(AM_LIBADD) -lole32 -loleaut32 -luuid -lstrmiids -lksuser
172 if HAVE_WIN32
173 libvlc_LTLIBRARIES += libdshow_plugin.la
174 endif
177 ### Screen grab ###
179 libxcb_screen_plugin_la_SOURCES = screen/xcb.c
180 libxcb_screen_plugin_la_CFLAGS = $(AM_CFLAGS) \
181         $(XCB_CFLAGS) $(XCB_COMPOSITE_CFLAGS) $(XCB_SHM_CFLAGS)
182 libxcb_screen_plugin_la_LIBADD = $(AM_LIBADD) \
183         $(XCB_LIBS) $(XCB_COMPOSITE_LIBS) $(XCB_SHM_LIBS)
184 if HAVE_XCB
185 libvlc_LTLIBRARIES += libxcb_screen_plugin.la
186 endif
188 libscreen_plugin_la_SOURCES = screen/screen.c screen/screen.h
189 libscreen_plugin_la_CFLAGS = $(AM_CFLAGS)
190 libscreen_plugin_la_LIBADD = $(AM_LIBADD)
191 if HAVE_WIN32
192 libscreen_plugin_la_SOURCES += screen/win32.c
193 libscreen_plugin_la_LIBADD += -lgdi32
194 libvlc_LTLIBRARIES += libscreen_plugin.la
195 endif
196 if HAVE_MAC_SCREEN
197 libscreen_plugin_la_SOURCES += screen/mac.c
198 libscreen_plugin_la_LDFLAGS = $(AM_LDFLAGS)
199 libscreen_plugin_la_LDFLAGS += "-Wl,-framework,OpenGL,-framework,ApplicationServices"
200 libvlc_LTLIBRARIES += libscreen_plugin.la
201 endif
203 ### VNC ###
204 SOURCES_libvnc = vnc.c
206 ### RDP / Remote Desktop ###
207 SOURCES_rdp = rdp.c
209 ### Optical media ###
211 SOURCES_cdda = \
212         cdda.c \
213         vcd/cdrom.c \
214         vcd/cdrom.h \
215         vcd/cdrom_internals.h
216 SOURCES_vcd = \
217         vcd/vcd.c \
218         vcd/cdrom.c \
219         vcd/cdrom.h \
220         vcd/cdrom_internals.h
221 SOURCES_vcdx = \
222         vcdx/access.h vcdx/access.c \
223         vcdx/vcd.c vcdx/vcd.h \
224         vcdx/vcdplayer.h vcdx/vcdplayer.c \
225         vcdx/info.c vcdx/info.h
227 SOURCES_dvdnav = dvdnav.c
228 SOURCES_dvdread = dvdread.c
230 libaccess_bd_plugin_la_SOURCES = bd/bd.c bd/mpls.c bd/mpls.h bd/clpi.c bd/clpi.h
231 libaccess_bd_plugin_la_CFLAGS = $(AM_CFLAGS)
232 libaccess_bd_plugin_la_LIBADD = $(AM_LIBADD)
233 libvlc_LTLIBRARIES += libaccess_bd_plugin.la
236 ### Digital TV ###
238 libdtv_plugin_la_SOURCES = \
239         dtv/dtv.h \
240         dtv/access.c
241 libdtv_plugin_la_CFLAGS = $(AM_CFLAGS)
242 libdtv_plugin_la_LIBADD = $(AM_LIBADD)
244 if HAVE_LINUX_DVB
245 libdtv_plugin_la_SOURCES += dtv/linux.c
246 libdtv_plugin_la_CFLAGS += -DHAVE_LINUX_DVB
247 if HAVE_DVBPSI
248 libdtv_plugin_la_SOURCES += dtv/en50221.c dtv/en50221.h ../mux/mpeg/dvbpsi_compat.h
249 libdtv_plugin_la_CFLAGS += -DHAVE_DVBPSI $(DVBPSI_CFLAGS)
250 libdtv_plugin_la_LIBADD += $(DVBPSI_LIBS)
251 endif
252 libvlc_LTLIBRARIES += libdtv_plugin.la
253 endif
255 if HAVE_WIN32
256 # Work-around automake bug:
257 # Use an import library for C++ to retain C linker on other platforms.
258 libbda_la_SOURCES = dtv/bdadefs.h dtv/bdagraph.cpp dtv/bdagraph.hpp
259 libbda_la_CXXFLAGS = $(AM_CXXFLAGS)
260 libbda_la_LDFLAGS = -static
261 libbda_la_LIBADD = -lstrmiids -lole32 -loleaut32 -luuid
262 noinst_LTLIBRARIES += libbda.la
264 libdtv_plugin_la_DEPENDENCIES = libbda.la
265 libdtv_plugin_la_LIBADD += libbda.la -lstdc++
266 libvlc_LTLIBRARIES += libdtv_plugin.la
267 endif
269 # Old Linux DVB scanner
270 libdvb_plugin_la_SOURCES = \
271         dvb/access.c \
272         dvb/linux_dvb.c \
273         dvb/scan.c dvb/scan.h \
274         dvb/dvb.h
275 libdvb_plugin_la_CFLAGS = $(AM_CFLAGS)
276 libdvb_plugin_la_LIBADD = $(AM_LIBADD)
277 if HAVE_LINUX_DVB
278 if HAVE_DVBPSI
279 libdvb_plugin_la_SOURCES += ../mux/mpeg/dvbpsi_compat.h
280 libvlc_LTLIBRARIES += libdvb_plugin.la
281 libdvb_plugin_la_CFLAGS += $(DVBPSI_CFLAGS)
282 libdvb_plugin_la_LIBADD += $(DVBPSI_LIBS)
283 endif
284 endif
286 ### Network streams ###
288 libaccess_smb_plugin_la_SOURCES = smb.c
289 libaccess_smb_plugin_la_CFLAGS = $(AM_CFLAGS) $(SMBCLIENT_CFLAGS)
290 libaccess_smb_plugin_la_LIBADD = $(AM_LIBADD) $(SMBCLIENT_LIBS)
291 if HAVE_WIN32
292 libaccess_smb_plugin_la_LIBADD += -lmpr
293 endif
294 libvlc_LTLIBRARIES += $(LTLIBaccess_smb)
295 EXTRA_LTLIBRARIES += libaccess_smb_plugin.la
297 SOURCES_access_udp = udp.c
298 SOURCES_access_tcp = tcp.c
299 SOURCES_access_http = http.c
300 SOURCES_access_ftp = ftp.c
301 SOURCES_access_sftp = sftp.c
302 SOURCES_live555 = live555.cpp mms/asf.c mms/buffer.c
304 libaccess_mms_plugin_la_SOURCES = \
305         mms/mms.c mms/mms.h \
306         mms/mmsh.c mms/mmsh.h \
307         mms/mmstu.c mms/mmstu.h \
308         mms/buffer.c mms/buffer.h \
309         mms/asf.h mms/asf.c \
310         ../demux/asf/libasf_guid.h
311 libaccess_mms_plugin_la_CFLAGS = $(AM_CFLAGS)
312 libaccess_mms_plugin_la_LIBADD = $(AM_LIBADD) $(SOCKET_LIBS)
313 libvlc_LTLIBRARIES += libaccess_mms_plugin.la
315 libaccess_realrtsp_plugin_la_SOURCES = \
316         rtsp/access.c \
317         rtsp/rtsp.c rtsp/rtsp.h \
318         rtsp/real.c rtsp/real.h \
319         rtsp/real_rmff.c rtsp/real_rmff.h \
320         rtsp/real_sdpplin.c rtsp/real_sdpplin.h \
321         rtsp/real_asmrp.c
322 libaccess_realrtsp_plugin_la_CFLAGS = $(AM_CFLAGS)
323 libaccess_realrtsp_plugin_la_LIBADD = $(AM_LIBADD) $(SOCKET_LIBS)
324 libvlc_LTLIBRARIES += $(LTLIBaccess_realrtsp)
325 EXTRA_LTLIBRARIES += libaccess_realrtsp_plugin.la