41c7871a2991e89d130cefa713cc3f5ce1422d67
[vlc.git] / modules / services_discovery / Makefile.am
1 sddir = $(pluginsdir)/services_discovery
2 sd_LTLIBRARIES =
3
4 libmediadirs_plugin_la_SOURCES = services_discovery/mediadirs.c
5 sd_LTLIBRARIES += libmediadirs_plugin.la
6
7 libpodcast_plugin_la_SOURCES = services_discovery/podcast.c
8 sd_LTLIBRARIES += libpodcast_plugin.la
9
10 libsap_plugin_la_SOURCES = services_discovery/sap.c
11 libsap_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_sap)
12 libsap_plugin_la_LIBADD = $(LIBS_sap) $(SOCKET_LIBS)
13 sd_LTLIBRARIES += libsap_plugin.la
14
15 libavahi_plugin_la_SOURCES = services_discovery/avahi.c
16 libavahi_plugin_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
17 libavahi_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)'
18 libavahi_plugin_la_LIBADD = $(AVAHI_LIBS)
19 EXTRA_LTLIBRARIES += libavahi_plugin.la
20 sd_LTLIBRARIES += $(LTLIBavahi)
21
22 libmtp_plugin_la_SOURCES = services_discovery/mtp.c
23 libmtp_plugin_la_CFLAGS = $(AM_CFLAGS) $(MTP_CFLAGS)
24 libmtp_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)'
25 libmtp_plugin_la_LIBADD = $(MTP_LIBS)
26 EXTRA_LTLIBRARIES += libmtp_plugin.la
27 sd_LTLIBRARIES += $(LTLIBmtp)
28
29 libupnp_plugin_la_SOURCES = services_discovery/upnp.cpp services_discovery/upnp.hpp
30 libupnp_plugin_la_CXXFLAGS = $(AM_CXXFLAGS) $(UPNP_CFLAGS)
31 libupnp_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)'
32 libupnp_plugin_la_LIBADD = $(UPNP_LIBS)
33 EXTRA_LTLIBRARIES += libupnp_plugin.la
34 sd_LTLIBRARIES += $(LTLIBupnp)
35
36 libpulselist_plugin_la_SOURCES = services_discovery/pulse.c
37 libpulselist_plugin_la_CFLAGS = $(AM_CFLAGS) $(PULSE_CFLAGS)
38 libpulselist_plugin_la_LIBADD = libvlc_pulse.la $(PULSE_LIBS)
39 if HAVE_PULSE
40 sd_LTLIBRARIES += libpulselist_plugin.la
41 endif
42
43 libudev_plugin_la_SOURCES = services_discovery/udev.c
44 libudev_plugin_la_CFLAGS = $(AM_CFLAGS) $(UDEV_CFLAGS)
45 libudev_plugin_la_LIBADD = $(UDEV_LIBS)
46 if HAVE_ALSA
47 libudev_plugin_la_CFLAGS += $(ALSA_CFLAGS) -DHAVE_ALSA
48 libudev_plugin_la_LIBADD += $(ALSA_LIBS)
49 endif
50 libudev_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)'
51 EXTRA_LTLIBRARIES += libudev_plugin.la
52 sd_LTLIBRARIES += $(LTLIBudev)
53
54 libxcb_apps_plugin_la_SOURCES = services_discovery/xcb_apps.c
55 libxcb_apps_plugin_la_CFLAGS = $(AM_CFLAGS) $(XCB_CFLAGS)
56 libxcb_apps_plugin_la_LIBADD = $(XCB_LIBS)
57 if HAVE_XCB
58 sd_LTLIBRARIES += libxcb_apps_plugin.la
59 endif
60
61 libwindrive_plugin_la_SOURCES = services_discovery/windrive.c
62 if HAVE_WIN32_DESKTOP
63 sd_LTLIBRARIES += libwindrive_plugin.la
64 endif
65
66 libos2drive_plugin_la_SOURCES = services_discovery/os2drive.c
67 if HAVE_OS2
68 sd_LTLIBRARIES += libos2drive_plugin.la
69 endif
70
71 libmicrodns_plugin_la_SOURCES = services_discovery/microdns.c
72 libmicrodns_plugin_la_CFLAGS = $(AM_CFLAGS) $(MICRODNS_CFLAGS)
73 libmicrodns_plugin_la_LIBADD = $(SOCKET_LIBS) $(MICRODNS_LIBS)
74 if HAVE_WIN32
75 libmicrodns_plugin_la_LIBADD += -liphlpapi
76 endif
77 libmicrodns_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)'
78 sd_LTLIBRARIES += $(LTLIBmicrodns)
79 EXTRA_LTLIBRARIES += libmicrodns_plugin.la
80
81 libbonjour_plugin_la_SOURCES = services_discovery/bonjour.m
82 libbonjour_plugin_la_OBJCFLAGS = $(AM_OBJCFLAGS) -fobjc-arc
83 libbonjour_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)' -Wl,-framework,Foundation
84 if HAVE_DARWIN
85 sd_LTLIBRARIES += libbonjour_plugin.la
86 endif