]> git.sesse.net Git - vlc/blob - modules/access/Modules.am
bluray: Fix a memory leak introduced in previous commit.
[vlc] / modules / access / Modules.am
1 # Automake forgets to add a proper tag to libtool with Objective-C files.
2 # Moreover Libtool should default tag to CC when none is specified but
3 # obviously does not. Here is a fix for that.
4 LIBTOOL=@LIBTOOL@ --tag=CC
5
6 BASE_SUBDIRS = bd mms rtp rtsp screen vcd vcdx zip
7 EXTRA_SUBDIRS = dshow
8 SUBDIRS = $(BASE_SUBDIRS)
9 DIST_SUBDIRS = $(BASE_SUBDIRS) $(EXTRA_SUBDIRS)
10
11 if HAVE_WIN32
12 SUBDIRS += dshow
13 endif
14
15 libfilesystem_plugin_la_SOURCES = \
16         fs.h \
17         file.c \
18         directory.c \
19         fs.c
20 libfilesystem_plugin_la_CFLAGS = $(AM_CFLAGS)
21 libfilesystem_plugin_la_LIBADD = $(AM_LIBADD)
22 if HAVE_WIN32
23 libfilesystem_plugin_la_LIBADD += -lshlwapi
24 endif
25 libfilesystem_plugin_la_DEPENDENCIES =
26
27 libidummy_plugin_la_SOURCES = idummy.c
28 libidummy_plugin_la_CFLAGS = $(AM_CFLAGS)
29 libidummy_plugin_la_LIBADD = $(AM_LIBADD)
30 libidummy_plugin_la_DEPENDENCIES =
31
32 libsdp_plugin_la_SOURCES = sdp.c
33 libsdp_plugin_la_CFLAGS = $(AM_CFLAGS)
34 libsdp_plugin_la_LIBADD = $(AM_LIBADD)
35 libsdp_plugin_la_DEPENDENCIES =
36
37 libaccess_smb_plugin_la_SOURCES = smb.c
38 libaccess_smb_plugin_la_CFLAGS = $(AM_CFLAGS)
39 libaccess_smb_plugin_la_LIBADD = $(AM_LIBADD) $(LIBS_access_smb)
40 if HAVE_WIN32
41 libaccess_smb_plugin_la_LIBADD += -lmpr
42 endif
43 libaccess_smb_plugin_la_DEPENDENCIES =
44 libvlc_LTLIBRARIES += $(LTLIBaccess_smb)
45
46 SOURCES_access_directory = directory.c
47 SOURCES_access_dv = dv.c
48 SOURCES_access_udp = udp.c
49 SOURCES_access_tcp = tcp.c
50 SOURCES_access_http = http.c
51 SOURCES_access_ftp = ftp.c
52 SOURCES_access_gnomevfs = gnomevfs.c
53 SOURCES_access_eyetv = eyetv.m
54 SOURCES_dvdnav = dvdnav.c
55 SOURCES_dvdread = dvdread.c
56 SOURCES_dc1394 = dc1394.c
57 SOURCES_pvr = pvr.c
58 SOURCES_linsys_sdi = linsys/linsys_sdi.c linsys/linsys_sdi.h
59 SOURCES_linsys_hdsdi = \
60         linsys/linsys_hdsdi.c \
61         linsys/linsys_sdiaudio.h \
62         linsys/linsys_sdivideo.h \
63         $(NULL)
64 SOURCES_cdda = \
65         cdda.c \
66         vcd/cdrom.c \
67         vcd/cdrom.h \
68         vcd/cdrom_internals.h \
69         $(NULL)
70 SOURCES_access_jack = jack.c
71 SOURCES_access_mtp = mtp.c
72 SOURCES_access_sftp = sftp.c
73 SOURCES_access_imem = imem.c
74 SOURCES_access_avio = avio.c avio.h
75 SOURCES_access_attachment = attachment.c
76 SOURCES_access_vdr = vdr.c
77 SOURCES_libbluray = bluray.c
78 SOURCES_decklink = decklink.cpp
79 SOURCES_htcpcp = htcpcp.c
80
81
82 SOURCES_access_rar = rar/rar.c rar/rar.h rar/access.c
83 SOURCES_stream_filter_rar = rar/rar.c rar/rar.h rar/stream.c
84
85 if HAVE_QTKIT
86 libqtcapture_plugin_la_SOURCES = qtcapture.m
87 libqtcapture_plugin_la_LIBADDD = $(AM_LIBADD)
88 libqtcapture_plugin_la_LDFLAGS = -Wl,-framework,Cocoa -Wl,-framework,QTKit -Wl,-framework,CoreVideo -Wl,-framework,QuartzCore
89 libqtcapture_plugin_la_DEPENDENCIES =
90
91 libqtsound_plugin_la_SOURCES = qtsound.m
92 libqtsound_plugin_la_LIBADD = $(AM_LIBADD)
93 libqtsound_plugin_la_LDFLAGS = -Wl,-framework,Cocoa -Wl,-framework,QTKit -Wl,-framework,CoreAudio
94 libqtsound_plugin_la_DEPENDENCIES =
95
96 libvlc_LTLIBRARIES += \
97         libqtcapture_plugin.la \
98         libqtsound_plugin.la \
99         $(NULL)
100 endif
101
102 libaccess_rtmp_plugin_la_SOURCES = \
103         rtmp/access.c \
104         rtmp/rtmp_amf_flv.c \
105         rtmp/rtmp_amf_flv.h \
106         $(NULL)
107 libaccess_rtmp_plugin_la_CFLAGS = $(AM_CFLAGS) \
108         -fno-strict-aliasing
109 libaccess_rtmp_plugin_la_LIBADD = $(AM_LIBADD)
110 libaccess_rtmp_plugin_la_DEPENDENCIES =
111
112 libvlc_LTLIBRARIES += \
113         libfilesystem_plugin.la \
114         libidummy_plugin.la \
115         libaccess_udp_plugin.la \
116         libaccess_tcp_plugin.la \
117         libaccess_http_plugin.la \
118         libaccess_ftp_plugin.la \
119         libaccess_imem_plugin.la \
120         libaccess_attachment_plugin.la \
121         libsdp_plugin.la \
122         libaccess_rar_plugin.la \
123         libstream_filter_rar_plugin.la \
124         libaccess_vdr_plugin.la \
125         $(NULL)
126
127 libaccess_oss_plugin_la_SOURCES = oss.c
128 libaccess_oss_plugin_la_CFLAGS = $(AM_CFLAGS)
129 libaccess_oss_plugin_la_LIBADD = $(AM_LIBADD) $(OSS_LIBS)
130 libaccess_oss_plugin_la_DEPENDENCIES =
131 if HAVE_OSS
132 libvlc_LTLIBRARIES += libaccess_oss_plugin.la
133 endif
134
135 libaccess_alsa_plugin_la_SOURCES = alsa.c
136 libaccess_alsa_plugin_la_CFLAGS = $(AM_CFLAGS) $(ALSA_CFLAGS)
137 libaccess_alsa_plugin_la_LIBADD = $(AM_LIBADD) $(ALSA_LIBS)
138 libaccess_alsa_plugin_la_DEPENDENCIES =
139 if HAVE_ALSA
140 libvlc_LTLIBRARIES += libaccess_alsa_plugin.la
141 endif
142
143 libpulsesrc_plugin_la_SOURCES = \
144         ../audio_output/vlcpulse.c \
145         ../audio_output/vlcpulse.h \
146         pulse.c
147 libpulsesrc_plugin_la_CFLAGS= $(AM_CFLAGS) $(PULSE_CFLAGS)
148 libpulsesrc_plugin_la_LIBADD = $(AM_LIBADD) $(PULSE_LIBS)
149 libpulsesrc_plugin_la_DEPENDENCIES =
150 if HAVE_PULSE
151 libvlc_LTLIBRARIES += libpulsesrc_plugin.la
152 endif
153
154 libaccess_shm_plugin_la_SOURCES = shm.c
155 libaccess_shm_plugin_la_CFLAGS = $(AM_CFLAGS)
156 libaccess_shm_plugin_la_LIBADD = $(AM_LIBADD)
157 libaccess_shm_plugin_la_DEPENDENCIES =
158 libvlc_LTLIBRARIES += $(LTLIBaccess_shm)
159
160 libv4l2_plugin_la_SOURCES = \
161         v4l2/video.c \
162         v4l2/demux.c \
163         v4l2/access.c \
164         v4l2/controls.c \
165         v4l2/v4l2.h
166 libv4l2_plugin_la_CFLAGS = $(AM_CFLAGS) $(LIBV4L2_CFLAGS)
167 libv4l2_plugin_la_LIBADD = $(AM_LIBADD) $(LIBV4L2_LIBS) $(LIBM)
168 libv4l2_plugin_la_DEPENDENCIES =
169 if HAVE_V4L2
170 libvlc_LTLIBRARIES += libv4l2_plugin.la
171 endif
172
173 libxcb_screen_plugin_la_SOURCES = screen/xcb.c
174 libxcb_screen_plugin_la_CFLAGS = $(AM_CFLAGS) \
175         $(XCB_CFLAGS) $(XCB_COMPOSITE_CFLAGS)
176 libxcb_screen_plugin_la_LIBADD = $(AM_LIBADD) \
177         $(XCB_LIBS) $(XCB_COMPOSITE_LIBS)
178 libxcb_screen_plugin_la_DEPENDENCIES =
179 if HAVE_XCB
180 libvlc_LTLIBRARIES += libxcb_screen_plugin.la
181 endif
182
183
184 ### Digital TV ###
185
186 libdtv_plugin_la_SOURCES = \
187         dtv/dtv.h \
188         dtv/access.c
189 libdtv_plugin_la_CFLAGS = $(AM_CFLAGS)
190 libdtv_plugin_la_LIBADD = $(AM_LIBADD)
191 libdtv_plugin_la_DEPENDENCIES =
192
193 if HAVE_LINUX_DVB
194 libdtv_plugin_la_SOURCES += dtv/linux.c
195 if HAVE_DVBPSI
196 libdtv_plugin_la_SOURCES += dtv/en50221.c dtv/en50221.h
197 libdtv_plugin_la_CFLAGS += -DHAVE_DVBPSI $(DVBPSI_CFLAGS)
198 libdtv_plugin_la_LIBADD += $(DVBPSI_LIBS)
199 endif
200 libvlc_LTLIBRARIES += libdtv_plugin.la
201 endif
202
203 if HAVE_WIN32
204 # Work-around automake bug:
205 # Use an import library for C++ to retain C linker on other platforms.
206 libbda_la_SOURCES = dtv/bdadefs.h dtv/bdagraph.cpp dtv/bdagraph.hpp
207 libbda_la_CXXFLAGS = $(AM_CXXFLAGS)
208 libbda_la_LDFLAGS = -static
209 libbda_la_LIBADD = -lstrmiids -lole32 -loleaut32 -luuid
210 noinst_LTLIBRARIES = libbda.la
211
212 libdtv_plugin_la_DEPENDENCIES += libbda.la
213 libdtv_plugin_la_LIBADD += libbda.la -lstdc++
214 libvlc_LTLIBRARIES += libdtv_plugin.la
215 endif
216
217
218 EXTRA_LTLIBRARIES += \
219         libaccess_rtmp_plugin.la \
220         libaccess_shm_plugin.la \
221         libaccess_smb_plugin.la \
222         $(NULL)