diff options
Diffstat (limited to 'src/ext/Bal/bal.cmd')
-rw-r--r-- | src/ext/Bal/bal.cmd | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/ext/Bal/bal.cmd b/src/ext/Bal/bal.cmd new file mode 100644 index 00000000..0bc55dfb --- /dev/null +++ b/src/ext/Bal/bal.cmd | |||
@@ -0,0 +1,36 @@ | |||
1 | @setlocal | ||
2 | @pushd %~dp0 | ||
3 | |||
4 | @set _C=Debug | ||
5 | :parse_args | ||
6 | @if /i "%1"=="release" set _C=Release& shift | ||
7 | @if not "%1"=="" shift & goto parse_args | ||
8 | |||
9 | @echo Building ext\Util %_C% using %_N% | ||
10 | |||
11 | :: Restore | ||
12 | nuget restore dnchost\packages.config || exit /b | ||
13 | msbuild -t:Restore -p:Configuration=%_C% || exit /b | ||
14 | |||
15 | :: Build | ||
16 | msbuild -p:Configuration=%_C%;Platform=x86 dnchost\dnchost.vcxproj || exit /b | ||
17 | msbuild -p:Configuration=%_C%;Platform=x64 dnchost\dnchost.vcxproj || exit /b | ||
18 | msbuild -p:Configuration=%_C%;Platform=ARM64 dnchost\dnchost.vcxproj || exit /b | ||
19 | |||
20 | msbuild -p:Configuration=%_C%;Platform=x86 mbahost\mbahost.vcxproj || exit /b | ||
21 | msbuild -p:Configuration=%_C%;Platform=x64 mbahost\mbahost.vcxproj || exit /b | ||
22 | msbuild -p:Configuration=%_C%;Platform=ARM64 mbahost\mbahost.vcxproj || exit /b | ||
23 | |||
24 | msbuild -p:Configuration=%_C% || exit /b | ||
25 | msbuild -p:Configuration=%_C% test\examples\examples.proj || exit /b | ||
26 | |||
27 | :: Test | ||
28 | dotnet test -c %_C% --no-build test\WixToolsetTest.Bal || exit /b | ||
29 | dotnet test -c %_C% --no-build test\WixToolsetTest.ManagedHost || exit /b | ||
30 | |||
31 | :: Pack | ||
32 | msbuild -t:Pack -p:Configuration=%_C% -p:NoBuild=true wixext\WixToolset.Bal.wixext.csproj || exit /b | ||
33 | msbuild -t:Pack -p:Configuration=%_C% -p:NoBuild=true WixToolset.Mba.Host\WixToolset.Mba.Host.csproj || exit /b | ||
34 | |||
35 | @popd | ||
36 | @endlocal | ||