2025-02-22 06:01:58 +00:00
|
|
|
# SPDX-FileCopyrightText: 2024 - 2025 Chris Rizzitello <sithlord48@gmail.com>
|
2025-01-24 00:11:17 +00:00
|
|
|
# SPDX-FileCopyrightText: 2012 - 2024 Symless Ltd
|
|
|
|
|
# SPDX-FileCopyrightText: 2009 - 2012 Nick Bolton
|
|
|
|
|
# SPDX-License-Identifier: MIT
|
2012-06-10 16:50:54 +00:00
|
|
|
|
2025-03-06 02:48:34 +00:00
|
|
|
# Apple has to use static libraries because "Use of the Apple-provided OpenSSL
|
|
|
|
|
# libraries by apps is strongly discouraged."
|
|
|
|
|
# https://developer.apple.com/library/archive/documentation/Security/Conceptual/cryptoservices/SecureNetworkCommunicationAPIs/SecureNetworkCommunicationAPIs.html
|
|
|
|
|
if(APPLE)
|
|
|
|
|
set(OPENSSL_USE_STATIC_LIBS TRUE)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
find_package(OpenSSL ${REQUIRED_OPENSSL_VERSION} REQUIRED COMPONENTS SSL Crypto)
|
|
|
|
|
|
2024-10-24 00:47:40 +00:00
|
|
|
add_library(net STATIC
|
2025-03-28 03:43:04 +00:00
|
|
|
Fingerprint.cpp
|
|
|
|
|
Fingerprint.h
|
2025-01-28 17:43:46 +00:00
|
|
|
FingerprintDatabase.cpp
|
|
|
|
|
FingerprintDatabase.h
|
2024-10-24 00:47:40 +00:00
|
|
|
IDataSocket.cpp
|
|
|
|
|
IDataSocket.h
|
|
|
|
|
IListenSocket.h
|
|
|
|
|
ISocket.h
|
|
|
|
|
ISocketFactory.h
|
|
|
|
|
ISocketMultiplexerJob.h
|
|
|
|
|
NetworkAddress.cpp
|
|
|
|
|
NetworkAddress.h
|
|
|
|
|
SecureListenSocket.cpp
|
|
|
|
|
SecureListenSocket.h
|
2024-11-28 12:28:55 +00:00
|
|
|
SecurityLevel.h
|
2024-10-24 00:47:40 +00:00
|
|
|
SecureSocket.cpp
|
|
|
|
|
SecureSocket.h
|
2025-08-07 20:52:32 +00:00
|
|
|
SocketException.cpp
|
|
|
|
|
SocketException.h
|
2024-10-24 00:47:40 +00:00
|
|
|
SocketMultiplexer.cpp
|
|
|
|
|
SocketMultiplexer.h
|
2025-01-29 01:13:02 +00:00
|
|
|
SecureUtils.cpp
|
|
|
|
|
SecureUtils.h
|
2025-02-22 05:35:00 +00:00
|
|
|
SslLogger.cpp
|
|
|
|
|
SslLogger.h
|
2024-10-24 00:47:40 +00:00
|
|
|
TCPListenSocket.cpp
|
|
|
|
|
TCPListenSocket.h
|
|
|
|
|
TCPSocket.cpp
|
|
|
|
|
TCPSocket.h
|
|
|
|
|
TCPSocketFactory.cpp
|
|
|
|
|
TCPSocketFactory.h
|
|
|
|
|
TSocketMultiplexerMethodJob.h
|
|
|
|
|
)
|
2024-09-04 15:52:37 +00:00
|
|
|
|
2024-07-02 10:23:56 +00:00
|
|
|
target_link_libraries(
|
|
|
|
|
net
|
2025-03-18 01:04:35 +00:00
|
|
|
PUBLIC OpenSSL::SSL OpenSSL::Crypto common
|
2024-07-02 10:23:56 +00:00
|
|
|
PRIVATE mt io)
|
2024-09-04 15:52:37 +00:00
|
|
|
|
2021-03-03 11:04:39 +00:00
|
|
|
if(WIN32)
|
2025-01-29 04:38:54 +00:00
|
|
|
target_link_libraries(
|
|
|
|
|
net
|
|
|
|
|
PUBLIC OpenSSL::applink
|
2025-03-06 03:09:13 +00:00
|
|
|
PRIVATE Crypt32 ws2_32
|
2025-01-28 17:43:46 +00:00
|
|
|
)
|
2012-06-10 16:50:54 +00:00
|
|
|
endif()
|