openssl-cmake/ssl/CMakeLists.txt

56 lines
2.3 KiB
CMake
Raw Normal View History

2018-09-04 22:03:58 +02:00
# Based on original work by David Manura
# Copyright (C) 2007-2012 LuaDist.
# Copyright (C) 2013 Brian Sidebotham
# Redistribution and use of this file is allowed according to the terms of the
# MIT license.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
if( BUILD_SHARED_LIBS )
add_definitions ( -DOPENSSL_BUILD_SHLIBSSL )
endif()
set ( LIBSRC
2018-11-03 21:47:12 +01:00
bio_ssl.c d1_lib.c d1_msg.c d1_srtp.c methods.c packet.c pqueue.c s3_cbc.c s3_enc.c s3_lib.c
2018-09-04 22:03:58 +02:00
s3_msg.c ssl_asn1.c ssl_cert.c ssl_ciph.c ssl_conf.c ssl_err.c ssl_init.c ssl_lib.c
2018-11-03 21:47:12 +01:00
ssl_mcnf.c ssl_rsa.c ssl_sess.c ssl_stat.c ssl_txt.c ssl_utst.c t1_enc.c t1_lib.c
t1_trce.c tls13_enc.c tls_srp.c
2018-09-04 22:03:58 +02:00
record/dtls1_bitmap.c record/rec_layer_d1.c record/rec_layer_s3.c record/ssl3_buffer.c
2018-11-03 21:47:12 +01:00
record/ssl3_record.c record/ssl3_record_tls13.c
statem/extensions.c statem/extensions_clnt.c statem/extensions_cust.c
statem/extensions_srvr.c statem/statem.c statem/statem_clnt.c statem/statem_dtls.c
2018-09-04 22:03:58 +02:00
statem/statem_lib.c statem/statem_srvr.c
)
if( ANDROID )
add_library ( ssl SHARED ${LIBSRC} )
else()
add_library ( ssl ${LIBSRC} )
endif()
target_link_libraries ( ssl crypto )
set_target_properties( ssl PROPERTIES
VERSION "${LIB_VERSION}" SOVERSION "${LIB_SOVERSION}" )
install( TARGETS ssl
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib )