Fix batch script
- Miscellaneous tweaks to satisfy the builders. Change-Id: I4874eae7b5f5cbd52c32fd12bdf83abf4c2aadc9
This commit is contained in:
parent
75a4b55b34
commit
fe53cd0337
|
@ -3,27 +3,25 @@ set OUTPUT_DIRECTORY=Release_x64
|
|||
set GYP_DEFINES=target_arch=x64
|
||||
|
||||
set ROOTDIR=%cd%
|
||||
set PACKAGERDIR=%ROOTDIR%\git\packager
|
||||
|
||||
:: TODO(rkuroiwa): There are several `dir`s in this script to figure out the
|
||||
:: directory structure created by the builder. Remove them.
|
||||
dir
|
||||
|
||||
dir ..
|
||||
set PACKAGERDIR=%ROOTDIR%\git\src
|
||||
|
||||
:: TODO(rkuroiwa): Put this in a batch script and source it, so that this
|
||||
:: doesn't need to be copied for all configurations.
|
||||
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git ..\depot_tools\
|
||||
set DEPOTTOOLSDIR=%ROOTDIR%\..\depot_tools
|
||||
git clone "https://chromium.googlesource.com/chromium/tools/depot_tools.git" depot_tools
|
||||
set DEPOTTOOLSDIR=%ROOTDIR%\depot_tools
|
||||
|
||||
python %PACKAGERDIR%\kokoro\deps_replacer.py "github.com" "github.googlesource.com"
|
||||
python %PACKAGERDIR%\kokoro\deps_replacer.py "https://github.com" "https://github.googlesource.com"
|
||||
|
||||
cd %PACKAGERDIR%\..
|
||||
dir
|
||||
move packager src
|
||||
|
||||
%DEPOTTOOLSDIR%\gclient config https://github.com/google/shaka-packager.git --name=src --unmanaged
|
||||
%DEPOTTOOLSDIR%\gclient sync
|
||||
:: Note that gclient file is a batch script, so 'call' must be used to wait for
|
||||
:: the result.
|
||||
:: Also gclient turns off echo, so echo is re-enabled after the command.
|
||||
call %DEPOTTOOLSDIR%\gclient config "https://github.com/google/shaka-packager.git" --name=src --unmanaged
|
||||
echo on
|
||||
call %DEPOTTOOLSDIR%\gclient sync
|
||||
echo on
|
||||
|
||||
cd src
|
||||
%DEPOTTOOLSDIR%\ninja -C "out\%OUTPUT_DIRECTORY%" -k 100
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
build_file: "packager/kokoro/windows/x64/build.bat"
|
||||
build_file: "src/kokoro/windows/x64/build.bat"
|
||||
|
|
|
@ -1 +1 @@
|
|||
build_file: "packager/kokoro/windows/x64/build.bat"
|
||||
build_file: "src/kokoro/windows/x64/build.bat"
|
||||
|
|
Loading…
Reference in New Issue