forked from dotnet/corert
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.cmd
53 lines (36 loc) · 1.14 KB
/
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
44
45
46
47
48
49
50
51
52
53
@if not defined _echo @echo off
setlocal EnableDelayedExpansion
set __ThisScriptShort=%0
if /i "%1" == "/?" goto HelpVarCall
if /i "%1" == "-?" goto HelpVarCall
if /i "%1" == "/h" goto HelpVarCall
if /i "%1" == "-h" goto HelpVarCall
if /i "%1" == "/help" goto HelpVarCall
if /i "%1" == "-help" goto HelpVarCall
goto :NormalVarCall
:HelpVarCall
call %~dp0buildscripts\buildvars-setup.cmd -help
exit /b 1
:NormalVarCall
call %~dp0buildscripts\buildvars-setup.cmd %*
IF NOT ERRORLEVEL 1 goto AfterVarSetup
echo Setting build variables failed.
exit /b %ERRORLEVEL%
:AfterVarSetup
echo Commencing CoreRT Repo build
echo.
call %~dp0buildscripts\build-native.cmd %*
IF NOT ERRORLEVEL 1 goto AfterNativeBuild
echo Native component build failed. Refer !__NativeBuildLog! for details.
exit /b %ERRORLEVEL%
:AfterNativeBuild
call %~dp0buildscripts\build-managed.cmd %*
IF NOT ERRORLEVEL 1 goto AfterManagedBuild
echo Managed component build failed. Refer !__BuildLog! for details.
exit /b %ERRORLEVEL%
:AfterManagedBuild
call %~dp0buildscripts\build-tests.cmd %*
IF NOT ERRORLEVEL 1 goto AfterTests
echo Tests failed.
exit /b %ERRORLEVEL%
:AfterTests