Makefile.am 3.39 KB
Newer Older
1
2
3
sddir = $(pluginsdir)/services_discovery
sd_LTLIBRARIES =

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
4
libpodcast_plugin_la_SOURCES = services_discovery/podcast.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
5
sd_LTLIBRARIES += libpodcast_plugin.la
6

7
libsap_plugin_la_SOURCES = services_discovery/sap.c access/rtp/sdp.c
8
libsap_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_sap)
9
libsap_plugin_la_LIBADD = $(LIBS_sap) $(SOCKET_LIBS)
10
sd_LTLIBRARIES += libsap_plugin.la
11

12
13
14
15
16
17
libavahi_plugin_la_SOURCES = services_discovery/avahi.c
libavahi_plugin_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
libavahi_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)'
libavahi_plugin_la_LIBADD = $(AVAHI_LIBS)
EXTRA_LTLIBRARIES += libavahi_plugin.la
sd_LTLIBRARIES += $(LTLIBavahi)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
18

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
19
libmtp_plugin_la_SOURCES = services_discovery/mtp.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
20
21
22
23
24
25
libmtp_plugin_la_CFLAGS = $(AM_CFLAGS) $(MTP_CFLAGS)
libmtp_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)'
libmtp_plugin_la_LIBADD = $(MTP_LIBS)
EXTRA_LTLIBRARIES += libmtp_plugin.la
sd_LTLIBRARIES += $(LTLIBmtp)

26
27
libupnp_plugin_la_SOURCES = services_discovery/upnp.cpp services_discovery/upnp.hpp \
			    services_discovery/upnp-wrapper.hpp \
Shaleen Jain's avatar
Shaleen Jain committed
28
29
30
			    services_discovery/upnp-wrapper.cpp \
			    stream_out/renderer_common.hpp \
			    stream_out/renderer_common.cpp \
31
			    stream_out/dlna/profile_names.hpp \
Shaleen Jain's avatar
Shaleen Jain committed
32
33
34
			    stream_out/dlna/dlna_common.hpp \
			    stream_out/dlna/dlna.hpp \
			    stream_out/dlna/dlna.cpp
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
35
36
37
38
39
libupnp_plugin_la_CXXFLAGS = $(AM_CXXFLAGS) $(UPNP_CFLAGS)
libupnp_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)'
libupnp_plugin_la_LIBADD = $(UPNP_LIBS)
EXTRA_LTLIBRARIES += libupnp_plugin.la
sd_LTLIBRARIES += $(LTLIBupnp)
40
41
42
if HAVE_OSX
libupnp_plugin_la_LDFLAGS += -Wl,-framework,CoreFoundation,-framework,SystemConfiguration
endif
43
44
45
46
47
if HAVE_LINUX
if !HAVE_ANDROID
libupnp_plugin_la_LIBADD += -lpthread
endif
endif
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
48

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
49
libpulselist_plugin_la_SOURCES = services_discovery/pulse.c
50
libpulselist_plugin_la_CFLAGS = $(AM_CFLAGS) $(PULSE_CFLAGS)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
51
libpulselist_plugin_la_LIBADD = libvlc_pulse.la $(PULSE_LIBS)
52
if HAVE_PULSE
53
sd_LTLIBRARIES += libpulselist_plugin.la
54
55
endif

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
56
libudev_plugin_la_SOURCES = services_discovery/udev.c
57
libudev_plugin_la_CFLAGS = $(AM_CFLAGS) $(UDEV_CFLAGS)
58
libudev_plugin_la_LIBADD = $(UDEV_LIBS)
59
60
61
62
if HAVE_ALSA
libudev_plugin_la_CFLAGS += $(ALSA_CFLAGS) -DHAVE_ALSA
libudev_plugin_la_LIBADD += $(ALSA_LIBS)
endif
63
64
65
libudev_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)'
EXTRA_LTLIBRARIES += libudev_plugin.la
sd_LTLIBRARIES += $(LTLIBudev)
66

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
67
libxcb_apps_plugin_la_SOURCES = services_discovery/xcb_apps.c
68
libxcb_apps_plugin_la_CFLAGS = $(AM_CFLAGS) $(XCB_CFLAGS)
69
libxcb_apps_plugin_la_LIBADD = $(XCB_LIBS)
70
if HAVE_XCB
71
sd_LTLIBRARIES += libxcb_apps_plugin.la
72
endif
73

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
74
libwindrive_plugin_la_SOURCES = services_discovery/windrive.c
75
if HAVE_WIN32_DESKTOP
76
sd_LTLIBRARIES += libwindrive_plugin.la
77
78
endif

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
79
libos2drive_plugin_la_SOURCES = services_discovery/os2drive.c
80
if HAVE_OS2
81
sd_LTLIBRARIES += libos2drive_plugin.la
82
endif
83
84
85
86
87
88
89
90

libmicrodns_plugin_la_SOURCES = services_discovery/microdns.c
libmicrodns_plugin_la_CFLAGS = $(AM_CFLAGS) $(MICRODNS_CFLAGS)
libmicrodns_plugin_la_LIBADD = $(SOCKET_LIBS) $(MICRODNS_LIBS)
libmicrodns_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)'
sd_LTLIBRARIES += $(LTLIBmicrodns)
EXTRA_LTLIBRARIES += libmicrodns_plugin.la

91
libbonjour_plugin_la_SOURCES = services_discovery/bonjour.m
92
libbonjour_plugin_la_OBJCFLAGS = $(AM_OBJCFLAGS) -fobjc-arc
93
94
95
96
libbonjour_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)' -Wl,-framework,Foundation
if HAVE_DARWIN
sd_LTLIBRARIES += libbonjour_plugin.la
endif