Changeset 655212ddf8a63bbb919e1f05d38117369f88de66
- Timestamp:
- 06/28/03 15:04:52
(5 years ago)
- Author:
- Sam Hocevar <sam@videolan.org>
- git-committer:
- Sam Hocevar <sam@videolan.org> 1056805492 +0000
- git-parent:
[7cd00a5602cebe6a174f5690d41df063da24a206]
- git-author:
- Sam Hocevar <sam@videolan.org> 1056805492 +0000
- Message:
- Makefile.am:
+ Call $(srcdir)/toolbox from $(builddir) instead of $(srcdir).
+ Call $(builddir)/vlc-config instead of $(srcdir)/vlc-config, because
generated files end in $(builddir).
+ Added -Imozilla to the mozilla plugin link flags.
+ Look for mozilla/vlcintf.idl in $(srcdir).
- configure.ac:
+ Set VLC_CONFIG to $(builddir)/vlc-config instead of $(srcdir)/vlc-config.
- toolbox:
+ Look for Makefile.am in ${srcdir}, and Makefile in ${builddir}.
+ Prepend ${srcdir} to header files we handle.
- m4/vlc.m4:
+ Look for vlc-config.in.in in ${srcdir} but generate vlc-config.in in
${builddir}.
- modules/gui/skins/src/dialogs.cpp, modules/gui/wxwindows/interface.cpp:
+ Include the pixmap with a path relative to the current directory.
This commit should fix builds that use --srcdir (Closes: #319).
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r1f4f223 |
r655212d |
|
| 111 | 111 | |
|---|
| 112 | 112 | include/vlc_symbols.h: Makefile $(HEADERS_include) |
|---|
| 113 | | cd $(srcdir) && $(srcdir)/toolbox --update-includes |
|---|
| | 113 | $(srcdir)/toolbox --update-includes |
|---|
| 114 | 114 | |
|---|
| 115 | 115 | src/misc/modules_plugin.h: Makefile src/misc/modules_plugin.h.in $(HEADERS_include) |
|---|
| 116 | | cd $(srcdir) && $(srcdir)/toolbox --update-includes |
|---|
| | 116 | $(srcdir)/toolbox --update-includes |
|---|
| 117 | 117 | |
|---|
| 118 | 118 | src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in |
|---|
| 119 | | cd $(srcdir) && $(srcdir)/toolbox --update-includes |
|---|
| | 119 | $(srcdir)/toolbox --update-includes |
|---|
| 120 | 120 | |
|---|
| 121 | 121 | # These dependencies are mandatory |
|---|
| … | … | |
| 374 | 374 | # Install the modules and the symlinks |
|---|
| 375 | 375 | install-exec-local: |
|---|
| 376 | | for i in "" `$(srcdir)/vlc-config --target plugin` ; do if test -n "$$i" ; then \ |
|---|
| | 376 | for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \ |
|---|
| 377 | 377 | $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | cut -f2 -d/`" ; \ |
|---|
| 378 | 378 | fi ; done |
|---|
| 379 | | for i in "" `$(srcdir)/vlc-config --target builtin` `$(srcdir)/vlc-config --target builtin pic` ; do if test -n "$$i" ; then \ |
|---|
| | 379 | for i in "" `$(VLC_CONFIG) --target builtin` `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \ |
|---|
| 380 | 380 | $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \ |
|---|
| 381 | 381 | fi ; done |
|---|
| … | … | |
| 396 | 396 | $(INSTALL) vlc $(srcdir)/VLC.app/Contents/MacOS/VLC |
|---|
| 397 | 397 | $(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS/modules |
|---|
| 398 | | for i in "" `$(srcdir)/vlc-config --target plugin` ; do \ |
|---|
| | 398 | for i in "" `$(VLC_CONFIG) --target plugin` ; do \ |
|---|
| 399 | 399 | if test -n "$$i" ; then $(INSTALL) "$(srcdir)/$$i$(LIBEXT)" \ |
|---|
| 400 | 400 | "$(srcdir)/VLC.app/Contents/MacOS/modules" ; \ |
|---|
| … | … | |
| 462 | 462 | |
|---|
| 463 | 463 | mkdir -p "$(srcdir)/tmp/plugins" |
|---|
| 464 | | for i in "" `$(srcdir)/vlc-config --target plugin` ; do \ |
|---|
| | 464 | for i in "" `$(VLC_CONFIG) --target plugin` ; do \ |
|---|
| 465 | 465 | if test -n "$$i" ; then \ |
|---|
| 466 | 466 | $(INSTALL) "$(srcdir)/$$i$(LIBEXT)" "$(srcdir)/tmp/plugins/" ; \ |
|---|
| … | … | |
| 604 | 604 | mozilla_libplugin_a_SOURCES = $(SOURCES_mozilla) |
|---|
| 605 | 605 | mozilla_libplugin_a_CFLAGS = `$(VLC_CONFIG) --cflags mozilla pic` \ |
|---|
| 606 | | $(CPPFLAGS_mozilla_EXTRA) |
|---|
| | 606 | $(CPPFLAGS_mozilla_EXTRA) -Imozilla |
|---|
| 607 | 607 | mozilla_libplugin_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags mozilla pic` \ |
|---|
| 608 | | $(CPPFLAGS_mozilla_EXTRA) |
|---|
| | 608 | $(CPPFLAGS_mozilla_EXTRA) -Imozilla |
|---|
| 609 | 609 | mozilla_libplugin_a_DEPENDENCIES = lib/libvlc_pic.a $(DATA_npvlc_rc) builtins_pic |
|---|
| 610 | 610 | |
|---|
| … | … | |
| 624 | 624 | mozilla/vlcintf.xpt: Makefile mozilla/vlcintf.idl |
|---|
| 625 | 625 | $(XPIDL) -I/usr/share/idl/mozilla -m typelib \ |
|---|
| 626 | | -o mozilla/vlcintf mozilla/vlcintf.idl |
|---|
| | 626 | -o mozilla/vlcintf $(srcdir)/mozilla/vlcintf.idl |
|---|
| 627 | 627 | |
|---|
| 628 | 628 | mozilla/vlcintf.h: Makefile mozilla/vlcintf.idl |
|---|
| 629 | 629 | $(XPIDL) -I/usr/share/idl/mozilla -m header \ |
|---|
| 630 | | -o mozilla/vlcintf mozilla/vlcintf.idl |
|---|
| | 630 | -o mozilla/vlcintf $(srcdir)/mozilla/vlcintf.idl |
|---|
| 631 | 631 | |
|---|
| 632 | 632 | if HAVE_WIN32 |
|---|
| r7cd00a5 |
r655212d |
|
| 3108 | 3108 | dnl Handle substvars that use $(top_srcdir) |
|---|
| 3109 | 3109 | dnl |
|---|
| 3110 | | VLC_CONFIG="\$(top_srcdir)/vlc-config" |
|---|
| | 3110 | VLC_CONFIG="\$(top_builddir)/vlc-config" |
|---|
| 3111 | 3111 | AC_SUBST(VLC_CONFIG) |
|---|
| 3112 | 3112 | CPPFLAGS_save="${CPPFLAGS_save} -I\$(top_srcdir)/include" |
|---|
| r1f4f223 |
r655212d |
|
| | 1 | vlc (0.6.0+cvs-20030627-2) unstable; urgency=low |
|---|
| | 2 | |
|---|
| | 3 | * extras/ffmpeg: |
|---|
| | 4 | + Fixed compilation for Alpha. |
|---|
| | 5 | |
|---|
| | 6 | -- Sam Hocevar (Debian packages) <sam+deb@zoy.org> Sat, 21 Jun 2003 17:55:07 +0200 |
|---|
| | 7 | |
|---|
| 1 | 8 | vlc (0.6.0+cvs-20030627-1) unstable; urgency=low |
|---|
| 2 | 9 | |
|---|
| r9abee4a |
r655212d |
|
| 30 | 30 | AC_DEFUN([AX_ADD_CPPFLAGS], [ |
|---|
| 31 | 31 | for element in [$1]; do |
|---|
| 32 | | eval "CPPFLAGS_$element="'"$'"{CPPFLAGS_$element} $2"'"' |
|---|
| 33 | | am_plugins_with_cppflags="${am_plugins_with_cppflags} $element" |
|---|
| | 32 | eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} $2"'"' |
|---|
| | 33 | am_plugins_with_cppflags="${am_plugins_with_cppflags} ${element}" |
|---|
| 34 | 34 | done |
|---|
| 35 | 35 | ]) |
|---|
| … | … | |
| 37 | 37 | AC_DEFUN([AX_ADD_CFLAGS], [ |
|---|
| 38 | 38 | for element in [$1]; do |
|---|
| 39 | | eval "CFLAGS_$element="'"$'"{CFLAGS_$element} $2"'"' |
|---|
| 40 | | am_plugins_with_cflags="${am_plugins_with_cflags} $element" |
|---|
| | 39 | eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $2"'"' |
|---|
| | 40 | am_plugins_with_cflags="${am_plugins_with_cflags} ${element}" |
|---|
| 41 | 41 | done |
|---|
| 42 | 42 | ]) |
|---|
| … | … | |
| 44 | 44 | AC_DEFUN([AX_ADD_CXXFLAGS], [ |
|---|
| 45 | 45 | for element in [$1]; do |
|---|
| 46 | | eval "CXXFLAGS_$element="'"$'"{CXXFLAGS_$element} $2"'"' |
|---|
| 47 | | am_plugins_with_cxxflags="${am_plugins_with_cxxflags} $element" |
|---|
| | 46 | eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} $2"'"' |
|---|
| | 47 | am_plugins_with_cxxflags="${am_plugins_with_cxxflags} ${element}" |
|---|
| 48 | 48 | done |
|---|
| 49 | 49 | ]) |
|---|
| … | … | |
| 51 | 51 | AC_DEFUN([AX_ADD_OBJCFLAGS], [ |
|---|
| 52 | 52 | for element in [$1]; do |
|---|
| 53 | | eval "OBJCFLAGS_$element="'"$'"{OBJCFLAGS_$element} $2"'"' |
|---|
| 54 | | am_plugins_with_objcflags="${am_plugins_with_objcflags} $element" |
|---|
| | 53 | eval "OBJCFLAGS_${element}="'"$'"{OBJCFLAGS_${element}} $2"'"' |
|---|
| | 54 | am_plugins_with_objcflags="${am_plugins_with_objcflags} ${element}" |
|---|
| 55 | 55 | done |
|---|
| 56 | 56 | ]) |
|---|
| … | … | |
| 58 | 58 | AC_DEFUN([AX_ADD_LDFLAGS], [ |
|---|
| 59 | 59 | for element in [$1]; do |
|---|
| 60 | | eval "LDFLAGS_$element="'"$'"{LDFLAGS_$element} $2"'"' |
|---|
| 61 | | am_plugins_with_ldflags="${am_plugins_with_ldflags} $element" |
|---|
| | 60 | eval "LDFLAGS_${element}="'"$'"{LDFLAGS_${element}} $2"'"' |
|---|
| | 61 | am_plugins_with_ldflags="${am_plugins_with_ldflags} ${element}" |
|---|
| 62 | 62 | done |
|---|
| 63 | 63 | ]) |
|---|
| … | … | |
| 68 | 68 | |
|---|
| 69 | 69 | rm -f vlc-config.in |
|---|
| 70 | | sed -ne '/#@1@#/q;p' < vlc-config.in.in \ |
|---|
| | 70 | sed -ne '/#@1@#/q;p' < "${srcdir}/vlc-config.in.in" \ |
|---|
| 71 | 71 | | sed -e "s/@gprof@/${enable_gprof}/" \ |
|---|
| 72 | 72 | -e "s/@cprof@/${enable_cprof}/" \ |
|---|
| … | … | |
| 111 | 111 | |
|---|
| 112 | 112 | dnl '/#@1@#/,/#@2@#/{/#@.@#/d;p}' won't work on OS X |
|---|
| 113 | | sed -ne '/#@1@#/,/#@2@#/p' < vlc-config.in.in | sed -e '/#@.@#/d' >> vlc-config.in |
|---|
| | 113 | sed -ne '/#@1@#/,/#@2@#/p' < "${srcdir}/vlc-config.in.in" \ |
|---|
| | 114 | | sed -e '/#@.@#/d' >> vlc-config.in |
|---|
| 114 | 115 | |
|---|
| 115 | 116 | AX_VLC_CONFIG_HELPER |
|---|
| 116 | 117 | |
|---|
| 117 | 118 | dnl '/#@2@#/,${/#@.@#/d;p}' won't work on OS X |
|---|
| 118 | | sed -ne '/#@2@#/,$p' < vlc-config.in.in | sed -e '/#@.@#/d' >> vlc-config.in |
|---|
| | 119 | sed -ne '/#@2@#/,$p' < "${srcdir}/vlc-config.in.in" \ |
|---|
| | 120 | | sed -e '/#@.@#/d' >> vlc-config.in |
|---|
| 119 | 121 | ]) |
|---|
| 120 | 122 | |
|---|
| rae09816 |
r655212d |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2003 VideoLAN |
|---|
| 5 | | * $Id: dialogs.cpp,v 1.7 2003/06/11 10:42:34 gbazin Exp $ |
|---|
| | 5 | * $Id: dialogs.cpp,v 1.8 2003/06/28 13:04:52 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 60 | 60 | |
|---|
| 61 | 61 | #include "../../wxwindows/wxwindows.h" |
|---|
| 62 | | #include "share/vlc32x32.xpm" // include the graphic icon |
|---|
| | 62 | #include "../../../../share/vlc32x32.xpm" // include the graphic icon |
|---|
| 63 | 63 | |
|---|
| 64 | 64 | #define ShowOpen_Event 0 |
|---|
| r9ea835e |
r655212d |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2000-2001 VideoLAN |
|---|
| 5 | | * $Id: interface.cpp,v 1.41 2003/06/19 12:21:53 gbazin Exp $ |
|---|
| | 5 | * $Id: interface.cpp,v 1.42 2003/06/28 13:04:52 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 69 | 69 | |
|---|
| 70 | 70 | /* include the icon graphic */ |
|---|
| 71 | | #include "share/vlc32x32.xpm" |
|---|
| | 71 | #include "../../../share/vlc32x32.xpm" |
|---|
| 72 | 72 | |
|---|
| 73 | 73 | /***************************************************************************** |
|---|
| rc278cac |
r655212d |
|
| 2 | 2 | |
|---|
| 3 | 3 | ## toolbox for the VLC media player |
|---|
| 4 | | ## $Id: toolbox,v 1.29 2003/06/28 01:17:47 sam Exp $ |
|---|
| | 4 | ## $Id: toolbox,v 1.30 2003/06/28 13:04:52 sam Exp $ |
|---|
| 5 | 5 | ## |
|---|
| 6 | 6 | ## Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 38 | 38 | getfiles() |
|---|
| 39 | 39 | { |
|---|
| 40 | | awk 'BEGIN{a=0}{if(!a&&/^'"$1"'[^-_a-zA-Z0-9]*=/){a=1;print$0;next;}if(a){if(/^[a-zA-Z]/){exit;}print $0}}' < Makefile.am | \ |
|---|
| | 40 | awk 'BEGIN{a=0}{if(!a&&/^'"$1"'[^-_a-zA-Z0-9]*=/){a=1;print$0;next;}if(a){if(/^[a-zA-Z]/){exit;}print $0}}' < "${srcdir}/Makefile.am" | \ |
|---|
| 41 | 41 | tr '\\ ' '\n\n' | \ |
|---|
| 42 | | sed -ne 's/[^-$()_a-zA-Z0-9][^-$()_a-zA-Z0-9]*\([a-zA-Z]\)/\1/p' |
|---|
| | 42 | sed -ne 's/[^-$()_a-zA-Z0-9][^-$()_a-zA-Z0-9]*\([a-zA-Z]\)/\1/p' | \ |
|---|
| | 43 | sed -e "s,^,${srcdir}/," |
|---|
| 43 | 44 | } |
|---|
| 44 | 45 | |
|---|
| … | … | |
| 115 | 116 | then |
|---|
| 116 | 117 | echo "generating Visual Studio files..." |
|---|
| | 118 | |
|---|
| | 119 | srcdir="`sed -ne 's/^srcdir *= *//p;T;q' < Makefile`" |
|---|
| 117 | 120 | |
|---|
| 118 | 121 | # The evil ^M |
|---|
| … | … | |
| 365 | 368 | #set -x |
|---|
| 366 | 369 | |
|---|
| | 370 | srcdir="`sed -ne 's/^srcdir *= *//p;T;q' < Makefile`" |
|---|
| 367 | 371 | LIBVLC_HEADERS=`getfiles HEADERS_include` |
|---|
| 368 | 372 | BUILTINS=`sed -ne 's/.*builtins *= *" *\([^"]*\)".*/\1/p' vlc-config` |
|---|
| 369 | 373 | |
|---|
| 370 | | file=include/vlc_symbols.h |
|---|
| | 374 | file="${srcdir}/include/vlc_symbols.h" |
|---|
| 371 | 375 | |
|---|
| 372 | 376 | rm -f ${file}.in |
|---|
| … | … | |
| 386 | 390 | fi |
|---|
| 387 | 391 | |
|---|
| 388 | | file=src/misc/modules_plugin.h |
|---|
| | 392 | file="${srcdir}/src/misc/modules_plugin.h" |
|---|
| 389 | 393 | |
|---|
| 390 | 394 | rm -f ${file}.tmp && cp ${file}.in ${file}.tmp |
|---|
| … | … | |
| 401 | 405 | fi |
|---|
| 402 | 406 | |
|---|
| 403 | | file=src/misc/modules_builtin.h |
|---|
| | 407 | file="${srcdir}/src/misc/modules_builtin.h" |
|---|
| 404 | 408 | |
|---|
| 405 | 409 | rm -f ${file}.tmp && cp ${file}.in ${file}.tmp |
|---|