wl_screenshooter: Wayland screen grabber
[vlc.git] / modules / access / Makefile.am
1 accessdir = $(pluginsdir)/access
2 access_LTLIBRARIES =
3 EXTRA_LTLIBRARIES =
4
5 AM_CPPFLAGS += -I$(srcdir)/access
6
7 ### Files ###
8
9 libattachment_plugin_la_SOURCES = access/attachment.c
10 access_LTLIBRARIES += libattachment_plugin.la
11
12 libdcp_plugin_la_SOURCES = access/dcp/dcpparser.h access/dcp/dcp.cpp access/dcp/dcpparser.cpp access/dcp/dcpdecrypt.cpp
13 if HAVE_ASDCP
14 libdcp_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(ASDCP_CFLAGS)
15 libdcp_plugin_la_LIBADD = $(AM_LIBADD) $(ASDCP_LIBS)
16 if HAVE_GCRYPT
17 libdcp_plugin_la_CPPFLAGS += $(GCRYPT_CFLAGS)
18 libdcp_plugin_la_LIBADD += $(GCRYPT_LIBS)
19 access_LTLIBRARIES += libdcp_plugin.la
20 endif
21 endif
22
23 libfilesystem_plugin_la_SOURCES = access/fs.h access/file.c access/directory.c access/fs.c
24 libfilesystem_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
25 if HAVE_WIN32
26 libfilesystem_plugin_la_LIBADD = -lshlwapi
27 endif
28 access_LTLIBRARIES += libfilesystem_plugin.la
29
30 libidummy_plugin_la_SOURCES = access/idummy.c
31 access_LTLIBRARIES += libidummy_plugin.la
32
33 libimem_plugin_la_SOURCES = access/imem.c
34 libimem_plugin_la_LIBADD = $(LIBM)
35 access_LTLIBRARIES += libimem_plugin.la
36
37 librar_plugin_la_SOURCES = access/rar/rar.c access/rar/rar.h \
38         access/rar/access.c access/rar/stream.c access/rar/module.c
39 librar_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
40 access_LTLIBRARIES += librar_plugin.la
41
42 libsdp_plugin_la_SOURCES = access/sdp.c
43 access_LTLIBRARIES += libsdp_plugin.la
44
45 libtimecode_plugin_la_SOURCES = access/timecode.c
46 access_LTLIBRARIES += libtimecode_plugin.la
47
48 libvdr_plugin_la_SOURCES = access/vdr.c
49 access_LTLIBRARIES += libvdr_plugin.la
50
51 libzip_plugin_la_SOURCES = access/zip/zip.h access/zip/zipstream.c access/zip/zipaccess.c
52 libzip_plugin_la_CFLAGS = $(AM_CFLAGS) $(MINIZIP_CFLAGS)
53 libzip_plugin_la_LIBADD = $(MINIZIP_LIBS)
54 libunzip_la_SOURCES = access/zip/unzip/unzip.c access/zip/unzip/unzip.h access/zip/unzip/crypt.h \
55         access/zip/unzip/ioapi.c access/zip/unzip/ioapi.h
56 libunzip_la_LIBADD = -lz
57 libunzip_la_LDFLAGS = -static
58 if HAVE_ZLIB
59 access_LTLIBRARIES += libzip_plugin.la
60 if !HAVE_MINIZIP
61 noinst_LTLIBRARIES += libunzip.la
62 libzip_plugin_la_CFLAGS += -I$(srcdir)/access/zip/unzip
63 libzip_plugin_la_LIBADD += libunzip.la
64 endif
65 endif
66
67 libaccess_archive_plugin_la_SOURCES = access/archive/access.c access/archive/stream.c \
68                                         access/archive/archive.h access/archive/archive.c
69 libaccess_archive_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
70 libaccess_archive_plugin_la_LIBADD = $(ARCHIVE_LIBS)
71 access_LTLIBRARIES += $(LTLIBaccess_archive)
72 EXTRA_LTLIBRARIES += libaccess_archive_plugin.la
73
74 ### Audio capture ###
75
76 libaccess_alsa_plugin_la_SOURCES = access/alsa.c
77 libaccess_alsa_plugin_la_CFLAGS = $(AM_CFLAGS) $(ALSA_CFLAGS)
78 libaccess_alsa_plugin_la_LIBADD = $(ALSA_LIBS)
79 if HAVE_ALSA
80 access_LTLIBRARIES += libaccess_alsa_plugin.la
81 endif
82
83 libaccess_oss_plugin_la_SOURCES = access/oss.c
84 libaccess_oss_plugin_la_LIBADD = $(OSS_LIBS)
85 if HAVE_OSS
86 access_LTLIBRARIES += libaccess_oss_plugin.la
87 endif
88
89 libaccess_jack_plugin_la_SOURCES = access/jack.c
90 libaccess_jack_plugin_la_CFLAGS = $(AM_CFLAGS) $(JACK_CFLAGS)
91 libaccess_jack_plugin_la_LIBADD = $(JACK_LIBS)
92 if HAVE_JACK
93 access_LTLIBRARIES += libaccess_jack_plugin.la
94 endif
95
96 libpulsesrc_plugin_la_SOURCES = access/pulse.c
97 libpulsesrc_plugin_la_CFLAGS= $(AM_CFLAGS) $(PULSE_CFLAGS)
98 libpulsesrc_plugin_la_LIBADD = libvlc_pulse.la $(PULSE_LIBS)
99 if HAVE_PULSE
100 access_LTLIBRARIES += libpulsesrc_plugin.la
101 endif
102
103 libqtsound_plugin_la_SOURCES = access/qtsound.m
104 libqtsound_plugin_la_LDFLAGS = -Wl,-framework,QTKit -Wl,-framework,CoreAudio
105 if HAVE_QTKIT
106 access_LTLIBRARIES += libqtsound_plugin.la
107 endif
108
109
110 ### Video capture ###
111
112 libavcapture_plugin_la_SOURCES = access/avcapture.m
113 libavcapture_plugin_la_LDFLAGS = \
114         -Wl,-framework,AVFoundation -Wl,-framework,CoreMedia
115 if HAVE_AVFOUNDATION
116 access_LTLIBRARIES += libavcapture_plugin.la
117 endif
118
119 libdc1394_plugin_la_SOURCES = access/dc1394.c
120 libdc1394_plugin_la_CFLAGS = $(AM_CFLAGS) $(DC1394_CFLAGS)
121 libdc1394_plugin_la_LIBADD = $(DC1394_LIBS)
122 libdc1394_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
123 access_LTLIBRARIES += $(LTLIBdc1394)
124 EXTRA_LTLIBRARIES += libdc1394_plugin.la
125
126 libdv1394_plugin_la_SOURCES = access/dv.c
127 libdv1394_plugin_la_CFLAGS = $(AM_CFLAGS) $(DV1394_CFLAGS)
128 libdv1394_plugin_la_LIBADD = $(DV1394_LIBS) $(LIBPTHREAD)
129 libdv1394_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
130 access_LTLIBRARIES += $(LTLIBdv1394)
131 EXTRA_LTLIBRARIES += libdv1394_plugin.la
132
133 liblinsys_hdsdi_plugin_la_SOURCES = \
134         access/linsys/linsys_sdiaudio.h \
135         access/linsys/linsys_sdivideo.h \
136         access/linsys/linsys_hdsdi.c
137 liblinsys_hdsdi_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
138 liblinsys_sdi_plugin_la_SOURCES = access/linsys/linsys_sdi.c access/linsys/linsys_sdi.h
139 liblinsys_sdi_plugin_la_CFLAGS = $(AM_CFLAGS) $(LINSYS_SDI_CFLAGS)
140 liblinsys_sdi_plugin_la_LIBADD = $(LINSYS_SDI_LIBS)
141 liblinsys_sdi_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
142 access_LTLIBRARIES += $(LTLIBlinsys_hdsdi) $(LTLIBlinsys_sdi)
143 EXTRA_LTLIBRARIES += liblinsys_hdsdi_plugin.la liblinsys_sdi_plugin.la
144
145 libdecklink_plugin_la_SOURCES = access/decklink.cpp access/sdi.c access/sdi.h
146 libdecklink_plugin_la_CXXFLAGS = $(AM_CFLAGS) $(CPPFLAGS_decklink)
147 libdecklink_plugin_la_LIBADD = $(LIBS_decklink) -ldl
148 if HAVE_DECKLINK
149 access_LTLIBRARIES += libdecklink_plugin.la
150 endif
151
152 libshm_plugin_la_SOURCES = access/shm.c
153 libshm_plugin_la_LIBADD = $(LIBM)
154 access_LTLIBRARIES += libshm_plugin.la
155
156 libqtcapture_plugin_la_SOURCES = access/qtcapture.m
157 libqtcapture_plugin_la_LDFLAGS = \
158         -Wl,-framework,QTKit -Wl,-framework,CoreVideo -Wl,-framework,QuartzCore
159 if HAVE_QTKIT
160 access_LTLIBRARIES += libqtcapture_plugin.la
161 endif
162
163 libv4l2_plugin_la_SOURCES = \
164         access/v4l2/linux/videodev2.h \
165         access/v4l2/linux/v4l2-common.h \
166         access/v4l2/linux/v4l2-controls.h \
167         access/v4l2/v4l2.c \
168         access/v4l2/video.c \
169         access/v4l2/vbi.c \
170         access/v4l2/demux.c \
171         access/v4l2/access.c \
172         access/v4l2/radio.c \
173         access/v4l2/controls.c \
174         access/v4l2/lib.c \
175         access/v4l2/v4l2.h
176 libv4l2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/access/v4l2
177 libv4l2_plugin_la_CFLAGS = $(AM_CFLAGS) $(ZVBI_CFLAGS)
178 libv4l2_plugin_la_LIBADD = $(LIBDL) $(LIBM) $(ZVBI_LIBS)
179 if HAVE_V4L2
180 access_LTLIBRARIES += libv4l2_plugin.la
181 endif
182
183 libdshow_plugin_la_SOURCES = access/dshow/vlc_dshow.h access/dshow/dshow.cpp access/dshow/access.h \
184         access/dshow/filter.cpp access/dshow/filter.h access/dshow/crossbar.cpp
185 libdshow_plugin_la_LIBADD = -lole32 -loleaut32 -luuid -lstrmiids -lksuser
186 if HAVE_WIN32
187 access_LTLIBRARIES += libdshow_plugin.la
188 endif
189
190
191 ### Screen grab ###
192
193 libxcb_screen_plugin_la_SOURCES = access/screen/xcb.c
194 libxcb_screen_plugin_la_CFLAGS = $(AM_CFLAGS) \
195         $(XCB_CFLAGS) $(XCB_COMPOSITE_CFLAGS) $(XCB_SHM_CFLAGS)
196 libxcb_screen_plugin_la_LIBADD = $(XCB_LIBS) $(XCB_COMPOSITE_LIBS) $(XCB_SHM_LIBS)
197 if HAVE_XCB
198 access_LTLIBRARIES += libxcb_screen_plugin.la
199 endif
200
201 libwl_screenshooter_plugin_la_DEPENDENCIES = \
202         access/screen/screenshooter-client-protocol.h
203 libwl_screenshooter_plugin_la_SOURCES = \
204         access/screen/wayland.c
205 nodist_libwl_screenshooter_plugin_la_SOURCES = \
206         access/screen/screenshooter-protocol.c
207 libwl_screenshooter_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -Iaccess/screen
208 libwl_screenshooter_plugin_la_CFLAGS = $(WAYLAND_CLIENT_CFLAGS)
209 libwl_screenshooter_plugin_la_LIBADD = $(WAYLAND_CLIENT_LIBS) \
210         $(LIBPTHREAD) $(LIBM)
211 EXTRA_DIST += access/screen/screenshooter.xml
212 CLEANFILES += $(nodist_libwl_screenshooter_plugin_la_SOURCES)
213 if HAVE_WAYLAND
214 access_LTLIBRARIES += libwl_screenshooter_plugin.la
215 endif
216
217 libscreen_plugin_la_SOURCES = access/screen/screen.c access/screen/screen.h
218 libscreen_plugin_la_LDFLAGS = $(AM_LDFLAGS)
219 if HAVE_WIN32
220 libscreen_plugin_la_SOURCES += access/screen/win32.c
221 libscreen_plugin_la_LIBADD = -lgdi32
222 access_LTLIBRARIES += libscreen_plugin.la
223 endif
224 if HAVE_MAC_SCREEN
225 libscreen_plugin_la_SOURCES += access/screen/mac.c
226 libscreen_plugin_la_LDFLAGS += "-Wl,-framework,OpenGL,-framework,ApplicationServices"
227 access_LTLIBRARIES += libscreen_plugin.la
228 endif
229
230 librdp_plugin_la_SOURCES = access/rdp.c
231 librdp_plugin_la_CFLAGS = $(AM_CFLAGS) $(FREERDP_CFLAGS)
232 librdp_plugin_la_LIBADD = $(FREERDP_LIBS)
233 librdp_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
234 access_LTLIBRARIES += $(LTLIBrdp)
235 EXTRA_LTLIBRARIES += librdp_plugin.la
236
237 libvnc_plugin_la_SOURCES = access/vnc.c
238 libvnc_plugin_la_CFLAGS = $(AM_CFLAGS) $(VNC_CFLAGS)
239 libvnc_plugin_la_LIBADD = $(VNC_LIBS)
240 libvnc_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
241 access_LTLIBRARIES += $(LTLIBvnc)
242 EXTRA_LTLIBRARIES += libvnc_plugin.la
243
244
245 ### Optical media ###
246
247 libcdda_plugin_la_SOURCES = access/cdda.c access/vcd/cdrom.c access/vcd/cdrom.h access/vcd/cdrom_internals.h
248 libcdda_plugin_la_CFLAGS = $(AM_CFLAGS) $(LIBCDDB_CFLAGS)
249 libcdda_plugin_la_LIBADD = $(LIBCDDB_LIBS)
250 libcdda_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
251 if HAVE_DARWIN
252 libcdda_plugin_la_LIBADD += -liconv
253 libcdda_plugin_la_LDFLAGS += -Wl,-framework,IOKit,-framework,CoreFoundation
254 endif
255 EXTRA_LTLIBRARIES += libcdda_plugin.la
256 access_LTLIBRARIES += $(LTLIBcdda)
257
258 libvcd_plugin_la_SOURCES = access/vcd/vcd.c access/vcd/cdrom.c access/vcd/cdrom.h access/vcd/cdrom_internals.h
259 libvcd_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
260 if HAVE_DARWIN
261 libvcd_plugin_la_LIBADD = -liconv
262 libvcd_plugin_la_LDFLAGS += -Wl,-framework,IOKit,-framework,CoreFoundation
263 endif
264 EXTRA_LTLIBRARIES += libvcd_plugin.la
265 access_LTLIBRARIES += $(LTLIBvcd)
266
267 libvcdx_plugin_la_SOURCES = \
268         access/vcdx/access.h access/vcdx/access.c \
269         access/vcdx/vcd.c access/vcdx/vcd.h \
270         access/vcdx/vcdplayer.h access/vcdx/vcdplayer.c \
271         access/vcdx/info.c access/vcdx/info.h
272 libvcdx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
273 libvcdx_plugin_la_LIBADD = $(VCDX_LIBS)
274 if HAVE_WIN32
275 libvcdx_plugin_la_LIBADD += -lwinmm
276 endif
277 libvcdx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
278 if HAVE_DARWIN
279 libvcdx_plugin_la_LDFLAGS += -Wl,-framework,IOKit,-framework,CoreFoundation
280 endif
281 EXTRA_LTLIBRARIES += libvcdx_plugin.la
282 access_LTLIBRARIES += $(LTLIBvcdx)
283
284 libdvdnav_plugin_la_SOURCES = access/dvdnav.c
285 libdvdnav_plugin_la_CFLAGS = $(AM_CFLAGS) $(DVDNAV_CFLAGS)
286 libdvdnav_plugin_la_LIBADD = $(DVDNAV_LIBS)
287 libdvdnav_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
288 if HAVE_DARWIN
289 libdvdnav_plugin_la_LDFLAGS += -Wl,-framework,IOKit,-framework,CoreFoundation
290 endif
291 access_LTLIBRARIES += $(LTLIBdvdnav)
292 EXTRA_LTLIBRARIES += libdvdnav_plugin.la
293
294 libdvdread_plugin_la_SOURCES = access/dvdread.c
295 libdvdread_plugin_la_CFLAGS = $(AM_CFLAGS) $(DVDREAD_CFLAGS)
296 libdvdread_plugin_la_LIBADD = $(DVDREAD_LIBS)
297 libdvdread_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
298 if HAVE_DARWIN
299 libdvdread_plugin_la_LDFLAGS += -Wl,-framework,IOKit,-framework,CoreFoundation
300 endif
301 access_LTLIBRARIES += $(LTLIBdvdread)
302 EXTRA_LTLIBRARIES += libdvdread_plugin.la
303
304 liblibbluray_plugin_la_SOURCES = access/bluray.c
305 liblibbluray_plugin_la_CFLAGS = $(AM_CFLAGS) $(BLURAY_CFLAGS)
306 liblibbluray_plugin_la_LIBADD = $(BLURAY_LIBS)
307 liblibbluray_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
308 access_LTLIBRARIES += $(LTLIBlibbluray)
309 EXTRA_LTLIBRARIES += liblibbluray_plugin.la
310
311 libaccess_bd_plugin_la_SOURCES = access/bd/bd.c access/bd/mpls.c access/bd/mpls.h access/bd/clpi.c access/bd/clpi.h
312 access_LTLIBRARIES += libaccess_bd_plugin.la
313
314
315 ### Digital TV ###
316
317 libdtv_plugin_la_SOURCES = \
318         access/dtv/dtv.h \
319         access/dtv/access.c
320 libdtv_plugin_la_CFLAGS = $(AM_CFLAGS)
321
322 if HAVE_LINUX_DVB
323 libdtv_plugin_la_SOURCES += access/dtv/linux.c
324 libdtv_plugin_la_CFLAGS += -DHAVE_LINUX_DVB
325 if HAVE_DVBPSI
326 libdtv_plugin_la_SOURCES += access/dtv/en50221.c access/dtv/en50221.h mux/mpeg/dvbpsi_compat.h
327 libdtv_plugin_la_CFLAGS += -DHAVE_DVBPSI $(DVBPSI_CFLAGS)
328 libdtv_plugin_la_LIBADD = $(DVBPSI_LIBS)
329 endif
330 access_LTLIBRARIES += libdtv_plugin.la
331 endif
332
333 if HAVE_WIN32
334 # Work-around automake bug:
335 # Use an import library for C++ to retain C linker on other platforms.
336 libbda_la_SOURCES = access/dtv/bdadefs.h access/dtv/bdagraph.cpp access/dtv/bdagraph.hpp
337 libbda_la_LDFLAGS = -static
338 libbda_la_LIBADD = -lstrmiids -lole32 -loleaut32 -luuid
339 noinst_LTLIBRARIES += libbda.la
340
341 libdtv_plugin_la_DEPENDENCIES = libbda.la
342 libdtv_plugin_la_LIBADD = libbda.la -lstdc++
343 access_LTLIBRARIES += libdtv_plugin.la
344 endif
345
346 # Old Linux DVB scanner
347 libdvb_plugin_la_SOURCES = \
348         access/dvb/access.c \
349         access/dvb/linux_dvb.c \
350         access/dvb/scan.c access/dvb/scan.h \
351         access/dvb/dvb.h
352 libdvb_plugin_la_CFLAGS = $(AM_CFLAGS)
353 if HAVE_LINUX_DVB
354 if HAVE_DVBPSI
355 libdvb_plugin_la_SOURCES += mux/mpeg/dvbpsi_compat.h
356 access_LTLIBRARIES += libdvb_plugin.la
357 libdvb_plugin_la_CFLAGS += $(DVBPSI_CFLAGS)
358 libdvb_plugin_la_LIBADD = $(DVBPSI_LIBS)
359 endif
360 endif
361
362 libaccess_eyetv_plugin_la_SOURCES = access/eyetv.m
363 libaccess_eyetv_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)' \
364         -Wl,-framework,Foundation
365 access_LTLIBRARIES += $(LTLIBaccess_eyetv)
366 EXTRA_LTLIBRARIES += libaccess_eyetv_plugin.la
367
368
369 ### Network streams ###
370
371 libftp_plugin_la_SOURCES = access/ftp.c
372 libftp_plugin_la_LIBADD = $(SOCKET_LIBS)
373 access_LTLIBRARIES += libftp_plugin.la
374
375 libhttp_plugin_la_SOURCES = access/http.c
376 libhttp_plugin_la_LIBADD = $(SOCKET_LIBS)
377 if HAVE_ZLIB
378 libhttp_plugin_la_LIBADD += -lz
379 endif
380 access_LTLIBRARIES += libhttp_plugin.la
381
382 liblive555_plugin_la_SOURCES = access/live555.cpp access/mms/asf.c access/mms/buffer.c
383 liblive555_plugin_la_CXXFLAGS = $(AM_CXXFLAGS) $(CXXFLAGS_live555)
384 liblive555_plugin_la_LIBADD = $(LIBS_live555)
385 liblive555_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)' \
386         $(LDFLAGS_live555)
387 access_LTLIBRARIES += $(LTLIBlive555)
388 EXTRA_LTLIBRARIES += liblive555_plugin.la
389
390 libaccess_mms_plugin_la_SOURCES = \
391         access/mms/mms.c access/mms/mms.h \
392         access/mms/mmsh.c access/mms/mmsh.h \
393         access/mms/mmstu.c access/mms/mmstu.h \
394         access/mms/buffer.c access/mms/buffer.h \
395         access/mms/asf.h access/mms/asf.c \
396         demux/asf/libasf_guid.h
397 libaccess_mms_plugin_la_CFLAGS = $(AM_CFLAGS)
398 libaccess_mms_plugin_la_LIBADD = $(SOCKET_LIBS)
399 access_LTLIBRARIES += libaccess_mms_plugin.la
400
401 libsmb_plugin_la_SOURCES = access/smb.c
402 libsmb_plugin_la_CFLAGS = $(AM_CFLAGS) $(SMBCLIENT_CFLAGS)
403 libsmb_plugin_la_LIBADD = $(SMBCLIENT_LIBS)
404 if HAVE_WIN32
405 libsmb_plugin_la_LIBADD += -lmpr
406 endif
407 libsmb_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
408 access_LTLIBRARIES += $(LTLIBsmb)
409 EXTRA_LTLIBRARIES += libsmb_plugin.la
410
411 libdsm_plugin_la_SOURCES = access/dsm/access.c access/dsm/common.h \
412         access/dsm/browser.c access/dsm/sd.c
413 libdsm_plugin_la_CFLAGS = $(AM_CFLAGS) $(DSM_CFLAGS)
414 libdsm_plugin_la_LIBADD = $(DSM_LIBS)
415 libdsm_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)'
416 access_LTLIBRARIES += $(LTLIBdsm)
417 EXTRA_LTLIBRARIES += libdsm_plugin.la
418
419 libtcp_plugin_la_SOURCES = access/tcp.c
420 libtcp_plugin_la_LIBADD = $(SOCKET_LIBS)
421 access_LTLIBRARIES += libtcp_plugin.la
422
423 libudp_plugin_la_SOURCES = access/udp.c
424 libudp_plugin_la_LIBADD = $(SOCKET_LIBS) $(LIBPTHREAD)
425 access_LTLIBRARIES += libudp_plugin.la
426
427 libsftp_plugin_la_SOURCES = access/sftp.c
428 libsftp_plugin_la_CFLAGS = $(AM_CFLAGS) $(SFTP_CFLAGS)
429 libsftp_plugin_la_LIBADD = $(SFTP_LIBS)
430 libsftp_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
431 access_LTLIBRARIES += $(LTLIBsftp)
432 EXTRA_LTLIBRARIES += libsftp_plugin.la
433
434 libaccess_realrtsp_plugin_la_SOURCES = \
435         access/rtsp/access.c \
436         access/rtsp/rtsp.c access/rtsp/rtsp.h \
437         access/rtsp/real.c access/rtsp/real.h \
438         access/rtsp/real_rmff.c access/rtsp/real_rmff.h \
439         access/rtsp/real_sdpplin.c access/rtsp/real_sdpplin.h \
440         access/rtsp/real_asmrp.c
441 libaccess_realrtsp_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
442 libaccess_realrtsp_plugin_la_LIBADD = $(SOCKET_LIBS)
443 libaccess_realrtsp_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
444 access_LTLIBRARIES += $(LTLIBaccess_realrtsp)
445 EXTRA_LTLIBRARIES += libaccess_realrtsp_plugin.la
446
447 libavio_plugin_la_SOURCES = access/avio.c access/avio.h
448 libavio_plugin_la_CFLAGS = $(AM_CFLAGS) $(AVFORMAT_CFLAGS) $(AVUTIL_CFLAGS)
449 libavio_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(SYMBOLIC_LDFLAGS)
450 libavio_plugin_la_LIBADD = $(AVFORMAT_LIBS) $(AVUTIL_LIBS) $(LIBM)
451 if HAVE_AVFORMAT
452 if !MERGE_FFMPEG
453 access_LTLIBRARIES += libavio_plugin.la
454 endif
455 endif
456
457
458 ### Misc ###
459
460 libgnomevfs_plugin_la_SOURCES = access/gnomevfs.c
461 libgnomevfs_plugin_la_CFLAGS = $(AM_CFLAGS) $(GNOMEVFS_CFLAGS)
462 libgnomevfs_plugin_la_LIBADD = $(GNOMEVFS_LIBS)
463 libgnomevfs_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
464 access_LTLIBRARIES += $(LTLIBgnomevfs)
465 EXTRA_LTLIBRARIES += libgnomevfs_plugin.la
466
467 libaccess_mtp_plugin_la_SOURCES = access/mtp.c
468 libaccess_mtp_plugin_la_CFLAGS = $(AM_CFLAGS) $(MTP_CFLAGS)
469 libaccess_mtp_plugin_la_LIBADD = $(MTP_LIBS)
470 libaccess_mtp_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
471 access_LTLIBRARIES += $(LTLIBaccess_mtp)
472 EXTRA_LTLIBRARIES += libaccess_mtp_plugin.la