Changeset be5bff39e503467aba0875c4feb490e4f91405d0
- 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
| rc200402 |
rbe5bff3 |
|
| 9 | 9 | SUFFIXES = |
|---|
| 10 | 10 | libvlcdir = $(libdir)/vlc/$(basedir) |
|---|
| 11 | | libvlc_LTLIBRARIES = |
|---|
| 12 | 11 | EXTRA_DIST = Modules.am |
|---|
| 13 | 12 | BUILT_SOURCES = |
|---|
| r24ce9d7 |
rbe5bff3 |
|
| 20 | 20 | subdirs="`sed -ne 's,'modules/${dir}'/\([^/]*\)/Makefile,\1,p' configure.ac | xargs`" |
|---|
| 21 | 21 | 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="" |
|---|
| 22 | 24 | extra_ltlibs="" |
|---|
| 23 | 25 | for mod in $mods |
|---|
| 24 | 26 | 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 |
|---|
| 26 | 35 | done |
|---|
| 27 | 36 | rm -f "${makf}" && cat > "${makf}" << EOF |
|---|
| … | … | |
| 33 | 42 | mods = ${mods} |
|---|
| 34 | 43 | SUBDIRS = ${subdirs} |
|---|
| | 44 | libvlc_LTLIBRARIES = ${libvlc_ltlibs} |
|---|
| 35 | 45 | EXTRA_LTLIBRARIES = ${extra_ltlibs} |
|---|
| 36 | 46 | |
|---|