modules: use different directory prefixes for each plugins subdirectory
[vlc.git] / modules / services_discovery / Modules.am
1 sddir = $(pluginsdir)/services_discovery
2 sd_LTLIBRARIES =
3
4 SOURCES_upnp = upnp.cpp upnp.hpp
5 SOURCES_bonjour = bonjour.c
6 SOURCES_podcast = podcast.c
7 SOURCES_mtp = mtp.c
8 SOURCES_mediadirs = mediadirs.c
9
10 libsap_plugin_la_SOURCES = sap.c
11 libsap_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_sap)
12 libsap_plugin_la_LIBADD = $(AM_LIBADD) $(LIBS_sap) $(SOCKET_LIBS)
13 if HAVE_WIN32
14 libsap_plugin_la_DEPENDENCIES = libsap_plugin.rc.o
15 endif
16 sd_LTLIBRARIES += libsap_plugin.la
17
18 libpulselist_plugin_la_SOURCES = pulse.c
19 libpulselist_plugin_la_CFLAGS = $(AM_CFLAGS) $(PULSE_CFLAGS)
20 libpulselist_plugin_la_LIBADD = ../libvlc_pulse.la \
21         $(AM_LIBADD) $(PULSE_LIBS)
22 if HAVE_PULSE
23 sd_LTLIBRARIES += libpulselist_plugin.la
24 endif
25
26 libudev_plugin_la_SOURCES = udev.c
27 libudev_plugin_la_CFLAGS = $(AM_CFLAGS) $(UDEV_CFLAGS)
28 libudev_plugin_la_LIBADD = $(AM_LIBADD) $(UDEV_LIBS)
29 if HAVE_ALSA
30 libudev_plugin_la_CFLAGS += $(ALSA_CFLAGS) -DHAVE_ALSA
31 libudev_plugin_la_LIBADD += $(ALSA_LIBS)
32 endif
33 libudev_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)'
34 EXTRA_LTLIBRARIES += libudev_plugin.la
35 sd_LTLIBRARIES += $(LTLIBudev)
36
37 libxcb_apps_plugin_la_SOURCES = xcb_apps.c
38 libxcb_apps_plugin_la_CFLAGS = $(AM_CFLAGS) \
39         $(XCB_CFLAGS)
40 libxcb_apps_plugin_la_LIBADD = $(AM_LIBADD) \
41         $(XCB_LIBS)
42 if HAVE_XCB
43 sd_LTLIBRARIES += libxcb_apps_plugin.la
44 endif
45
46 libwindrive_plugin_la_SOURCES = windrive.c
47 libwindrive_plugin_la_CFLAGS = $(AM_CFLAGS)
48 libwindrive_plugin_la_LIBADD = $(AM_LIBADD)
49 if HAVE_WIN32
50 sd_LTLIBRARIES += libwindrive_plugin.la
51 libwindrive_plugin_la_DEPENDENCIES = libwindrive_plugin.rc.o
52 endif
53
54 libos2drive_plugin_la_SOURCES = os2drive.c
55 libos2drive_plugin_la_CFLAGS = $(AM_CFLAGS)
56 libos2drive_plugin_la_LIBADD = $(AM_LIBADD)
57 if HAVE_OS2
58 sd_LTLIBRARIES += libos2drive_plugin.la
59 endif
60
61 services_discovery_LTLIBRARIES += \
62         libmediadirs_plugin.la \
63         libpodcast_plugin.la