aboutsummaryrefslogtreecommitdiff
path: root/src/ext/Bal/bal.cmd
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2021-04-26 11:31:05 -0700
committerRob Mensching <rob@firegiant.com>2021-05-11 11:14:01 -0700
commitdf016066100df955d5ff98811e113fb2b1bd4b8a (patch)
treea27b35a3651ca7b1d8c4bb7c7483ec2f92583e08 /src/ext/Bal/bal.cmd
parentdc6022da6cdbb9d7ca54c4a36485ceead07feaaf (diff)
downloadwix-df016066100df955d5ff98811e113fb2b1bd4b8a.tar.gz
wix-df016066100df955d5ff98811e113fb2b1bd4b8a.tar.bz2
wix-df016066100df955d5ff98811e113fb2b1bd4b8a.zip
Implement integrated build process
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