@echo off
cd /d %~dp0src
set path=%~dp0..\..\depot_tools;%path%
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
if [%1]==[] goto error
ninja -C out/mybuild chrome
ninja -C out/mybuild chromedriver
ninja -C out/mybuild mini_installer
for %%i in (chrome.packed.7z,chromedriver.exe,mini_installer.exe,setup.exe) do (
if exist out\mybuild\%%i (
copy out\mybuild\%%i ..\..\build_result\%1\x64\
)
)
REM copy out\mybuild\chrome.packed.7z ..\..\build_result\%1\x64\
REM copy out\mybuild\chromedriver.exe ..\..\build_result\%1\x64\
REM copy out\mybuild\setup.exe ..\..\build_result\%1\x64\
ninja -C out/mybuild -t graph all > ..\..\build_result\%1\deps.dot
ninja -C out/mybuild -t targets > ..\..\build_result\%1\targets.txt
if [%2] neq [] (
rd /s /q out\mybuild
)
echo Done.
GOTO :EOF
:error
echo Need a version number.
|