aboutsummaryrefslogtreecommitdiff
path: root/src/ext/Bal/bal.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext/Bal/bal.cmd')
-rw-r--r--src/ext/Bal/bal.cmd36
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
12nuget restore dnchost\packages.config || exit /b
13msbuild -t:Restore -p:Configuration=%_C% || exit /b
14
15:: Build
16msbuild -p:Configuration=%_C%;Platform=x86 dnchost\dnchost.vcxproj || exit /b
17msbuild -p:Configuration=%_C%;Platform=x64 dnchost\dnchost.vcxproj || exit /b
18msbuild -p:Configuration=%_C%;Platform=ARM64 dnchost\dnchost.vcxproj || exit /b
19
20msbuild -p:Configuration=%_C%;Platform=x86 mbahost\mbahost.vcxproj || exit /b
21msbuild -p:Configuration=%_C%;Platform=x64 mbahost\mbahost.vcxproj || exit /b
22msbuild -p:Configuration=%_C%;Platform=ARM64 mbahost\mbahost.vcxproj || exit /b
23
24msbuild -p:Configuration=%_C% || exit /b
25msbuild -p:Configuration=%_C% test\examples\examples.proj || exit /b
26
27:: Test
28dotnet test -c %_C% --no-build test\WixToolsetTest.Bal || exit /b
29dotnet test -c %_C% --no-build test\WixToolsetTest.ManagedHost || exit /b
30
31:: Pack
32msbuild -t:Pack -p:Configuration=%_C% -p:NoBuild=true wixext\WixToolset.Bal.wixext.csproj || exit /b
33msbuild -t:Pack -p:Configuration=%_C% -p:NoBuild=true WixToolset.Mba.Host\WixToolset.Mba.Host.csproj || exit /b
34
35@popd
36@endlocal