[vlc-commits] sd: avoid genmf

Rémi Denis-Courmont git at videolan.org
Sun Sep 22 16:08:40 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Sep 22 16:34:18 2013 +0300| [8b58a9e2c6411d16ff53e81567cdd507ca770f16] | committer: Rémi Denis-Courmont

sd: avoid genmf

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8b58a9e2c6411d16ff53e81567cdd507ca770f16
---

 configure.ac                                       |    1 -
 modules/services_discovery/.gitignore              |    1 -
 .../services_discovery/{Modules.am => Makefile.am} |   38 +++++++++++++++-----
 3 files changed, 29 insertions(+), 11 deletions(-)

diff --git a/configure.ac b/configure.ac
index 4a0cc2d..386aa05 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3978,7 +3978,6 @@ dnl
 dnl UPnP Plugin (Intel SDK)
 dnl
 PKG_ENABLE_MODULES_VLC([UPNP], [upnp], [libupnp], [Intel UPNP SDK],[auto])
-VLC_ADD_CXXFLAGS([upnp],[${UPNP_CFLAGS}])
 
 EXTEND_HELP_STRING([Misc options:])
 
diff --git a/modules/services_discovery/.gitignore b/modules/services_discovery/.gitignore
deleted file mode 100644
index 08a6d72..0000000
--- a/modules/services_discovery/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-Makefile.am
diff --git a/modules/services_discovery/Modules.am b/modules/services_discovery/Makefile.am
similarity index 54%
rename from modules/services_discovery/Modules.am
rename to modules/services_discovery/Makefile.am
index 00023bf..b1b3061 100644
--- a/modules/services_discovery/Modules.am
+++ b/modules/services_discovery/Makefile.am
@@ -1,17 +1,41 @@
 sddir = $(pluginsdir)/services_discovery
 sd_LTLIBRARIES =
+EXTRA_LTLIBRARIES =
 
-SOURCES_upnp = upnp.cpp upnp.hpp
-SOURCES_bonjour = bonjour.c
-SOURCES_podcast = podcast.c
-SOURCES_mtp = mtp.c
-SOURCES_mediadirs = mediadirs.c
+include ../common.am
+
+libmediadirs_plugin_la_SOURCES = mediadirs.c
+sd_LTLIBRARIES += libmediadirs_plugin.la
+
+libpodcast_plugin_la_SOURCES = podcast.c
+sd_LTLIBRARIES += libpodcast_plugin.la
 
 libsap_plugin_la_SOURCES = sap.c
 libsap_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_sap)
 libsap_plugin_la_LIBADD = $(LIBS_sap) $(SOCKET_LIBS)
 sd_LTLIBRARIES += libsap_plugin.la
 
+libbonjour_plugin_la_SOURCES = bonjour.c
+libbonjour_plugin_la_CFLAGS = $(AM_CFLAGS) $(BONJOUR_CFLAGS)
+libbonjour_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)'
+libbonjour_plugin_la_LIBADD = $(BONJOUR_LIBS)
+EXTRA_LTLIBRARIES += libbonjour_plugin.la
+sd_LTLIBRARIES += $(LTLIBbonjour)
+
+libmtp_plugin_la_SOURCES = mtp.c
+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)
+
+libupnp_plugin_la_SOURCES = upnp.cpp upnp.hpp
+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)
+
 libpulselist_plugin_la_SOURCES = pulse.c
 libpulselist_plugin_la_CFLAGS = $(AM_CFLAGS) $(PULSE_CFLAGS)
 libpulselist_plugin_la_LIBADD = ../libvlc_pulse.la $(PULSE_LIBS)
@@ -46,7 +70,3 @@ libos2drive_plugin_la_SOURCES = os2drive.c
 if HAVE_OS2
 sd_LTLIBRARIES += libos2drive_plugin.la
 endif
-
-services_discovery_LTLIBRARIES += \
-	libmediadirs_plugin.la \
-	libpodcast_plugin.la



More information about the vlc-commits mailing list