diff options
| author | Cameron Lowell Palmer <cameron@promon.no> | 2021-10-15 09:29:03 +0200 |
|---|---|---|
| committer | Cameron Lowell Palmer <cameron@promon.no> | 2021-10-15 17:58:58 +0200 |
| commit | 6318b4ec48582ac85aaf12bc3ad5b82dbbc989d3 (patch) | |
| tree | 0fe199be568e15775ab310f57761e544ea872962 | |
| parent | 0319bb7edb88f4eeb98f0a18072e0d7a3f62bb77 (diff) | |
| download | portable-6318b4ec48582ac85aaf12bc3ad5b82dbbc989d3.tar.gz portable-6318b4ec48582ac85aaf12bc3ad5b82dbbc989d3.tar.bz2 portable-6318b4ec48582ac85aaf12bc3ad5b82dbbc989d3.zip | |
Add the option to support an Apple-style xcframework for tls, ssl, and crypto
| -rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
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) | |||
| 352 | add_subdirectory(tests) | 352 | add_subdirectory(tests) |
| 353 | endif() | 353 | endif() |
| 354 | 354 | ||
| 355 | if (BUILD_APPLE_XCFRAMEWORK) | ||
| 356 | # Create the super library from object libraries | ||
| 357 | add_library(LibreSSL_xcframework | ||
| 358 | $<TARGET_OBJECTS:crypto_obj> $<TARGET_OBJECTS:tls_obj> $<TARGET_OBJECTS:ssl_obj>) | ||
| 359 | set_target_properties(LibreSSL_xcframework PROPERTIES | ||
| 360 | OUTPUT_NAME ressl) | ||
| 361 | |||
| 362 | if(ENABLE_LIBRESSL_INSTALL) | ||
| 363 | install(TARGETS LibreSSL_xcframework | ||
| 364 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
| 365 | endif(ENABLE_LIBRESSL_INSTALL) | ||
| 366 | endif(BUILD_APPLE_XCFRAMEWORK) | ||
| 367 | |||
| 355 | if(NOT MSVC) | 368 | if(NOT MSVC) |
| 356 | # Create pkgconfig files. | 369 | # Create pkgconfig files. |
| 357 | set(prefix ${CMAKE_INSTALL_PREFIX}) | 370 | set(prefix ${CMAKE_INSTALL_PREFIX}) |
