]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bearssl/mk/mkT0.cmd
Add libbearssl
[FreeBSD/FreeBSD.git] / contrib / bearssl / mk / mkT0.cmd
1 @echo off\r
2 \r
3 rem =====================================================================\r
4 rem This script uses the command-line C# compiler csc.exe, which is\r
5 rem provided with the .NET framework. We need framework 3.5 or later\r
6 rem (some of the code uses features not available in the language version\r
7 rem implemented in the compiler provided with framework 2.0.50727).\r
8 rem =====================================================================\r
9 \r
10 if exist "%SystemRoot%\Microsoft.NET\Framework\v3.5\csc.exe" (\r
11         set CSC="%SystemRoot%\Microsoft.NET\Framework\v3.5\csc.exe"\r
12         goto do_compile\r
13 )\r
14 if exist "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\csc.exe" (\r
15         set CSC="%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\csc.exe"\r
16         goto do_compile\r
17 )\r
18 if exist "%SystemRoot%\Microsoft.NET\Framework64\v3.5\csc.exe" (\r
19         set CSC="%SystemRoot%\Microsoft.NET\Framework64\v3.5\csc.exe"\r
20         goto do_compile\r
21 )\r
22 if exist "%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\csc.exe" (\r
23         set CSC="%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\csc.exe"\r
24         goto do_compile\r
25 )\r
26 \r
27 echo C# compiler not found\r
28 exit 1\r
29 \r
30 :do_compile\r
31 %CSC% /nologo /out:T0Comp.exe /main:T0Comp /res:T0\kern.t0,t0-kernel T0\*.cs\r
32 if %errorlevel% neq 0 exit /b %errorlevel%\r