From 6318b4ec48582ac85aaf12bc3ad5b82dbbc989d3 Mon Sep 17 00:00:00 2001 From: Cameron Lowell Palmer Date: Fri, 15 Oct 2021 09:29:03 +0200 Subject: Add the option to support an Apple-style xcframework for tls, ssl, and crypto --- CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f161653..bba29bf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -352,6 +352,19 @@ if(LIBRESSL_APPS AND LIBRESSL_TESTS) add_subdirectory(tests) endif() +if (BUILD_APPLE_XCFRAMEWORK) + # Create the super library from object libraries + add_library(LibreSSL_xcframework + $ $ $) + set_target_properties(LibreSSL_xcframework PROPERTIES + OUTPUT_NAME ressl) + + if(ENABLE_LIBRESSL_INSTALL) + install(TARGETS LibreSSL_xcframework + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) + endif(ENABLE_LIBRESSL_INSTALL) +endif(BUILD_APPLE_XCFRAMEWORK) + if(NOT MSVC) # Create pkgconfig files. set(prefix ${CMAKE_INSTALL_PREFIX}) -- cgit v1.2.3-55-g6feb