mirror of
https://github.com/transmission/transmission
synced 2024-12-22 07:42:37 +00:00
Support OpenSSL 1.1 file names (MSI package)
This commit is contained in:
parent
a82c26642c
commit
af3d4639e2
2 changed files with 12 additions and 2 deletions
10
dist/msi/CMakeLists.txt
vendored
10
dist/msi/CMakeLists.txt
vendored
|
@ -22,6 +22,14 @@ endif()
|
|||
|
||||
find_msvc_crt_msm(TR_MSVC_CRT_MSM_FILE)
|
||||
|
||||
if(OPENSSL_VERSION MATCHES "^1[.]1[.]")
|
||||
set(TR_OPENSSL_CRYPTO_NAME "libcrypto-1_1.dll")
|
||||
set(TR_OPENSSL_SSL_NAME "libssl-1_1.dll")
|
||||
else()
|
||||
set(TR_OPENSSL_CRYPTO_NAME "libeay32.dll")
|
||||
set(TR_OPENSSL_SSL_NAME "ssleay32.dll")
|
||||
endif()
|
||||
|
||||
set(ICONS_DIR "${CMAKE_SOURCE_DIR}/qt/icons/hicolor")
|
||||
png2ico(Transmission.ico
|
||||
"${ICONS_DIR}/16x16/transmission-qt.png"
|
||||
|
@ -70,6 +78,8 @@ wix_candle(${PROJECT_NAME}_OBJS
|
|||
"TrQmSrcDir=${TRQMSRCDIR}"
|
||||
"QtQmSrcDir=${QTQMSRCDIR}"
|
||||
"MsvcCrtMsmFile=${TR_MSVC_CRT_MSM_FILE}"
|
||||
"OpenSslCryptoName=${TR_OPENSSL_CRYPTO_NAME}"
|
||||
"OpenSslSslName=${TR_OPENSSL_SSL_NAME}"
|
||||
EXTRA_DEPENDS
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/TransmissionConfig.wxi")
|
||||
|
||||
|
|
4
dist/msi/components/CommonLibs.wxs
vendored
4
dist/msi/components/CommonLibs.wxs
vendored
|
@ -9,10 +9,10 @@
|
|||
<File DiskId="1" KeyPath="yes" Name="libcurl.dll" />
|
||||
</Component>
|
||||
<Component Id="dll.openssl.crypto">
|
||||
<File DiskId="1" KeyPath="yes" Name="libeay32.dll" />
|
||||
<File DiskId="1" KeyPath="yes" Name="$(var.OpenSslCryptoName)" />
|
||||
</Component>
|
||||
<Component Id="dll.openssl.ssl">
|
||||
<File DiskId="1" KeyPath="yes" Name="ssleay32.dll" />
|
||||
<File DiskId="1" KeyPath="yes" Name="$(var.OpenSslSslName)" />
|
||||
</Component>
|
||||
<Component Id="dll.zlib">
|
||||
<File DiskId="1" KeyPath="yes" Name="zlib.dll" />
|
||||
|
|
Loading…
Reference in a new issue