Files
mob/bootstrap.bat
T
isanae 932495f36d fixed a few leaking exceptions
force filenames for stylesheets, some are just version numbers
changed curl downloader to use CreateFile(), was getting access denied errors
fixed curl sometimes getting stuck
sip has to start downloading after python because it uses python.exe
fixed op::check() to be case insensitive
better message when important variables are missing
bootstrap: uses vcvars, multi process
2020-05-06 07:43:15 -04:00

34 lines
853 B
Batchfile

@echo off
Setlocal EnableDelayedExpansion
set "vswhere_cmd=third-party\bin\vswhere.exe -nologo -prerelease -latest -property installationPath"
for /F "tokens=* USEBACKQ" %%F in (`%vswhere_cmd%`) do (
set ret=%errorlevel%
if %errorlevel% neq 0 (
echo %%F
echo vswhere returned %ret%
exit /b 1
)
set installation_path=%%F
if "%installation_path%" == "" (
echo empty installation path
exit /b 1
)
)
set "opts="
set "opts=%opts% vs/mob.sln"
set "opts=%opts% -m "
set "opts=%opts% -p:Configuration=Release"
set "opts=%opts% -noLogo "
set "opts=%opts% -p:UseMultiToolTask=true"
set "opts=%opts% -p:EnforceProcessCountAcrossBuilds=true"
set "opts=%opts% -clp:ErrorsOnly;Verbosity=minimal"
set "vcvars=%installation_path%\VC\Auxiliary\Build\vcvarsall.bat"
cmd /c ""%vcvars%" amd64 > NUL && msbuild %opts%"
echo run `mob` to start building