Changeset be5bff39e503467aba0875c4feb490e4f91405d0

Show
Ignore:
Timestamp:
04/28/08 21:20:34 (4 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1209410434 +0300
git-parent:

[24ce9d79088f2723522cee2215e55a3b4ef00e0b]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1209410434 +0300
Message:

Allow building plugins through autotools-builtin means...

...in addition to vlc-config

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/common.am

    rc200402 rbe5bff3  
    99SUFFIXES = 
    1010libvlcdir = $(libdir)/vlc/$(basedir) 
    11 libvlc_LTLIBRARIES = 
    1211EXTRA_DIST = Modules.am 
    1312BUILT_SOURCES = 
  • modules/genmf

    r24ce9d7 rbe5bff3  
    2020  subdirs="`sed -ne 's,'modules/${dir}'/\([^/]*\)/Makefile,\1,p' configure.ac | xargs`" 
    2121  mods="`sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < "${modf}" | xargs`" 
     22  plugins="`sed -n -e 's/^.*lib\([^ ]*\)_plugin\.la.*/\1/p' < "${modf}" | xargs`" 
     23  libvlc_ltlibs="" 
    2224  extra_ltlibs="" 
    2325  for mod in $mods 
    2426  do 
    25     extra_ltlibs="${extra_ltlibs} lib${mod}_plugin.la" 
     27    case " ${plugins} " in 
     28      *\ ${mod}\ *) 
     29    ;; 
     30      *) 
     31        libvlc_ltlibs="${libvlc_ltlibs} \$(LTLIB${mod})" 
     32        extra_ltlibs="${extra_ltlibs} lib${mod}_plugin.la" 
     33      ;; 
     34    esac 
    2635  done 
    2736  rm -f "${makf}" && cat > "${makf}" << EOF 
     
    3342mods = ${mods} 
    3443SUBDIRS = ${subdirs} 
     44libvlc_LTLIBRARIES = ${libvlc_ltlibs} 
    3545EXTRA_LTLIBRARIES = ${extra_ltlibs} 
    3646