From 5873bf9e5df14630a37b70bd0519200e335a2654 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Sun, 30 Sep 2012 17:20:18 +0200 Subject: Add OpenSSL build scripts --- win32/deps/openssl/build-x64.bat | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 win32/deps/openssl/build-x64.bat (limited to 'win32/deps/openssl/build-x64.bat') diff --git a/win32/deps/openssl/build-x64.bat b/win32/deps/openssl/build-x64.bat new file mode 100644 index 00000000..cf56e953 --- /dev/null +++ b/win32/deps/openssl/build-x64.bat @@ -0,0 +1,45 @@ +:: run this from a VS x64 command prompt +@echo off + +SET PACKAGE_NAME=openssl-1.0.1c + +set OPENSSL_SRC=%cd% +set OPENSSL_DEST=%cd%-x64 +set PERL_PATH=c:\mozilla-build\perl-5.16\x64\perl\bin +set NASM_PATH=c:\mozilla-build\nasm +set INCLUDE=%INCLUDE%;%OPENSSL_SRC%\..\build\x64\include +set LIB=%LIB%;%OPENSSL_SRC%\..\build\x64\lib +set PATH=%PATH%;%PERL_PATH%;%NASM_PATH%;%OPENSSL_SRC%\..\build\x64\bin +perl Configure VC-WIN64A enable-camellia zlib-dynamic --openssldir=./ +call ms\do_win64a +@echo off +nmake -f ms\ntdll.mak vclean +nmake -f ms\ntdll.mak +nmake -f ms\ntdll.mak test +perl mk-ca-bundle.pl -n +echo.Press return when ready to install! +pause + +:: hack to have . as openssldir which is required for having OpenSSL load cert.pem from . +move include include-orig +nmake -f ms\ntdll.mak install +rmdir /q /s %OPENSSL_DEST% +mkdir %OPENSSL_DEST% +move bin %OPENSSL_DEST% +move include %OPENSSL_DEST% +move lib %OPENSSL_DEST% +mkdir %OPENSSL_DEST%\share +move openssl.cnf %OPENSSL_DEST%\share\openssl.cnf.example +move include-orig include +move cert.pem %OPENSSL_DEST%\bin +copy LICENSE %OPENSSL_DEST%\LICENSE.OPENSSL + +cd %OPENSSL_DEST% +set PATH=%PATH%;%ProgramFiles%\7-zip +del ..\%PACKAGE_NAME%-x64.7z +7z a ..\%PACKAGE_NAME%-x64.7z * +cd %OPENSSL_SRC% +rmdir /q /s %OPENSSL_DEST% + +echo.Finished! +pause -- cgit 1.4.1