upnp: move UpnpInstanceWrapper to upnp-wrapper
[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                             services_discovery/upnp-wrapper.hpp \
31                             services_discovery/upnp-wrapper.cpp
32 libupnp_plugin_la_CXXFLAGS = $(AM_CXXFLAGS) $(UPNP_CFLAGS)
33 libupnp_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)'
34 libupnp_plugin_la_LIBADD = $(UPNP_LIBS)
35 EXTRA_LTLIBRARIES += libupnp_plugin.la
36 sd_LTLIBRARIES += $(LTLIBupnp)
37
38 libpulselist_plugin_la_SOURCES = services_discovery/pulse.c
39 libpulselist_plugin_la_CFLAGS = $(AM_CFLAGS) $(PULSE_CFLAGS)
40 libpulselist_plugin_la_LIBADD = libvlc_pulse.la $(PULSE_LIBS)
41 if HAVE_PULSE
42 sd_LTLIBRARIES += libpulselist_plugin.la
43 endif
44
45 libudev_plugin_la_SOURCES = services_discovery/udev.c
46 libudev_plugin_la_CFLAGS = $(AM_CFLAGS) $(UDEV_CFLAGS)
47 libudev_plugin_la_LIBADD = $(UDEV_LIBS)
48 if HAVE_ALSA
49 libudev_plugin_la_CFLAGS += $(ALSA_CFLAGS) -DHAVE_ALSA
50 libudev_plugin_la_LIBADD += $(ALSA_LIBS)
51 endif
52 libudev_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)'
53 EXTRA_LTLIBRARIES += libudev_plugin.la
54 sd_LTLIBRARIES += $(LTLIBudev)
55
56 libxcb_apps_plugin_la_SOURCES = services_discovery/xcb_apps.c
57 libxcb_apps_plugin_la_CFLAGS = $(AM_CFLAGS) $(XCB_CFLAGS)
58 libxcb_apps_plugin_la_LIBADD = $(XCB_LIBS)
59 if HAVE_XCB
60 sd_LTLIBRARIES += libxcb_apps_plugin.la
61 endif
62
63 libwindrive_plugin_la_SOURCES = services_discovery/windrive.c
64 if HAVE_WIN32_DESKTOP
65 sd_LTLIBRARIES += libwindrive_plugin.la
66 endif
67
68 libos2drive_plugin_la_SOURCES = services_discovery/os2drive.c
69 if HAVE_OS2
70 sd_LTLIBRARIES += libos2drive_plugin.la
71 endif
72
73 libmicrodns_plugin_la_SOURCES = services_discovery/microdns.c
74 libmicrodns_plugin_la_CFLAGS = $(AM_CFLAGS) $(MICRODNS_CFLAGS)
75 libmicrodns_plugin_la_LIBADD = $(SOCKET_LIBS) $(MICRODNS_LIBS)
76 if HAVE_WIN32
77 libmicrodns_plugin_la_LIBADD += -liphlpapi
78 endif
79 libmicrodns_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)'
80 sd_LTLIBRARIES += $(LTLIBmicrodns)
81 EXTRA_LTLIBRARIES += libmicrodns_plugin.la
82
83 libbonjour_plugin_la_SOURCES = services_discovery/bonjour.m
84 libbonjour_plugin_la_OBJCFLAGS = $(AM_OBJCFLAGS) -fobjc-arc
85 libbonjour_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)' -Wl,-framework,Foundation
86 if HAVE_DARWIN
87 sd_LTLIBRARIES += libbonjour_plugin.la
88 endif