mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-24 17:21:06 +00:00
Add CMake support for uecc
This commit is contained in:
parent
18987a420b
commit
79e3b946db
|
@ -179,6 +179,7 @@ endif(ENABLE_ZLIB_SUPPORT)
|
||||||
|
|
||||||
add_subdirectory(library)
|
add_subdirectory(library)
|
||||||
add_subdirectory(include)
|
add_subdirectory(include)
|
||||||
|
add_subdirectory(tinycrypt)
|
||||||
|
|
||||||
if(ENABLE_PROGRAMS)
|
if(ENABLE_PROGRAMS)
|
||||||
add_subdirectory(programs)
|
add_subdirectory(programs)
|
||||||
|
|
|
@ -3,6 +3,7 @@ option(INSTALL_MBEDTLS_HEADERS "Install mbed TLS headers." ON)
|
||||||
if(INSTALL_MBEDTLS_HEADERS)
|
if(INSTALL_MBEDTLS_HEADERS)
|
||||||
|
|
||||||
file(GLOB headers "mbedtls/*.h")
|
file(GLOB headers "mbedtls/*.h")
|
||||||
|
file(GLOB headers "tinycrypt/*.h")
|
||||||
|
|
||||||
install(FILES ${headers}
|
install(FILES ${headers}
|
||||||
DESTINATION include/mbedtls
|
DESTINATION include/mbedtls
|
||||||
|
|
|
@ -131,6 +131,8 @@ if(LINK_WITH_PTHREAD)
|
||||||
set(libs ${libs} pthread)
|
set(libs ${libs} pthread)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(lib ${libs} tinycrypt)
|
||||||
|
|
||||||
if (NOT USE_STATIC_MBEDTLS_LIBRARY AND NOT USE_SHARED_MBEDTLS_LIBRARY)
|
if (NOT USE_STATIC_MBEDTLS_LIBRARY AND NOT USE_SHARED_MBEDTLS_LIBRARY)
|
||||||
message(FATAL_ERROR "Need to choose static or shared mbedtls build!")
|
message(FATAL_ERROR "Need to choose static or shared mbedtls build!")
|
||||||
endif(NOT USE_STATIC_MBEDTLS_LIBRARY AND NOT USE_SHARED_MBEDTLS_LIBRARY)
|
endif(NOT USE_STATIC_MBEDTLS_LIBRARY AND NOT USE_SHARED_MBEDTLS_LIBRARY)
|
||||||
|
|
7
tinycrypt/CMakeLists.txt
Normal file
7
tinycrypt/CMakeLists.txt
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
set(src_tinycrypt
|
||||||
|
ecc_dh.c
|
||||||
|
ecc_dsa.c
|
||||||
|
ecc.c
|
||||||
|
)
|
||||||
|
|
||||||
|
add_library(tinycrypt STATIC ${src_tinycrypt})
|
Loading…
Reference in a new issue