-
-
Notifications
You must be signed in to change notification settings - Fork 134
/
Copy pathbuild.bat
36 lines (30 loc) · 1.22 KB
/
build.bat
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
::! https://github.com/3F/DllExport
@echo off & if "%~1"=="#" (
if "%~2"=="ilasm" ( if "%~3"=="" echo -x64& echo -x86& exit /B0
if not exist src\coreclr\.gitignore call git submodule update --init src/coreclr
if "%~3"=="-x86" set "_dxpILAsmBinX=86"
setlocal & cd src\coreclr & build.ilasm %3 -release
) else if /I "%~2"=="CI" (
shift & shift & setlocal
cd .tools & call netfx4sdk -mode sys || call netfx4sdk -mode pkg
endlocal
) else if "%~2"=="" ( call .tools\hMSBuild ~x -GetNuTool & exit /B0 ) else goto err
) else if "%~1"=="" (
echo.&echo %~n0 {configuration} ^| # [option and keys]
echo.&echo %~n0 Release &echo %~n0 # &echo %~n0 # CI Release &echo %~n0 # ilasm -x64
exit /B 0
)
set reltype=%~1
if not defined reltype set reltype=Release
call .tools\gnt & call packages\vsSolutionBuildEvent\cim.cmd ~x ~c %reltype% DllExport.sln || goto err
set "frel=%reltype:Public=%"
setlocal enableDelayedExpansion
cd bin\%frel%\raw\tests
call a initAppVersion Dxp
call a execute "..\DllExport -h" & call a msgOrFailAt 1 "DllExport %appversionDxp%" || goto err
call a printMsgAt 1 3F "Completed as a "
endlocal
exit /B 0
:err
echo Failed build>&2
exit /B 1