[vlc-devel] commit: Allow building plugins through autotools-builtin means... ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Apr 28 21:45:11 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Mon Apr 28 22:20:34 2008 +0300| [be5bff39e503467aba0875c4feb490e4f91405d0]

Allow building plugins through autotools-builtin means...

...in addition to vlc-config

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

 modules/common.am |    1 -
 modules/genmf     |   12 +++++++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/modules/common.am b/modules/common.am
index cdd432b..727a230 100644
--- a/modules/common.am
+++ b/modules/common.am
@@ -8,7 +8,6 @@
 NULL =
 SUFFIXES =
 libvlcdir = $(libdir)/vlc/$(basedir)
-libvlc_LTLIBRARIES =
 EXTRA_DIST = Modules.am
 BUILT_SOURCES =
 CLEANFILES = $(BUILT_SOURCES)
diff --git a/modules/genmf b/modules/genmf
index f756893..ec314a3 100755
--- a/modules/genmf
+++ b/modules/genmf
@@ -19,10 +19,19 @@ do
   # automake will not recurse for make dist if we don't define SUBDIRS = .
   subdirs="`sed -ne 's,'modules/${dir}'/\([^/]*\)/Makefile,\1,p' configure.ac | xargs`"
   mods="`sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < "${modf}" | xargs`"
+  plugins="`sed -n -e 's/^.*lib\([^ ]*\)_plugin\.la.*/\1/p' < "${modf}" | xargs`"
+  libvlc_ltlibs=""
   extra_ltlibs=""
   for mod in $mods
   do
-    extra_ltlibs="${extra_ltlibs} lib${mod}_plugin.la"
+    case " ${plugins} " in
+      *\ ${mod}\ *)
+	;;
+      *)
+        libvlc_ltlibs="${libvlc_ltlibs} \$(LTLIB${mod})"
+        extra_ltlibs="${extra_ltlibs} lib${mod}_plugin.la"
+      ;;
+    esac
   done
   rm -f "${makf}" && cat > "${makf}" << EOF
 # ${makf} automatically generated from ${modf} by $0
@@ -32,6 +41,7 @@ basedir = ${basedir}
 dir = ${dir}
 mods = ${mods}
 SUBDIRS = ${subdirs}
+libvlc_LTLIBRARIES = ${libvlc_ltlibs}
 EXTRA_LTLIBRARIES = ${extra_ltlibs}
 
 include \$(top_srcdir)/modules/common.am




More information about the vlc-devel mailing list