mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2024-12-27 12:16:07 +00:00
CMake: support "make ssl-opt" to just build what ssl-opt.sh needs
This also suffices for compat.sh. Include the sample programs in this build. They aren't tested by ssl-opt.sh yet, but they soon will be. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
5dab92ee4e
commit
b63064854b
@ -1,6 +1,9 @@
|
|||||||
set(programs_target "${MBEDTLS_TARGET_PREFIX}programs")
|
set(programs_target "${MBEDTLS_TARGET_PREFIX}programs")
|
||||||
add_custom_target(${programs_target})
|
add_custom_target(${programs_target})
|
||||||
|
|
||||||
|
set(ssl_opt_target "${MBEDTLS_TARGET_PREFIX}ssl-opt")
|
||||||
|
add_custom_target(${ssl_opt_target})
|
||||||
|
|
||||||
add_subdirectory(aes)
|
add_subdirectory(aes)
|
||||||
add_subdirectory(cipher)
|
add_subdirectory(cipher)
|
||||||
if (NOT WIN32)
|
if (NOT WIN32)
|
||||||
|
@ -17,6 +17,7 @@ set(executables
|
|||||||
ssl_server2
|
ssl_server2
|
||||||
)
|
)
|
||||||
add_dependencies(${programs_target} ${executables})
|
add_dependencies(${programs_target} ${executables})
|
||||||
|
add_dependencies(${ssl_opt_target} ${executables})
|
||||||
|
|
||||||
if(GEN_FILES)
|
if(GEN_FILES)
|
||||||
# Inform CMake that the following file will be generated as part of the build
|
# Inform CMake that the following file will be generated as part of the build
|
||||||
|
@ -9,6 +9,7 @@ set(executables_libs
|
|||||||
udp_proxy
|
udp_proxy
|
||||||
)
|
)
|
||||||
add_dependencies(${programs_target} ${executables_libs})
|
add_dependencies(${programs_target} ${executables_libs})
|
||||||
|
add_dependencies(${ssl_opt_target} udp_proxy)
|
||||||
|
|
||||||
set(executables_mbedcrypto
|
set(executables_mbedcrypto
|
||||||
benchmark
|
benchmark
|
||||||
@ -16,6 +17,7 @@ set(executables_mbedcrypto
|
|||||||
zeroize
|
zeroize
|
||||||
)
|
)
|
||||||
add_dependencies(${programs_target} ${executables_mbedcrypto})
|
add_dependencies(${programs_target} ${executables_mbedcrypto})
|
||||||
|
add_dependencies(${ssl_opt_target} query_compile_time_config)
|
||||||
|
|
||||||
if(TEST_CPP)
|
if(TEST_CPP)
|
||||||
set(cpp_dummy_build_cpp "${CMAKE_CURRENT_BINARY_DIR}/cpp_dummy_build.cpp")
|
set(cpp_dummy_build_cpp "${CMAKE_CURRENT_BINARY_DIR}/cpp_dummy_build.cpp")
|
||||||
|
Loading…
Reference in New Issue
Block a user