From: Jay Satiro Date: Fri, 17 Feb 2023 08:26:07 +0000 (-0500) Subject: build-openssl.bat: keep OpenSSL 3 engine binaries X-Git-Tag: curl-7_88_1~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=65d751d4cccb3d43e9397c4ca0b585450495b28f;p=thirdparty%2Fcurl.git build-openssl.bat: keep OpenSSL 3 engine binaries Prior to this change copying the OpenSSL 3 engine binaries failed because 'engines-1_1' (OpenSSL 1.1.x folder name) was erroneously used instead of 'engines-3'. The OpenSSL 3 builds would complete successfully but without the engine binaries. Closes https://github.com/curl/curl/pull/10542 --- diff --git a/projects/build-openssl.bat b/projects/build-openssl.bat index 54915b92bf..b645383419 100644 --- a/projects/build-openssl.bat +++ b/projects/build-openssl.bat @@ -589,8 +589,13 @@ rem ) move "%TMP_INSTALL_PATH%\lib\*.lib" "%OUTDIR%\DLL Debug" 1>nul - move "%TMP_INSTALL_PATH%\lib\engines-1_1\*.dll" "%OUTDIR%\DLL Debug" 1>nul - move "%TMP_INSTALL_PATH%\lib\engines-1_1\*.pdb" "%OUTDIR%\DLL Debug" 1>nul + if exist "%TMP_INSTALL_PATH%\lib\engines-3" ( + move "%TMP_INSTALL_PATH%\lib\engines-3\*.dll" "%OUTDIR%\DLL Debug" 1>nul + move "%TMP_INSTALL_PATH%\lib\engines-3\*.pdb" "%OUTDIR%\DLL Debug" 1>nul + ) else if exist "%TMP_INSTALL_PATH%\lib\engines-1_1" ( + move "%TMP_INSTALL_PATH%\lib\engines-1_1\*.dll" "%OUTDIR%\DLL Debug" 1>nul + move "%TMP_INSTALL_PATH%\lib\engines-1_1\*.pdb" "%OUTDIR%\DLL Debug" 1>nul + ) move "%TMP_INSTALL_PATH%\bin\*.dll" "%OUTDIR%\DLL Debug" 1>nul move "%TMP_INSTALL_PATH%\bin\*.exe" "%OUTDIR%\DLL Debug" 1>nul move "%TMP_INSTALL_PATH%\bin\*.pdb" "%OUTDIR%\DLL Debug" 1>nul @@ -615,8 +620,13 @@ rem ) move "%TMP_INSTALL_PATH%\lib\*.lib" "%OUTDIR%\DLL Release" 1>nul - move "%TMP_INSTALL_PATH%\lib\engines-1_1\*.dll" "%OUTDIR%\DLL Release" 1>nul - move "%TMP_INSTALL_PATH%\lib\engines-1_1\*.pdb" "%OUTDIR%\DLL Release" 1>nul + if exist "%TMP_INSTALL_PATH%\lib\engines-3" ( + move "%TMP_INSTALL_PATH%\lib\engines-3\*.dll" "%OUTDIR%\DLL Release" 1>nul + move "%TMP_INSTALL_PATH%\lib\engines-3\*.pdb" "%OUTDIR%\DLL Release" 1>nul + ) else if exist "%TMP_INSTALL_PATH%\lib\engines-1_1" ( + move "%TMP_INSTALL_PATH%\lib\engines-1_1\*.dll" "%OUTDIR%\DLL Release" 1>nul + move "%TMP_INSTALL_PATH%\lib\engines-1_1\*.pdb" "%OUTDIR%\DLL Release" 1>nul + ) move "%TMP_INSTALL_PATH%\bin\*.dll" "%OUTDIR%\DLL Release" 1>nul move "%TMP_INSTALL_PATH%\bin\*.exe" "%OUTDIR%\DLL Release" 1>nul move "%TMP_INSTALL_PATH%\bin\*.pdb" "%OUTDIR%\DLL Release" 1>nul