[vlc-commits] misc: remove makefile recursion

Rémi Denis-Courmont git at videolan.org
Mon Oct 6 18:06:55 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Oct  6 18:39:33 2014 +0300| [08fce728d5d5c099d9a893b48744d2bb87f2dd9c] | committer: Rémi Denis-Courmont

misc: remove makefile recursion

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

 configure.ac             |    1 -
 modules/Makefile.am      |    2 +-
 modules/misc/Makefile.am |   57 ++++++++++++++++++++++------------------------
 3 files changed, 28 insertions(+), 32 deletions(-)

diff --git a/configure.ac b/configure.ac
index cd34006..2b13d5b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4257,7 +4257,6 @@ AC_CONFIG_FILES([
   modules/gui/macosx_dialog_provider/Makefile
   modules/gui/qt4/Makefile
   modules/gui/skins2/Makefile
-  modules/misc/Makefile
   modules/mux/Makefile
   modules/packetizer/Makefile
   modules/stream_out/Makefile
diff --git a/modules/Makefile.am b/modules/Makefile.am
index 663bf48..f057871 100644
--- a/modules/Makefile.am
+++ b/modules/Makefile.am
@@ -7,7 +7,6 @@ BASE_SUBDIRS = \
 	audio_filter \
 	control \
 	gui \
-	misc \
 	packetizer \
 	text_renderer \
 	video_filter \
@@ -44,6 +43,7 @@ include demux/Makefile.am
 include hw/vdpau/Makefile.am
 include lua/Makefile.am
 include meta_engine/Makefile.am
+include misc/Makefile.am
 include notify/Makefile.am
 include services_discovery/Makefile.am
 include stream_filter/Makefile.am
diff --git a/modules/misc/Makefile.am b/modules/misc/Makefile.am
index 8135cfd..01a2444 100644
--- a/modules/misc/Makefile.am
+++ b/modules/misc/Makefile.am
@@ -1,27 +1,33 @@
 miscdir = $(pluginsdir)/misc
-misc_LTLIBRARIES =
-EXTRA_LTLIBRARIES =
 
-include $(top_srcdir)/modules/common.am
+liblogger_plugin_la_SOURCES = misc/logger.c
+if HAVE_ANDROID
+liblogger_plugin_la_LIBADD = -llog
+endif
+libstats_plugin_la_SOURCES = misc/stats.c
 
-libaudioscrobbler_plugin_la_SOURCES = audioscrobbler.c
+misc_LTLIBRARIES = liblogger_plugin.la libstats_plugin.la
+
+libaudioscrobbler_plugin_la_SOURCES = misc/audioscrobbler.c
 libaudioscrobbler_plugin_la_LIBADD = $(SOCKET_LIBS) $(LIBPTHREAD)
 misc_LTLIBRARIES += libaudioscrobbler_plugin.la
 
 libexport_plugin_la_SOURCES = \
-	playlist/html.c \
-	playlist/m3u.c \
-	playlist/xspf.c \
-	playlist/export.c
+	misc/playlist/html.c \
+	misc/playlist/m3u.c \
+	misc/playlist/xspf.c \
+	misc/playlist/export.c
 misc_LTLIBRARIES += libexport_plugin.la
 
-libfingerprinter_plugin_la_SOURCES = fingerprinter.c \
-	webservices/acoustid.c webservices/acoustid.h \
-	webservices/json.c webservices/json.h
+libfingerprinter_plugin_la_SOURCES =  \
+	misc/webservices/acoustid.c misc/webservices/acoustid.h \
+	misc/webservices/json.c misc/webservices/json.h \
+	misc/fingerprinter.c
+libfingerprinter_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/misc
 libfingerprinter_plugin_la_LIBADD = $(LIBM) $(LIBPTHREAD)
 misc_LTLIBRARIES += libfingerprinter_plugin.la
 
-libgnutls_plugin_la_SOURCES = gnutls.c dhparams.h
+libgnutls_plugin_la_SOURCES = misc/gnutls.c misc/dhparams.h
 libgnutls_plugin_la_CFLAGS = $(AM_CFLAGS) $(GNUTLS_CFLAGS)
 libgnutls_plugin_la_LIBADD = $(GNUTLS_LIBS)
 if HAVE_WIN32
@@ -35,51 +41,42 @@ EXTRA_LTLIBRARIES += libgnutls_plugin.la
 misc_LTLIBRARIES += $(LTLIBgnutls)
 
 if HAVE_DARWIN
-libsecuretransport_plugin_la_SOURCES = securetransport.c
+libsecuretransport_plugin_la_SOURCES = misc/securetransport.c
 libsecuretransport_plugin_la_CFLAGS = $(AM_CFLAGS) $(SECURETRANSPORT_CFLAGS)
 libsecuretransport_plugin_la_LIBADD = $(SECURETRANSPORT_LIBS)
 libsecuretransport_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(miscdir)' -Wl,-framework,Security,-framework,CoreFoundation
 misc_LTLIBRARIES += libsecuretransport_plugin.la
 endif
 
-libxdg_screensaver_plugin_la_SOURCES = inhibit/xdg.c
+libxdg_screensaver_plugin_la_SOURCES = misc/inhibit/xdg.c
 if HAVE_XCB
 misc_LTLIBRARIES += libxdg_screensaver_plugin.la
 endif
 
-libdbus_screensaver_plugin_la_SOURCES = inhibit/dbus.c
+libdbus_screensaver_plugin_la_SOURCES = misc/inhibit/dbus.c
 libdbus_screensaver_plugin_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
 libdbus_screensaver_plugin_la_LIBADD = $(DBUS_LIBS)
 if HAVE_DBUS
 misc_LTLIBRARIES += libdbus_screensaver_plugin.la
 endif
 
-liblogger_plugin_la_SOURCES = logger.c
-if HAVE_ANDROID
-liblogger_plugin_la_LIBADD = -llog
-endif
-
-libstats_plugin_la_SOURCES = stats.c
-
+libaddonsvorepository_plugin_la_SOURCES = \
+	misc/addons/vorepository.c misc/addons/xmlreading.h
+libaddonsfsstorage_plugin_la_SOURCES = \
+	misc/addons/fsstorage.c misc/addons/xmlreading.h
 if ENABLE_ADDONMANAGERMODULES
-libaddonsvorepository_plugin_la_SOURCES = addons/vorepository.c addons/xmlreading.h
-libaddonsfsstorage_plugin_la_SOURCES = addons/fsstorage.c addons/xmlreading.h
 misc_LTLIBRARIES += \
 	libaddonsvorepository_plugin.la \
 	libaddonsfsstorage_plugin.la
 endif
 
-misc_LTLIBRARIES += \
-	liblogger_plugin.la \
-	libstats_plugin.la
-
-libvod_rtsp_plugin_la_SOURCES = rtsp.c
+libvod_rtsp_plugin_la_SOURCES = misc/rtsp.c
 libvod_rtsp_plugin_la_LIBADD = $(SOCKET_LIBS)
 if ENABLE_SOUT
 misc_LTLIBRARIES += libvod_rtsp_plugin.la
 endif
 
-libxml_plugin_la_SOURCES = xml/libxml.c
+libxml_plugin_la_SOURCES = misc/xml/libxml.c
 libxml_plugin_la_CFLAGS = $(AM_CFLAGS) $(LIBXML2_CFLAGS)
 libxml_plugin_la_LIBADD = $(LIBXML2_LIBS)
 libxml_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(miscdir)' $(LDFLAGS_xml)



More information about the vlc-commits mailing list