|
1 | 1 | @echo off
|
| 2 | +setlocal enabledelayedexpansion |
| 3 | + |
2 | 4 | pushd "%~dp0"
|
3 | 5 |
|
| 6 | +set msbuild="%PROGRAMFILES(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" |
| 7 | + |
| 8 | +for /f "usebackq tokens=*" %%i in (`vswhere -latest -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe`) do ( |
| 9 | + set msbuild="%%i" |
| 10 | +) |
| 11 | + |
4 | 12 | if exist bin rd /s /q bin
|
5 | 13 | if exist lib rd /s /q lib
|
6 | 14 | if exist ucxxrt rd /s /q ucxxrt
|
7 | 15 |
|
8 |
| -"%PROGRAMFILES(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" /p:Configuration=Release /p:Platform=x86 ..\..\ucxxrt.sln -t:ucxxrt |
9 |
| -"%PROGRAMFILES(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" /p:Configuration=Debug /p:Platform=x86 ..\..\ucxxrt.sln -t:ucxxrt |
| 16 | +%msbuild% -p:Configuration=Debug -p:Platform=x86 ..\..\ucxxrt.sln -t:ucxxrt |
| 17 | +%msbuild% -p:Configuration=Release -p:Platform=x86 ..\..\ucxxrt.sln -t:ucxxrt |
10 | 18 |
|
11 |
| -"%PROGRAMFILES(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" /p:Configuration=Release /p:Platform=x64 ..\..\ucxxrt.sln -t:ucxxrt |
12 |
| -"%PROGRAMFILES(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" /p:Configuration=Debug /p:Platform=x64 ..\..\ucxxrt.sln -t:ucxxrt |
| 19 | +%msbuild% -p:Configuration=Debug -p:Platform=x64 ..\..\ucxxrt.sln -t:ucxxrt |
| 20 | +%msbuild% -p:Configuration=Release -p:Platform=x64 ..\..\ucxxrt.sln -t:ucxxrt |
13 | 21 |
|
14 |
| -"%PROGRAMFILES(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" /p:Configuration=Release /p:Platform=ARM ..\..\ucxxrt.sln -t:ucxxrt |
15 |
| -"%PROGRAMFILES(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" /p:Configuration=Debug /p:Platform=ARM ..\..\ucxxrt.sln -t:ucxxrt |
| 22 | +%msbuild% -p:Configuration=Debug -p:Platform=ARM ..\..\ucxxrt.sln -t:ucxxrt |
| 23 | +%msbuild% -p:Configuration=Release -p:Platform=ARM ..\..\ucxxrt.sln -t:ucxxrt |
16 | 24 |
|
17 |
| -"%PROGRAMFILES(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" /p:Configuration=Release /p:Platform=ARM64 ..\..\ucxxrt.sln -t:ucxxrt |
18 |
| -"%PROGRAMFILES(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" /p:Configuration=Debug /p:Platform=ARM64 ..\..\ucxxrt.sln -t:ucxxrt |
| 25 | +%msbuild% -p:Configuration=Debug -p:Platform=ARM64 ..\..\ucxxrt.sln -t:ucxxrt |
| 26 | +%msbuild% -p:Configuration=Release -p:Platform=ARM64 ..\..\ucxxrt.sln -t:ucxxrt |
19 | 27 |
|
20 | 28 | :exit
|
21 | 29 | popd
|
|
0 commit comments