Welcome to mirror list, hosted at ThFree Co, Russian Federation.

build.cmd - github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6c3f589ddc6fb7ca63d0e6aeab67fa4d7392f82f (plain)
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
@if not defined _echo @echo off
setlocal

if /I [%1] == [-?] goto Usage

if [%1] == [] goto Build

set _rootDirectory=%CD%\
if EXIST %_rootDirectory%%1 goto :BuildDirectory
set _rootDirectory=%~dp0src\
if EXIST %_rootDirectory%%1 goto :BuildDirectory

:Build
call %~dp0build-native.cmd %*
if NOT [%ERRORLEVEL%]==[0] exit /b 1
call %~dp0build-managed.cmd -BuildPackages=true %*
exit /b %ERRORLEVEL%
goto :EOF

:BuildDirectory
echo %~dp0run.cmd build-directory -directory:%_rootDirectory%%*
call %~dp0run.cmd build-directory -directory:%_rootDirectory%%*
exit /b %ERRORLEVEL%

goto :EOF

:Usage
echo.
echo There are new changes on how we build. Use this script only for generic
echo build instructions that apply for both build native and build managed.
echo Otherwise:
echo.
echo Before                Now
echo build.cmd native      build-native.cmd
echo build.cmd managed     build-managed.cmd
echo.
echo For more information: "https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/developer-guide.md"
echo ----------------------------------------------------------------------------
echo.
echo.
goto :Build