[vlc-commits] vlc: allow forcing the tools to use when running bootstrap

Steve Lhomme git at videolan.org
Wed May 29 14:05:52 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri May  3 14:28:51 2019 +0200| [4d90c34a81dc18522fb73ffbad56003dc2976cd4] | committer: Steve Lhomme

vlc: allow forcing the tools to use when running bootstrap

On Windows it's possible to build VLC in either msys2 or WSL. But the tools are
shared and incompatible. Only one at a time is currently possible. This will
allow switching back and forth without rebuilding tools all the time
(especially since they are detected as built).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4d90c34a81dc18522fb73ffbad56003dc2976cd4
---

 bootstrap | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/bootstrap b/bootstrap
index a9f86b6063..b6a4ce682d 100755
--- a/bootstrap
+++ b/bootstrap
@@ -20,8 +20,11 @@ fi
 ACLOCAL_ARGS="-I m4 ${ACLOCAL_ARGS}"
 
 # Check for tools directory
-if test -d extras/tools/build/bin; then
-  PATH="`pwd`/extras/tools/build/bin:$PATH"
+if test -z ${VLC_TOOLS}; then
+  VLC_TOOLS=extras/tools/build
+fi
+if test -d ${VLC_TOOLS}/bin; then
+  PATH="`realpath ${VLC_TOOLS}`/bin:$PATH"
 fi
 
 ###



More information about the vlc-commits mailing list