aboutsummaryrefslogtreecommitdiff
path: root/src/setup/setup.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'src/setup/setup.cmd')
-rw-r--r--src/setup/setup.cmd41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/setup/setup.cmd b/src/setup/setup.cmd
new file mode 100644
index 00000000..8096792b
--- /dev/null
+++ b/src/setup/setup.cmd
@@ -0,0 +1,41 @@
1@setlocal
2@pushd %~dp0
3
4@set _C=Debug
5@set _L=%~dp0..\..\build\logs
6
7:parse_args
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
11@if not "%1"=="" shift & goto parse_args
12
13:: Clean
14@if NOT "%_INCREMENTAL%"=="" call :clean
15@if NOT "%_CLEAN%"=="" goto :end
16
17@echo Building setup %_C%
18
19:: Build
20msbuild -Restore setup.sln -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\setup_build.binlog || exit /b
21
22:: Publish
23
24
25:: Test
26
27
28:: Pack
29
30
31@goto :end
32
33:clean
34@rd /s/q "..\..\build\setup" 2> nul
35@del "..\..\build\artifacts\WixAdditionalTools.*" 2> nul
36@del "..\..\build\logs\pdbs\%_C%\WixAdditionalTools.*" 2> nul
37@exit /b
38
39:end
40@popd
41@endlocal