2017-04-13 21:56:59 +00:00
|
|
|
:: Copyright 2017 Google Inc. All Rights Reserved.
|
|
|
|
set ROOTDIR=%cd%
|
2017-04-13 22:38:35 +00:00
|
|
|
set PACKAGERDIR=%ROOTDIR%\git\src
|
2017-04-13 21:56:59 +00:00
|
|
|
|
2017-04-17 19:21:04 +00:00
|
|
|
set GYP_DEFINES="target_arch=%PLATFORM%"
|
|
|
|
if "%PLATFORM%"=="x64" (
|
|
|
|
set OUTPUT_DIRECTORY="out\%CONFIGURATION%_x64"
|
|
|
|
) else (
|
|
|
|
set OUTPUT_DIRECTORY="out\%CONFIGURATION%"
|
|
|
|
)
|
|
|
|
|
2017-04-13 21:56:59 +00:00
|
|
|
:: TODO(rkuroiwa): Put this in a batch script and source it, so that this
|
|
|
|
:: doesn't need to be copied for all configurations.
|
2017-04-13 22:38:35 +00:00
|
|
|
git clone "https://chromium.googlesource.com/chromium/tools/depot_tools.git" depot_tools
|
|
|
|
set DEPOTTOOLSDIR=%ROOTDIR%\depot_tools
|
2017-04-13 21:56:59 +00:00
|
|
|
|
2017-04-13 22:38:35 +00:00
|
|
|
python %PACKAGERDIR%\kokoro\deps_replacer.py "https://github.com" "https://github.googlesource.com"
|
2017-04-13 21:56:59 +00:00
|
|
|
|
|
|
|
cd %PACKAGERDIR%\..
|
|
|
|
|
2017-04-13 22:38:35 +00:00
|
|
|
:: 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
|
|
|
|
|
2017-04-13 21:56:59 +00:00
|
|
|
cd src
|
2017-04-18 21:45:07 +00:00
|
|
|
%DEPOTTOOLSDIR%\ninja -C "%OUTPUT_DIRECTORY%" -k 100 || exit /b 1
|
2017-04-13 21:56:59 +00:00
|
|
|
|
2017-04-17 19:21:04 +00:00
|
|
|
copy "%OUTPUT_DIRECTORY%\packager.exe" packager-win.exe
|
|
|
|
for %%f in ("%OUTPUT_DIRECTORY%\*_*test.exe") do (%%f || exit /b 666)
|
|
|
|
python "%OUTPUT_DIRECTORY%\packager_test.py" -v
|