[vlc-commits] Build modules before libvlc and VLC

Rémi Denis-Courmont git at videolan.org
Tue Aug 30 22:47:45 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 30 23:46:32 2011 +0300| [e33be977f4e19b298c7805bca6204fb5720ff7c8] | committer: Rémi Denis-Courmont

Build modules before libvlc and VLC

The largest change here consists of building the plug-ins cache after
vlc-cache-gen (instead of after modules previously).

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

 Makefile.am         |    4 ++--
 bin/Makefile.am     |   27 ++++++++++++++++++++++++++-
 modules/Makefile.am |   21 ---------------------
 3 files changed, 28 insertions(+), 24 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index a415dd1..e2815c4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,11 +8,11 @@
 #  - src (libvlc) is nedeed by modules
 #  - libs/* are needed by modules
 DIST_SUBDIRS = m4 compat doc po share src modules lib bin test
-SUBDIRS = compat doc po share src lib
+SUBDIRS = compat doc po share src modules lib
 if BUILD_VLC
 SUBDIRS += bin
 endif
-SUBDIRS += modules test
+SUBDIRS += test
 
 EXTRA_DIST = \
 	HACKING \
diff --git a/bin/Makefile.am b/bin/Makefile.am
index 7c40a97..06c5d3b 100644
--- a/bin/Makefile.am
+++ b/bin/Makefile.am
@@ -2,6 +2,7 @@
 #
 bin_PROGRAMS = vlc
 noinst_PROGRAMS = vlc-static
+noinst_DATA =
 vlclib_PROGRAMS = vlc-cache-gen
 EXTRA_PROGRAMS = vlc-wrapper
 EXTRA_DIST = vlc_win32_rc.rc.in
@@ -22,7 +23,7 @@ endif
 EXTRA_vlc_SOURCES = vlc.c winvlc.c
 if HAVE_WIN32
 vlc_SOURCES = winvlc.c
-noinst_DATA = vlc_win32_rc.rc
+noinst_DATA += vlc_win32_rc.rc
 endif
 if HAVE_WINCE
 vlc_SOURCES = winvlc.c
@@ -68,3 +69,27 @@ vlc_cache_gen_LDADD += vlc_win32_rc.$(OBJEXT)
 vlc_cache_gen_DEPENDENCIES = vlc_win32_rc.$(OBJEXT)
 endif
 
+#
+# Plug-ins cache
+#
+noinst_DATA += ../modules/plugins.dat
+MOSTLYCLEANFILES = $(noinst_DATA)
+
+.PHONY: ../modules/plugins.dat
+
+../modules/plugins.dat: vlc-cache-gen$(EXEEXT)
+	$(AM_V_at)rm -f ../modules/plugins.dat
+	$(AM_V_GEN)if test "$(build)" = "$(host)"; then \
+		./vlc-cache-gen$(EXEEXT) ../modules ; \
+	else \
+		echo "Cross-compilation: cache generation skipped!" ; \
+	fi
+
+install-exec-hook:
+	if test "$(build)" = "$(host)"; then \
+		LD_LIBRARY_PATH="$(DESTDIR)$(libdir):$$LD_LIBRARY_PATH" \
+		"$(DESTDIR)$(vlclibdir)/vlc-cache-gen$(EXEEXT)" \
+			 "$(DESTDIR)$(vlclibdir)/plugins" ; \
+	else \
+		echo "Cross-compilation: cache generation skipped!" ; \
+	fi
diff --git a/modules/Makefile.am b/modules/Makefile.am
index 9205ea2..68df599 100644
--- a/modules/Makefile.am
+++ b/modules/Makefile.am
@@ -63,24 +63,3 @@ SUBDIRS += .
 
 dist_noinst_SCRIPTS = genmf list.sh
 dist_noinst_DATA = LIST
-noinst_DATA = plugins.dat
-MOSTLYCLEANFILES = $(noinst_DATA)
-
-.PHONY: plugins.dat
-
-plugins.dat:
-	$(AM_V_at)rm -f plugins.dat
-	$(AM_V_GEN)if test "$(build)" = "$(host)"; then \
-		../bin/vlc-cache-gen$(EXEEXT) . ; \
-	else \
-		echo "Cross-compilation: cache generation skipped!" ; \
-	fi
-
-install-exec-hook:
-	if test "$(build)" = "$(host)"; then \
-		LD_LIBRARY_PATH="$(DESTDIR)$(libdir):$$LD_LIBRARY_PATH" \
-		"$(DESTDIR)$(vlclibdir)/vlc-cache-gen$(EXEEXT)" \
-			 "$(DESTDIR)$(vlclibdir)/plugins" ; \
-	else \
-		echo "Cross-compilation: cache generation skipped!" ; \
-	fi



More information about the vlc-commits mailing list