forked from microsoft/Win2D
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.cmd
More file actions
34 lines (25 loc) · 757 Bytes
/
build.cmd
File metadata and controls
34 lines (25 loc) · 757 Bytes
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
@echo off
IF "%VisualStudioVersion%" LSS "12.0" (
ECHO Please run this script from a Visual Studio 2013 Command Prompt.
PAUSE
GOTO END
)
WHERE /Q msbuild >NUL
IF %ERRORLEVEL% NEQ 0 (
ECHO Error: It appears that 'msbuild' is not available in this environment.
ECHO Please run this script from a Visual Studio 2013 Command Prompt.
GOTO END
)
msbuild "%~dp0Win2D.proj" /v:m /maxcpucount /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
:END