Changeset 655212ddf8a63bbb919e1f05d38117369f88de66

Show
Ignore:
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
  • Makefile.am

    r1f4f223 r655212d  
    111111 
    112112include/vlc_symbols.h: Makefile $(HEADERS_include) 
    113     cd $(srcdir) && $(srcdir)/toolbox --update-includes 
     113    $(srcdir)/toolbox --update-includes 
    114114 
    115115src/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 
    117117 
    118118src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in 
    119     cd $(srcdir) && $(srcdir)/toolbox --update-includes 
     119    $(srcdir)/toolbox --update-includes 
    120120 
    121121# These dependencies are mandatory 
     
    374374# Install the modules and the symlinks 
    375375install-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 \ 
    377377      $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | cut -f2 -d/`" ; \ 
    378378    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 \ 
    380380      $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \ 
    381381    fi ; done 
     
    396396    $(INSTALL) vlc $(srcdir)/VLC.app/Contents/MacOS/VLC 
    397397    $(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 \ 
    399399      if test -n "$$i" ; then $(INSTALL) "$(srcdir)/$$i$(LIBEXT)" \ 
    400400        "$(srcdir)/VLC.app/Contents/MacOS/modules" ; \ 
     
    462462 
    463463    mkdir -p "$(srcdir)/tmp/plugins" 
    464     for i in "" `$(srcdir)/vlc-config --target plugin` ; do \ 
     464    for i in "" `$(VLC_CONFIG) --target plugin` ; do \ 
    465465      if test -n "$$i" ; then \ 
    466466        $(INSTALL) "$(srcdir)/$$i$(LIBEXT)" "$(srcdir)/tmp/plugins/" ; \ 
     
    604604mozilla_libplugin_a_SOURCES = $(SOURCES_mozilla) 
    605605mozilla_libplugin_a_CFLAGS = `$(VLC_CONFIG) --cflags mozilla pic` \ 
    606                              $(CPPFLAGS_mozilla_EXTRA) 
     606                             $(CPPFLAGS_mozilla_EXTRA) -Imozilla 
    607607mozilla_libplugin_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags mozilla pic` \ 
    608                                $(CPPFLAGS_mozilla_EXTRA) 
     608                               $(CPPFLAGS_mozilla_EXTRA) -Imozilla 
    609609mozilla_libplugin_a_DEPENDENCIES = lib/libvlc_pic.a $(DATA_npvlc_rc) builtins_pic 
    610610 
     
    624624mozilla/vlcintf.xpt: Makefile mozilla/vlcintf.idl 
    625625    $(XPIDL) -I/usr/share/idl/mozilla -m typelib \ 
    626       -o mozilla/vlcintf mozilla/vlcintf.idl 
     626      -o mozilla/vlcintf $(srcdir)/mozilla/vlcintf.idl 
    627627 
    628628mozilla/vlcintf.h: Makefile mozilla/vlcintf.idl 
    629629    $(XPIDL) -I/usr/share/idl/mozilla -m header \ 
    630       -o mozilla/vlcintf mozilla/vlcintf.idl 
     630      -o mozilla/vlcintf $(srcdir)/mozilla/vlcintf.idl 
    631631 
    632632if HAVE_WIN32 
  • configure.ac

    r7cd00a5 r655212d  
    31083108dnl  Handle substvars that use $(top_srcdir) 
    31093109dnl 
    3110 VLC_CONFIG="\$(top_srcdir)/vlc-config" 
     3110VLC_CONFIG="\$(top_builddir)/vlc-config" 
    31113111AC_SUBST(VLC_CONFIG) 
    31123112CPPFLAGS_save="${CPPFLAGS_save} -I\$(top_srcdir)/include" 
  • debian/changelog

    r1f4f223 r655212d  
     1vlc (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 
    18vlc (0.6.0+cvs-20030627-1) unstable; urgency=low 
    29 
  • m4/vlc.m4

    r9abee4a r655212d  
    3030AC_DEFUN([AX_ADD_CPPFLAGS], [ 
    3131  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}
    3434  done 
    3535]) 
     
    3737AC_DEFUN([AX_ADD_CFLAGS], [ 
    3838  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}
    4141  done 
    4242]) 
     
    4444AC_DEFUN([AX_ADD_CXXFLAGS], [ 
    4545  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}
    4848  done 
    4949]) 
     
    5151AC_DEFUN([AX_ADD_OBJCFLAGS], [ 
    5252  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}
    5555  done 
    5656]) 
     
    5858AC_DEFUN([AX_ADD_LDFLAGS], [ 
    5959  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}
    6262  done 
    6363]) 
     
    6868 
    6969  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"
    7171    | sed -e "s/@gprof@/${enable_gprof}/" \ 
    7272          -e "s/@cprof@/${enable_cprof}/" \ 
     
    111111 
    112112  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 
    114115 
    115116  AX_VLC_CONFIG_HELPER 
    116117 
    117118  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 
    119121]) 
    120122 
  • modules/gui/skins/src/dialogs.cpp

    rae09816 r655212d  
    33 ***************************************************************************** 
    44 * 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 $ 
    66 * 
    77 * Authors: Gildas Bazin <gbazin@netcourrier.com> 
     
    6060 
    6161#include "../../wxwindows/wxwindows.h" 
    62 #include "share/vlc32x32.xpm"       // include the graphic icon 
     62#include "../../../../share/vlc32x32.xpm"       // include the graphic icon 
    6363 
    6464#define ShowOpen_Event     0 
  • modules/gui/wxwindows/interface.cpp

    r9ea835e r655212d  
    33 ***************************************************************************** 
    44 * 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 $ 
    66 * 
    77 * Authors: Gildas Bazin <gbazin@netcourrier.com> 
     
    6969 
    7070/* include the icon graphic */ 
    71 #include "share/vlc32x32.xpm" 
     71#include "../../../share/vlc32x32.xpm" 
    7272 
    7373/***************************************************************************** 
  • toolbox

    rc278cac r655212d  
    22 
    33##  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 $ 
    55## 
    66##  Authors: Samuel Hocevar <sam@zoy.org> 
     
    3838getfiles() 
    3939{ 
    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" | \ 
    4141    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}/," 
    4344} 
    4445 
     
    115116then 
    116117  echo "generating Visual Studio files..." 
     118 
     119  srcdir="`sed -ne 's/^srcdir *= *//p;T;q' < Makefile`" 
    117120 
    118121  #  The evil ^M 
     
    365368  #set -x 
    366369 
     370  srcdir="`sed -ne 's/^srcdir *= *//p;T;q' < Makefile`" 
    367371  LIBVLC_HEADERS=`getfiles HEADERS_include` 
    368372  BUILTINS=`sed -ne 's/.*builtins *= *" *\([^"]*\)".*/\1/p' vlc-config` 
    369373 
    370   file=include/vlc_symbols.h 
     374  file="${srcdir}/include/vlc_symbols.h" 
    371375 
    372376  rm -f ${file}.in 
     
    386390  fi 
    387391 
    388   file=src/misc/modules_plugin.h 
     392  file="${srcdir}/src/misc/modules_plugin.h" 
    389393 
    390394  rm -f ${file}.tmp && cp ${file}.in ${file}.tmp 
     
    401405  fi 
    402406 
    403   file=src/misc/modules_builtin.h 
     407  file="${srcdir}/src/misc/modules_builtin.h" 
    404408 
    405409  rm -f ${file}.tmp && cp ${file}.in ${file}.tmp