Changeset 29d8ffc9beea30a6344f4e642779bcb20eac616b
- Timestamp:
- 10/19/06 21:29:46
(2 years ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1161286186 +0000
- git-parent:
[40356097fea4dba1e8d8d22dc3d62f86337b291e]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1161286186 +0000
- Message:
Oh! No more builtins!
(well only for libtool and shared libvlc)
Clean your build tree before whining.
And yes, it breaks the mostly-builtin option (obviously).
It also speeds up automake a tiny bit.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r6810a85 |
r29d8ffc |
|
| 200 | 200 | do |
|---|
| 201 | 201 | extra_libs="${extra_libs} lib${mod}_plugin.a lib${mod}.a" |
|---|
| 202 | | extra_ltlibs="${extra_ltlibs} lib${mod}_plugin.la lib${mod}_builtin.la" |
|---|
| | 202 | extra_ltlibs="${extra_ltlibs} lib${mod}_plugin.la" |
|---|
| 203 | 203 | done |
|---|
| 204 | 204 | rm -f "${makf}" && cat > "${makf}" << EOF |
|---|
| … | … | |
| 242 | 242 | if USE_LIBTOOL |
|---|
| 243 | 243 | @set fnord \$\$MAKEFLAGS; amf=\$\$2; targets=\`\\ |
|---|
| 244 | | if test "\$(plugin)" != "no"; then z=\$\$(\$(VLC_CONFIG) --list plugin); for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo lib\$\${mod}_plugin.la;; esac; done; fi; \\ |
|---|
| 245 | | if test "\$(builtin)" != "no"; then z=\$\$(\$(VLC_CONFIG) --list builtin); for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo lib\$\${mod}_builtin.la;; esac; done; fi; \\ |
|---|
| | 244 | if test "\$(plugin)" != "no"; then z=\$\$(\$(VLC_CONFIG) --list builtin plugin); for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo lib\$\${mod}_plugin.la;; esac; done; fi; \\ |
|---|
| 246 | 245 | \`; case "\$\$targets" in *lib*) \$(MAKE) \$(AM_MAKEFLAGS) \$\$targets || case "\$\$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; ;; esac; \\ |
|---|
| 247 | 246 | test -z "\$\$fail" |
|---|
| … | … | |
| 289 | 288 | if USE_LIBTOOL |
|---|
| 290 | 289 | @if test -z "\$(libvlc_LTLIBRARIES)"; then \ |
|---|
| 291 | | z=\$\$(\$(VLC_CONFIG) --list plugin); \ |
|---|
| | 290 | z=\$\$(\$(VLC_CONFIG) --list builtin plugin); \ |
|---|
| 292 | 291 | m=\`for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo -n " lib\$\${mod}_plugin.la" ;; esac; done\` ; \ |
|---|
| 293 | 292 | test -z "\$\$m" || \ |
|---|
| … | … | |
| 305 | 304 | esac; \ |
|---|
| 306 | 305 | done |
|---|
| 307 | | @z=\$\$(\$(VLC_CONFIG) --list builtin); \ |
|---|
| 308 | | for mod in \$(mods); do \ |
|---|
| 309 | | case "\$\$z " \ |
|---|
| 310 | | in *\ \$\${mod}\ *) \ |
|---|
| 311 | | echo \$(INSTALL_DATA) "lib\$\${mod}.a" "\$(DESTDIR)\$(libdir)/vlc/" ; \ |
|---|
| 312 | | \$(INSTALL_DATA) "lib\$\${mod}.a" "\$(DESTDIR)\$(libdir)/vlc/" || exit \$\$?; \ |
|---|
| 313 | | ;; \ |
|---|
| 314 | | esac; \ |
|---|
| 315 | | done |
|---|
| 316 | 306 | endif |
|---|
| 317 | 307 | |
|---|
| … | … | |
| 319 | 309 | if USE_LIBTOOL |
|---|
| 320 | 310 | @if test -z "\$(libvlc_LTLIBRARIES)"; then \ |
|---|
| 321 | | z=\$\$(\$(VLC_CONFIG) --list plugin); \ |
|---|
| | 311 | z=\$\$(\$(VLC_CONFIG) --list builtin plugin); \ |
|---|
| 322 | 312 | m=\`for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo -n " lib\$\${mod}_plugin.la" ;; esac; done\` ; \ |
|---|
| 323 | 313 | test -z "\$\$m" || \ |
|---|
| … | … | |
| 331 | 321 | echo rm -f "\$(DESTDIR)\$(libvlcdir)/lib\$\${mod}_plugin\$(LIBEXT)" ; \ |
|---|
| 332 | 322 | rm -f "\$(DESTDIR)\$(libvlcdir)/lib\$\${mod}_plugin\$(LIBEXT)" || true; \ |
|---|
| 333 | | ;; \ |
|---|
| 334 | | esac; \ |
|---|
| 335 | | done |
|---|
| 336 | | @z=\$\$(\$(VLC_CONFIG) --list builtin); \ |
|---|
| 337 | | for mod in \$(mods); do \ |
|---|
| 338 | | case "\$\$z " \ |
|---|
| 339 | | in *\ \$\${mod}\ *) \ |
|---|
| 340 | | echo rm -f "\$(DESTDIR)\$(libdir)/vlc/lib\$\${mod}.a" ; \ |
|---|
| 341 | | rm -f "\$(DESTDIR)\$(libdir)/vlc/lib\$\${mod}.a" || true; \ |
|---|
| 342 | 323 | ;; \ |
|---|
| 343 | 324 | esac; \ |
|---|
| … | … | |
| 398 | 379 | |
|---|
| 399 | 380 | lib${mod}_a_SOURCES = \$(SOURCES_${mod}) |
|---|
| 400 | | lib${mod}_builtin_la_SOURCES = \$(SOURCES_${mod}) |
|---|
| 401 | 381 | EOF |
|---|
| 402 | 382 | if [ "${NODIST}" != "#" ]; then cat >> "${makf}" << EOF |
|---|
| 403 | 383 | nodist_lib${mod}_a_SOURCES = \$(nodist_SOURCES_${mod}) |
|---|
| 404 | | nodist_lib${mod}_builtin_la_SOURCES = \$(nodist_SOURCES_${mod}) |
|---|
| 405 | 384 | EOF |
|---|
| 406 | 385 | fi |
|---|
| … | … | |
| 409 | 388 | lib${mod}_a_CXXFLAGS = \`\$(VLC_CONFIG) --cxxflags builtin pic ${mod}\` |
|---|
| 410 | 389 | lib${mod}_a_OBJCFLAGS = \`\$(VLC_CONFIG) --objcflags builtin pic ${mod}\` |
|---|
| 411 | | lib${mod}_builtin_la_CFLAGS = \`\$(VLC_CONFIG) --cflags builtin ${mod}\` |
|---|
| 412 | | lib${mod}_builtin_la_CXXFLAGS = \`\$(VLC_CONFIG) --cxxflags builtin ${mod}\` |
|---|
| 413 | | lib${mod}_builtin_la_OBJCFLAGS = \`\$(VLC_CONFIG) --objcflags builtin ${mod}\` |
|---|
| 414 | 390 | |
|---|
| 415 | 391 | EOF |
|---|
| r80fb50e |
r29d8ffc |
|
| 5520 | 5520 | AS_IF([test "${enable_shared_libvlc}" != "no" || test "${enable_libtool}" != "no"], [ |
|---|
| 5521 | 5521 | AC_DEFINE(HAVE_SHARED_LIBVLC, 1, [Define to 1 if libvlc is built as a shared library.]) |
|---|
| 5522 | | FILE_LIBVLC_DLL="!define LIBVLC_DLL libvlc.dll"], |
|---|
| 5523 | | FILE_LIBVLC_DLL="" ) |
|---|
| 5524 | | |
|---|
| 5525 | | dnl Import conditional variables generated by bootstrap |
|---|
| | 5522 | FILE_LIBVLC_DLL="!define LIBVLC_DLL libvlc.dll" |
|---|
| | 5523 | PLUGINS="${BUILTINS}" |
|---|
| | 5524 | BUILTINS="" |
|---|
| | 5525 | ], [ |
|---|
| | 5526 | FILE_LIBVLC_DLL="" |
|---|
| | 5527 | ]) |
|---|
| | 5528 | |
|---|
| | 5529 | dnl Import conditional variables generated by bootstrap |
|---|
| 5526 | 5530 | VLC_CONDITIONALS |
|---|
| 5527 | 5531 | |
|---|
| r62fffad |
r29d8ffc |
|
| 125 | 125 | |
|---|
| 126 | 126 | stamp-builtins: Makefile ../vlc-config ../config.status |
|---|
| 127 | | if USE_LIBTOOL |
|---|
| 128 | | @for c in `$(VLC_CONFIG) --libs builtin`; do \ |
|---|
| 129 | | case $$c in \ |
|---|
| 130 | | ../modules/*.a) echo $$c ;; \ |
|---|
| 131 | | esac ; \ |
|---|
| 132 | | done | \ |
|---|
| 133 | | sed -e 's,^\(.*\)/\([^/]*\)\.a$$,cd \1 \&\& $(MAKE) \2_builtin.la,g' | \ |
|---|
| 134 | | while read cmd; do echo $$cmd; eval "($$cmd)" || exit $$? ; done |
|---|
| 135 | | endif |
|---|
| 136 | 127 | if BUILD_SHARED |
|---|
| 137 | 128 | @for c in `$(VLC_CONFIG) --libs builtin`; do \ |
|---|
| … | … | |
| 150 | 141 | |
|---|
| 151 | 142 | libvlc_a_SOURCES = $(SOURCES_libvlc) |
|---|
| 152 | | libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic` |
|---|
| | 143 | libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic` -DUSE_BUILTINS |
|---|
| 153 | 144 | libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic` |
|---|
| 154 | 145 | libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic` |
|---|
| … | … | |
| 159 | 150 | libvlc_la_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc` |
|---|
| 160 | 151 | libvlc_la_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc` |
|---|
| 161 | | libvlc_la_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin|sed -e 's/\(modules\/[^ ]*\)\.a /\1_builtin.la /g'` -no-undefined -export-symbols libvlc.sym |
|---|
| | 152 | libvlc_la_LDFLAGS = `$(VLC_CONFIG) --libs vlc` -no-undefined -export-symbols libvlc.sym |
|---|
| 162 | 153 | libvlc_la_DEPENDENCIES = stamp-builtins stamp-api |
|---|
| 163 | 154 | |
|---|