2017-04-10 11:41:01 +00:00
|
|
|
@if not defined _echo @echo off
|
|
|
|
setlocal
|
|
|
|
|
|
|
|
if /I [%1] == [-?] goto Usage
|
|
|
|
|
2017-10-19 20:04:20 +00:00
|
|
|
if [%1] == [] goto Build
|
|
|
|
|
|
|
|
set _rootDirectory=%CD%\
|
|
|
|
if EXIST %_rootDirectory%%1 goto :BuildDirectory
|
|
|
|
set _rootDirectory=%~dp0src\
|
|
|
|
if EXIST %_rootDirectory%%1 goto :BuildDirectory
|
|
|
|
|
2017-04-10 11:41:01 +00:00
|
|
|
:Build
|
|
|
|
call %~dp0build-native.cmd %*
|
|
|
|
if NOT [%ERRORLEVEL%]==[0] exit /b 1
|
2017-06-07 13:16:24 +00:00
|
|
|
call %~dp0build-managed.cmd -BuildPackages=true %*
|
2017-04-10 11:41:01 +00:00
|
|
|
exit /b %ERRORLEVEL%
|
2017-10-19 20:04:20 +00:00
|
|
|
goto :EOF
|
|
|
|
|
|
|
|
:BuildDirectory
|
|
|
|
echo %~dp0run.cmd build-directory -directory:%_rootDirectory%%*
|
|
|
|
call %~dp0run.cmd build-directory -directory:%_rootDirectory%%*
|
|
|
|
exit /b %ERRORLEVEL%
|
|
|
|
|
|
|
|
goto :EOF
|
2017-04-10 11:41:01 +00:00
|
|
|
|
|
|
|
: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
|