main
cmd 39 lines 1.31 KB
Raw
1 @setlocal
2 @pushd %~dp0
3
4 @set _C=Debug
5 :parse_args
6 @if /i "%1"=="release" set _C=Release
7 @if /i "%1"=="inc" set _INC=1
8 @if /i "%1"=="clean" set _CLEAN=1
9 @if not "%1"=="" shift & goto parse_args
10
11 :: Clean
12
13 @if "%_INC%"=="" call :clean
14 @if NOT "%_CLEAN%"=="" goto :end
15
16 @echo Building dtf %_C%
17
18 msbuild -Restore SfxCA\sfxca_t.proj -p:Configuration=%_C% -tl -nologo -m -warnaserror -bl:..\..\build\logs\dtf_sfxca.binlog || exit /b
19
20 msbuild -Restore -t:Pack dtf.sln -p:Configuration=%_C% -tl -nologo -m -warnaserror -bl:..\..\build\logs\dtf_build.binlog || exit /b
21
22 @goto :end
23
24 :clean
25 @rd /s/q "..\..\build\dtf" 2> nul
26 @del "..\..\build\artifacts\WixToolset.Dtf.*.nupkg" 2> nul
27 @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.dtf.compression" 2> nul
28 @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.dtf.compression.cab" 2> nul
29 @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.dtf.compression.zip" 2> nul
30 @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.dtf.customaction" 2> nul
31 @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.dtf.resources" 2> nul
32 @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.dtf.windowsinstaller" 2> nul
33 @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.dtf.windowsinstaller.linq" 2> nul
34 @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.dtf.windowsinstaller.package" 2> nul
35 @exit /b
36
37 :end
38 @popd
39 @endlocal