summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2024-09-15 00:09:18 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2024-09-15 00:09:18 +0200
commitf9b768e3fe014e687988af1af2fe57de29396067 (patch)
tree82a79d8bd80c132256fc2582b24309bab41d8aa1
parent2e3e8a261f478b6436da3a60d98e605d44c69cdb (diff)
crypto: rename crypto-mbedtls to crypto
-rw-r--r--CMakeLists.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 45e84de..b6bcf62 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -56,7 +56,7 @@ if(ZLIB_FOUND)
endif()
if(libmbedtls)
- set(DEFAULT_CRYPTO_MBEDTLS_SUPPORT ON)
+ set(DEFAULT_CRYPTO_SUPPORT ON)
endif()
option(DEBUG_SUPPORT "Debug plugin support" ON)
@@ -72,7 +72,7 @@ option(ULOOP_SUPPORT "Uloop plugin support" ${DEFAULT_ULOOP_SUPPORT})
option(LOG_SUPPORT "Log plugin support" ON)
option(SOCKET_SUPPORT "Socket plugin support" ON)
option(ZLIB_SUPPORT "Zlib plugin support" ${DEFAULT_ZLIB_SUPPORT})
-option(CRYPTO_MBEDTLS_SUPPORT "Crypto Mbed-TLS plugin support" ${DEFAULT_CRYPTO_MBEDTLS_SUPPORT})
+option(CRYPTO_SUPPORT "Crypto Mbed-TLS plugin support" ${DEFAULT_CRYPTO_SUPPORT})
set(LIB_SEARCH_PATH "${CMAKE_INSTALL_PREFIX}/lib/ucode/*.so:${CMAKE_INSTALL_PREFIX}/share/ucode/*.uc:./*.so:./*.uc" CACHE STRING "Default library search path")
string(REPLACE ":" "\", \"" LIB_SEARCH_DEFINE "${LIB_SEARCH_PATH}")
@@ -296,11 +296,11 @@ if(ZLIB_SUPPORT)
target_link_libraries(zlib_lib ZLIB::ZLIB)
endif()
-if(CRYPTO_MBEDTLS_SUPPORT)
- set(LIBRARIES ${LIBRARIES} crypto_mbedtls_lib)
- add_library(crypto_mbedtls_lib MODULE lib/crypto-mbedtls.c)
- set_target_properties(crypto_mbedtls_lib PROPERTIES OUTPUT_NAME crypto PREFIX "")
- target_link_options(crypto_mbedtls_lib PRIVATE ${UCODE_MODULE_LINK_OPTIONS})
+if(CRYPTO_SUPPORT)
+ set(LIBRARIES ${LIBRARIES} crypto_lib)
+ add_library(crypto_lib MODULE lib/crypto.c)
+ set_target_properties(crypto_lib PROPERTIES OUTPUT_NAME crypto PREFIX "")
+ target_link_options(crypto_lib PRIVATE ${UCODE_MODULE_LINK_OPTIONS})
endif()
if(UNIT_TESTING)