OpenSSL
https://github.com/openssl/openssl
不想自己编译可到此处下载:http://slproweb.com/products/Win32OpenSSL.html
编译:
使用libcur中的build-openssl.bat编译
安装ActiveState Perl
ActivePerl-5.24.1.2402-MSWin32-x86-64int-401627.exe
https://www.activestate.com/products/perl/downloads/thank-you/?dl=https://cli-msi.s3.amazonaws.com/ActivePerl-5.28.msi
Strawberry: https://strawberryperl.com/releases.html
Perl 在 Window 平台上有 ActiveStatePerl 和 Strawberry Perl 编译器。
ActiveState Perl和 Strawberry Perl最大的区别是 Strawberry Perl 里面有多包含一些 CPAN 里的模块, 所以Strawberry Perl 下载的安装文件有 80多M, 而ActiveState Perl 只有20M 左右。
使用libcur中的build-openssl.bat编译
需要注意%PE%路径与VS真是路径
使用方法
使用SVN\3rdparty\openssl目录的openssl
build-openssl.bat放到openssl根目录
build-openssl.bat vc14.2 x86 release -VSpath "D:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
build-openssl.bat vc14.3 x86 release -VSpath "C:\Program Files\Microsoft Visual Studio\2022\Community"
bat内容
@echo off
rem ***************************************************************************
rem * _ _ ____ _
rem * Project ___| | | | _ \| |
rem * / __| | | | |_) | |
rem * | (__| |_| | _ <| |___
rem * \___|\___/|_| \_\_____|
rem *
rem * Copyright (C) 2012 - 2019, Steve Holme, <steve_holme@hotmail.com>.
rem *
rem * This software is licensed as described in the file COPYING, which
rem * you should have received as part of this distribution. The terms
rem * are also available at https://curl.haxx.se/docs/copyright.html.
rem *
rem * You may opt to use, copy, modify, merge, publish, distribute and/or sell
rem * copies of the Software, and permit persons to whom the Software is
rem * furnished to do so, under the terms of the COPYING file.
rem *
rem * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
rem * KIND, either express or implied.
rem *
rem ***************************************************************************
:begin
rem Check we are running on a Windows NT derived OS
if not "%OS%" == "Windows_NT" goto nodos
rem Set our variables
setlocal ENABLEDELAYEDEXPANSION
set VC_VER=
set BUILD_PLATFORM=
set BUILD_CONFIG=
rem Ensure we have the required arguments
if /i "%~1" == "" goto syntax
rem Calculate the program files directory
if defined PROGRAMFILES (
set "PF=%PROGRAMFILES%"
set OS_PLATFORM=x86
)
if defined PROGRAMFILES(x86) (
set "PF=%PROGRAMFILES(x86)%"
set OS_PLATFORM=x64
)
:parseArgs
if not "%~1" == "" (
if /i "%~1" == "vc6" (
set VC_VER=6.0
set VC_DESC=VC6
set "VC_PATH=Microsoft Visual Studio\VC98"
) else if /i "%~1" == "vc7" (
set VC_VER=7.0
set VC_DESC=VC7
set "VC_PATH=Microsoft Visual Studio .NET\Vc7"
) else if /i "%~1" == "vc7.1" (
set VC_VER=7.1
set VC_DESC=VC7.1
set "VC_PATH=Microsoft Visual Studio .NET 2003\Vc7"
) else if /i "%~1" == "vc8" (
set VC_VER=8.0
set VC_DESC=VC8
set "VC_PATH=Microsoft Visual Studio 8\VC"
) else if /i "%~1" == "vc9" (
set VC_VER=9.0
set VC_DESC=VC9
set "VC_PATH=Microsoft Visual Studio 9.0\VC"
) else if /i "%~1" == "vc10" (
set VC_VER=10.0
set VC_DESC=VC10
set "VC_PATH=Microsoft Visual Studio 10.0\VC"
) else if /i "%~1" == "vc11" (
set VC_VER=11.0
set VC_DESC=VC11
set "VC_PATH=Microsoft Visual Studio 11.0\VC"
) else if /i "%~1" == "vc12" (
set VC_VER=12.0
set VC_DESC=VC12
set "VC_PATH=Microsoft Visual Studio 12.0\VC"
) else if /i "%~1" == "vc14" (
set VC_VER=14.0
set VC_DESC=VC14
set "VC_PATH=Microsoft Visual Studio 14.0\VC"
) else if /i "%~1" == "vc14.1" (
set VC_VER=14.1
set VC_DESC=VC14.1
rem Determine the VC14.1 path based on the installed edition in descending
rem order (Enterprise, then Professional and finally Community)
if exist "%PF%\Microsoft Visual Studio\2017\Enterprise\VC" (
set "VC_PATH=Microsoft Visual Studio\2017\Enterprise\VC"
) else if exist "%PF%\Microsoft Visual Studio\2017\Professional\VC" (
set "VC_PATH=Microsoft Visual Studio\2017\Professional\VC"
) else (
set "VC_PATH=Microsoft Visual Studio\2017\Community\VC"
)
) else if /i "%~1" == "vc14.2" (
set VC_VER=14.2
set VC_DESC=VC14.2
rem Determine the VC14.2 path based on the installed edition in descending
rem order (Enterprise, then Professional and finally Community)
if exist "%PF%\Microsoft Visual Studio\2019\Enterprise\VC" (
set "VC_PATH=Microsoft Visual Studio\2019\Enterprise\VC"
) else if exist "%PF%\Microsoft Visual Studio\2019\Professional\VC" (
set "VC_PATH=Microsoft Visual Studio\2019\Professional\VC"
) else (
set "VC_PATH=Microsoft Visual Studio\2019\Community\VC"
)
)else if /i "%~1" == "vc14.3" (
set VC_VER=14.3
set VC_DESC=VC14.3
rem Determine the VC14.3 path based on the installed edition in descending
rem order (Enterprise, then Professional and finally Community)
if exist "%PF%\Microsoft Visual Studio\2022\Enterprise\VC" (
set "VC_PATH=Microsoft Visual Studio\2022\Enterprise\VC"
) else if exist "%PF%\Microsoft Visual Studio\2022\Professional\VC" (
set "VC_PATH=Microsoft Visual Studio\2022\Professional\VC"
) else (
set "VC_PATH=Microsoft Visual Studio\2022\Community\VC"
)
)else if /i "%~1%" == "x86" (
set BUILD_PLATFORM=x86
) else if /i "%~1%" == "x64" (
set BUILD_PLATFORM=x64
) else if /i "%~1%" == "debug" (
set BUILD_CONFIG=debug
) else if /i "%~1%" == "release" (
set BUILD_CONFIG=release
) else if /i "%~1" == "-?" (
goto syntax
) else if /i "%~1" == "-h" (
goto syntax
) else if /i "%~1" == "-help" (
goto syntax
) else if /i "%~1" == "-VSpath" (
if "%~2" == "" (
echo.
echo Error. Please provide VS Path.
goto error
) else (
set "ABS_VC_PATH=%~2\VC"
shift
)
) else if /i "%~1" ==

最低0.47元/天 解锁文章
2167

被折叠的 条评论
为什么被折叠?



