diff options
author | Rob Mensching <rob@firegiant.com> | 2022-07-26 17:20:39 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2022-08-01 20:25:19 -0700 |
commit | a627ca9b720047e633a8fe72003ab9bee31006c5 (patch) | |
tree | 2bc8a924bb4141ab718e74d08f6459a0ffe8d573 /src/tools/tools.cmd | |
parent | 521eb3c9cf38823a2c4019abb85dc0b3200b92cb (diff) | |
download | wix-a627ca9b720047e633a8fe72003ab9bee31006c5.tar.gz wix-a627ca9b720047e633a8fe72003ab9bee31006c5.tar.bz2 wix-a627ca9b720047e633a8fe72003ab9bee31006c5.zip |
Create WixToolset.Heat.nupkg to distribute heat.exe and Heat targets
Moves Heat functionality to the "tools" layer and packages it all
up in WixToolset.Heat.nupkg for distribution in WiX v4.
Completes 6838
Diffstat (limited to 'src/tools/tools.cmd')
-rw-r--r-- | src/tools/tools.cmd | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/src/tools/tools.cmd b/src/tools/tools.cmd index 4764a8fe..125bf298 100644 --- a/src/tools/tools.cmd +++ b/src/tools/tools.cmd | |||
@@ -2,17 +2,40 @@ | |||
2 | @pushd %~dp0 | 2 | @pushd %~dp0 |
3 | 3 | ||
4 | @set _C=Debug | 4 | @set _C=Debug |
5 | @set _L=%~dp0..\..\build\logs | ||
6 | |||
5 | :parse_args | 7 | :parse_args |
6 | @if /i "%1"=="release" set _C=Release | 8 | @if /i "%1"=="release" set _C=Release |
9 | @if /i "%1"=="inc" set _INCREMENTAL=1 | ||
10 | @if /i "%1"=="clean" set _INCREMENTAL= & set _CLEAN=1 | ||
7 | @if not "%1"=="" shift & goto parse_args | 11 | @if not "%1"=="" shift & goto parse_args |
8 | 12 | ||
13 | :: Clean | ||
14 | @if NOT "%_INCREMENTAL%"=="" call :clean | ||
15 | @if NOT "%_CLEAN%"=="" goto :end | ||
16 | |||
9 | @echo Building tools %_C% | 17 | @echo Building tools %_C% |
10 | 18 | ||
11 | :: tools | 19 | :: Build |
20 | msbuild -Restore tools.sln -p:Configuration=%_C% -nologo -m -warnaserror -bl:..\..\build\logs\tools_build.binlog || exit /b | ||
21 | |||
22 | :: Publish | ||
23 | msbuild publish_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\tools_publish.binlog || exit /b | ||
24 | |||
25 | :: Test | ||
26 | dotnet test -c %_C% --no-build --nologo test\WixToolsetTest.HeatTasks -l "trx;LogFileName=%_L%\TestResults\WixToolsetTest.HeatTasks.trx" || exit /b | ||
27 | |||
28 | :: Pack | ||
29 | msbuild -t:Pack WixToolset.Heat -p:Configuration=%_C% -p:NoBuild=true -nologo -m -warnaserror -bl:..\..\build\logs\tools_pack.binlog || exit /b | ||
12 | 30 | ||
13 | nuget restore || exit /b | 31 | @goto :end |
14 | 32 | ||
15 | msbuild -t:Build -p:Configuration=%_C% -nologo -m -warnaserror -bl:..\..\build\logs\tools_build.binlog || exit /b | 33 | :clean |
34 | @rd /s/q "..\..\build\tools" 2> nul | ||
35 | @del "..\..\build\artifacts\WixToolset.Heat.*.nupkg" 2> nul | ||
36 | @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.heat" 2> nul | ||
37 | @exit /b | ||
16 | 38 | ||
39 | :end | ||
17 | @popd | 40 | @popd |
18 | @endlocal | 41 | @endlocal |