forked from cgohlke/python-ldap-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_openssl.cmd
41 lines (28 loc) · 872 Bytes
/
build_openssl.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
:: Download and build OpenSSL
@echo on
setlocal
:: set OPENSSL_VER=openssl-1.1.1w
:: set OPENSSL_CONFIG=VC-WIN64A-masm
:: set PATH=%PATH%;X:\Perl\bin
curl -L -o %OPENSSL_VER%.tar.gz https://www.openssl.org/source/%OPENSSL_VER%.tar.gz
if errorlevel 1 exit /B 1
tar -xf %OPENSSL_VER%.tar.gz
if errorlevel 1 exit /B 1
git apply -p1 --verbose --directory=%OPENSSL_VER% openssl.diff
if errorlevel 1 exit /B 1
cd %OPENSSL_VER%
if errorlevel 1 exit /B 1
perl Configure %OPENSSL_CONFIG% no-shared no-makedepend no-zlib --prefix=%~dp0 --openssldir=openssl
if errorlevel 1 exit /B 1
perl configdata.pm --dump
if errorlevel 1 exit /B 1
nmake /nologo build_all_generated
if errorlevel 1 exit /B 1
nmake /nologo PERL=no-perl
if errorlevel 1 exit /B 1
nmake /nologo install_sw
if errorlevel 1 exit /B 1
nmake /nologo install_ssldirs
if errorlevel 1 exit /B 1
cd ..
endlocal