Browse Subversion Repository
Contents of /trunk/libs/buildlibressl.bat
Parent Directory
| Revision Log
Revision 9692 -
( show annotations)
( download)
( as text)
Sun Jan 16 15:16:19 2022 UTC
(2 years, 4 months ago)
by nmaya
File MIME type: application/x-msdos-program
File size: 1453 byte(s)
暗号ライブラリを OpenSSL から LibreSSL に変更
#43469
merge from libressl_3_4_2:
r9623,r9624,r9637,r9648,r9658,r9660,r9676,r9677,r9679,r9680,r9683
| 1 |
rem LibreSSLのビルド |
| 2 |
|
| 3 |
cd libressl |
| 4 |
|
| 5 |
|
| 6 |
if exist "CMakeCache.txt" goto end |
| 7 |
|
| 8 |
|
| 9 |
if not "%VSINSTALLDIR%" == "" goto vsinstdir |
| 10 |
|
| 11 |
:check_2019 |
| 12 |
if "%VS160COMNTOOLS%" == "" goto check_2022 |
| 13 |
if not exist "%VS160COMNTOOLS%\VsDevCmd.bat" goto check_2022 |
| 14 |
call "%VS160COMNTOOLS%\VsDevCmd.bat" |
| 15 |
goto vs2019 |
| 16 |
|
| 17 |
:check_2022 |
| 18 |
if "%VS170COMNTOOLS%" == "" goto novs |
| 19 |
if not exist "%VS170COMNTOOLS%\VsDevCmd.bat" goto novs |
| 20 |
call "%VS170COMNTOOLS%\VsDevCmd.bat" |
| 21 |
goto vs2022 |
| 22 |
|
| 23 |
:novs |
| 24 |
echo "Can't find Visual Studio" |
| 25 |
goto fail |
| 26 |
|
| 27 |
:vsinstdir |
| 28 |
rem Visual Studioのバージョン判別 |
| 29 |
set VSCMNDIR="%VSINSTALLDIR%\Common7\Tools\" |
| 30 |
set VSCMNDIR=%VSCMNDIR:\\=\% |
| 31 |
|
| 32 |
if /I %VSCMNDIR% EQU "%VS160COMNTOOLS%" goto vs2019 |
| 33 |
if /I %VSCMNDIR% EQU "%VS170COMNTOOLS%" goto vs2022 |
| 34 |
|
| 35 |
echo Unknown Visual Studio version |
| 36 |
goto fail |
| 37 |
|
| 38 |
:vs2019 |
| 39 |
set CMAKE_PARAMETER=-G "Visual Studio 16 2019" -A Win32 |
| 40 |
goto vsend |
| 41 |
|
| 42 |
:vs2022 |
| 43 |
set CMAKE_PARAMETER=-G "Visual Studio 17 2022" -A Win32 |
| 44 |
goto vsend |
| 45 |
|
| 46 |
:vsend |
| 47 |
|
| 48 |
set CMAKE=cmake |
| 49 |
rem set CMAKE="C:\Program Files\CMake\bin\cmake" |
| 50 |
rem set CMAKE="%VSINSTALLDIR%\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake" |
| 51 |
|
| 52 |
%CMAKE% -DMSVC=on -DUSE_STATIC_MSVC_RUNTIMES=on %CMAKE_PARAMETER% |
| 53 |
|
| 54 |
devenv /build Debug LibreSSL.sln /project crypto /projectconfig Debug |
| 55 |
|
| 56 |
devenv /build Release LibreSSL.sln /project crypto /projectconfig Release |
| 57 |
|
| 58 |
|
| 59 |
:end |
| 60 |
cd .. |
| 61 |
exit /b 0 |
| 62 |
|
| 63 |
|
| 64 |
:fail |
| 65 |
cd .. |
| 66 |
echo "buildlibressl.bat を終了します" |
| 67 |
@echo on |
| 68 |
exit /b 1 |
|