-
Notifications
You must be signed in to change notification settings - Fork 1
/
make.bat
54 lines (46 loc) · 1.23 KB
/
make.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@echo off
if /i "%1%" == "" (
goto :NMAKE
) else if /i "%1%" == "debug" (
goto :NMAKE
) else if /i "%1%" == "test" (
goto :NMAKE
) else if /i "%1%" == "cov" (
goto :NMAKE
) else if /i "%1%" == "prod" (
goto :NMAKE
) else if /i "%1%" == "doc" (
goto :NMAKE
) else if /i "%1%" == "all" (
goto :NMAKE
) else if /i "%1%" == "teamcity" (
goto :NMAKE
) else if /i "%1%" == "update" (
goto :NMAKE
) else if /i "%1%" == "clean" (
goto :NMAKE
)
) else (
goto :SHOW_USAGE
)
:NMAKE
set OLD_PATH=%PATH%
call "%VS140COMNTOOLS%VsDevCmd.bat"
nmake %*
set PATH=%OLD_PATH%
goto :eof
:SHOW_USAGE
echo make.bat [target]
echo.
echo Valid modes:
echo debug : Only builds debug artifacts [Default]
echo test : Runs Unit Tests
echo cov : Runs Unit Tests and captures code coverage
echo prod : Only builds release artifacts
echo doc : Build the documentation
echo all : Builds both debug and release artifacts, runs unit tests,
echo and captures coverage information
echo teamcity : Runs the full build (same as all) but does not generate
echo html reports
echo update : Updates all dependencies
echo clean : Cleans the build