bootstrap.bat now forwards to the powershell script

This commit is contained in:
isanae
2020-05-25 02:53:08 -04:00
parent d8bffc5dfd
commit 099a3368d3
2 changed files with 2 additions and 41 deletions
+1 -40
View File
@@ -1,40 +1 @@
@echo off
Setlocal EnableDelayedExpansion
set "vswhere_cmd=third-party\bin\vswhere.exe -nologo -prerelease -latest -property installationPath"
for /F "tokens=* USEBACKQ" %%A in (`%vswhere_cmd%`) do (
set ret=%errorlevel%
if %errorlevel% neq 0 (
echo %%F
echo vswhere returned %ret%
exit /b 1
)
set "installation_path=%%A"
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%"
if %errorlevel% neq 0 (
echo build failed
exit /b 1
)
copy "build\Release\x64\mob.exe" .\mob.exe > NUL
echo run `mob -d prefix/path build` to start building
@powershell .\bootstrap.ps1
+1 -1
View File
@@ -32,4 +32,4 @@ if (! $?) {
}
Copy-Item "build\Release\x64\mob.exe" ".\mob.exe"
echo "Run ``.\mob -d prefix/path build`` to start building"
echo "run ``.\mob -d prefix/path build`` to start building"