forked from microsoft/Win2D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cmd
43 lines (30 loc) · 790 Bytes
/
build.cmd
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
@echo off
SETLOCAL
IF "%VisualStudioVersion%" LSS "16.0" (
GOTO WRONG_COMMAND_PROMPT
)
WHERE /Q msbuild >NUL
IF %ERRORLEVEL% NEQ 0 (
ECHO Error: It appears that 'msbuild' is not available in this environment.
ECHO.
GOTO WRONG_COMMAND_PROMPT
)
msbuild "%~dp0Win2D.proj" /v:m /maxcpucount /nr:false /p:BuildTests=false /p:BuildTools=false /p:BuildDocs=false
IF %ERRORLEVEL% NEQ 0 (
ECHO Build failed; aborting.
GOTO END
)
msbuild "%~dp0tools\docs\BuildDocs.proj" /nologo /v:m /p:IntellisenseOnly=true
IF %ERRORLEVEL% NEQ 0 (
ECHO Build failed; aborting.
GOTO END
)
ECHO.
CALL "%~dp0build\nuget\build-nupkg.cmd" local
GOTO END
:WRONG_COMMAND_PROMPT
ECHO Please run this script from a Developer Command Prompt for VS2019
ECHO.
PAUSE
GOTO END
:END