diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-04-26 11:31:05 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-05-11 11:14:01 -0700 |
| commit | df016066100df955d5ff98811e113fb2b1bd4b8a (patch) | |
| tree | a27b35a3651ca7b1d8c4bb7c7483ec2f92583e08 /src/api/api.cmd | |
| parent | dc6022da6cdbb9d7ca54c4a36485ceead07feaaf (diff) | |
| download | wix-df016066100df955d5ff98811e113fb2b1bd4b8a.tar.gz wix-df016066100df955d5ff98811e113fb2b1bd4b8a.tar.bz2 wix-df016066100df955d5ff98811e113fb2b1bd4b8a.zip | |
Implement integrated build process
Diffstat (limited to 'src/api/api.cmd')
| -rw-r--r-- | src/api/api.cmd | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/api/api.cmd b/src/api/api.cmd new file mode 100644 index 00000000..e08c10aa --- /dev/null +++ b/src/api/api.cmd | |||
| @@ -0,0 +1,43 @@ | |||
| 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 api %_C% | ||
| 10 | |||
| 11 | :: burn | ||
| 12 | |||
| 13 | nuget restore burn\api_burn.sln || exit /b | ||
| 14 | |||
| 15 | msbuild -p:Configuration=%_C%;Platform=x86;PlatformToolset=v142 burn\api_burn.sln || exit /b | ||
| 16 | msbuild -p:Configuration=%_C%;Platform=x64;PlatformToolset=v142 burn\api_burn.sln || exit /b | ||
| 17 | msbuild -p:Configuration=%_C%;Platform=ARM64;PlatformToolset=v142 burn\api_burn.sln || exit /b | ||
| 18 | |||
| 19 | msbuild -p:Configuration=%_C%;Platform=x86;PlatformToolset=v141 burn\api_burn.sln || exit /b | ||
| 20 | msbuild -p:Configuration=%_C%;Platform=x64;PlatformToolset=v141 burn\api_burn.sln || exit /b | ||
| 21 | msbuild -p:Configuration=%_C%;Platform=ARM64;PlatformToolset=v141 burn\api_burn.sln || exit /b | ||
| 22 | |||
| 23 | msbuild -p:Configuration=%_C%;Platform=x86;PlatformToolset=v140 burn\api_burn.sln || exit /b | ||
| 24 | msbuild -p:Configuration=%_C%;Platform=x64;PlatformToolset=v140 burn\api_burn.sln || exit /b | ||
| 25 | |||
| 26 | dotnet test -c %_C% --no-build burn\test\WixToolsetTest.Mba.Core\WixToolsetTest.Mba.Core.csproj || exit /b | ||
| 27 | |||
| 28 | msbuild -t:PackNative -p:Configuration=%_C% burn\balutil\balutil.vcxproj || exit /b | ||
| 29 | msbuild -t:PackNative -p:Configuration=%_C% burn\bextutil\bextutil.vcxproj || exit /b | ||
| 30 | msbuild -t:PackNative -Restore -p:Configuration=%_C% burn\WixToolset.BootstrapperCore.Native\WixToolset.BootstrapperCore.Native.proj || exit /b | ||
| 31 | msbuild -t:Pack -p:Configuration=%_C% -p:NoBuild=true burn\WixToolset.Mba.Core\WixToolset.Mba.Core.csproj || exit /b | ||
| 32 | |||
| 33 | |||
| 34 | :: wix | ||
| 35 | |||
| 36 | msbuild -Restore -p:Configuration=%_C% wix\api_wix.sln || exit /b | ||
| 37 | |||
| 38 | dotnet test -c %_C% --no-build wix\api_wix.sln || exit /b | ||
| 39 | |||
| 40 | msbuild -t:Pack -p:Configuration=%_C% -p:NoBuild=true wix\api_wix.sln || exit /b | ||
| 41 | |||
| 42 | @popd | ||
| 43 | @endlocal | ||
