This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
/
BuildDeps.cmd
61 lines (46 loc) · 1.53 KB
/
BuildDeps.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
54
55
56
57
58
59
60
61
@echo off
:: 32-bit builds not supported as they have not been tested.
set __BuildArch=x64
set __BuildType=Debug
:Arg_Loop
if "%1" == "" goto ArgsDone
if /i "%1" == "/?" goto Usage
if /i "%1" == "Debug" (set __BuildType=Debug&shift&goto Arg_Loop)
if /i "%1" == "Release" (set __BuildType=Release&shift&goto Arg_Loop)
echo Invalid commandline argument: %1
goto Usage
:ArgsDone
:BuildCoreCLR
pushd coreclr
call build.cmd %__BuildArch% %__BuildType% skipmscorlib skiptests
IF ERRORLEVEL 1 goto Error
mkdir ..\Libs\%__BuildType%\%__BuildArch%\
copy bin\obj\Windows_NT.%__BuildArch%.%__BuildType%\src\jit\dll\%__BuildType%\clrjit.lib ..\Libs\%__BuildType%\%__BuildArch%\
copy bin\obj\Windows_NT.%__BuildArch%.%__BuildType%\src\utilcode\dyncrt\%__BuildType%\utilcode.lib ..\Libs\%__BuildType%\%__BuildArch%\
copy bin\obj\Windows_NT.%__BuildArch%.%__BuildType%\src\gcinfo\lib\%__BuildType%\gcinfo.lib ..\Libs\%__BuildType%\%__BuildArch%\
popd
:BuildPython
:: Keep BuildDebugPython.bat in sync w/ any relevant changes made here.
pushd Python\PCBuild
call get_externals.bat
IF ERRORLEVEL 1 goto Error
call .\build.bat -c %__BuildType% -p %__BuildArch%
IF ERRORLEVEL 1 goto Error
if /i "%__BuildArch%" == "x64" set arch=amd64
set SUFFIX=
if /i "%__BuildType%" == "Debug" set SUFFIX=_d
copy %arch%\python35%SUFFIX%.lib ..\..\Libs\%__BuildType%\%__BuildArch%\
popd
:Done
echo All built...
exit /b 0
:Error
echo something failed to build...
exit /b 1
:Usage
echo.
echo Usage:
echo %0 [BuildType] where:
echo.
echo BuildType can be: Debug, Release
exit /b 1