mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 11:55:42 +01:00
Add USE_TINYCRYPT build option to CMake files
Adds the USE_TINYCRYPT build option to the CMake build files. Default is enabled.
This commit is contained in:
parent
9699887185
commit
45fd0d68d9
@ -185,7 +185,10 @@ endif(ENABLE_ZLIB_SUPPORT)
|
|||||||
|
|
||||||
add_subdirectory(library)
|
add_subdirectory(library)
|
||||||
add_subdirectory(include)
|
add_subdirectory(include)
|
||||||
add_subdirectory(tinycrypt)
|
|
||||||
|
if(USE_TINYCRYPT)
|
||||||
|
add_subdirectory(tinycrypt)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(ENABLE_PROGRAMS)
|
if(ENABLE_PROGRAMS)
|
||||||
add_subdirectory(programs)
|
add_subdirectory(programs)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
option(USE_STATIC_MBEDTLS_LIBRARY "Build mbed TLS static library." ON)
|
option(USE_STATIC_MBEDTLS_LIBRARY "Build mbed TLS static library." ON)
|
||||||
|
option(USE_TINYCRYPT "Include TinyCrypt." ON)
|
||||||
option(USE_SHARED_MBEDTLS_LIBRARY "Build mbed TLS shared library." OFF)
|
option(USE_SHARED_MBEDTLS_LIBRARY "Build mbed TLS shared library." OFF)
|
||||||
option(LINK_WITH_PTHREAD "Explicitly link mbed TLS library to pthread." OFF)
|
option(LINK_WITH_PTHREAD "Explicitly link mbed TLS library to pthread." OFF)
|
||||||
|
|
||||||
@ -123,7 +124,9 @@ if(LINK_WITH_PTHREAD)
|
|||||||
set(libs ${libs} pthread)
|
set(libs ${libs} pthread)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(libs ${libs} tinycrypt)
|
if(USE_TINYCRYPT)
|
||||||
|
set(libs ${libs} tinycrypt)
|
||||||
|
endif()
|
||||||
|
|
||||||
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!")
|
||||||
|
Loading…
Reference in New Issue
Block a user