mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 23:14:23 +01:00
Run generate_psa_constants.py before building psa_constant_names with cmake
This commit is contained in:
parent
da7c80e3f1
commit
21b33b07df
@ -4,11 +4,16 @@ target_link_libraries(crypto_examples mbedtls)
|
|||||||
add_executable(key_ladder_demo key_ladder_demo.c)
|
add_executable(key_ladder_demo key_ladder_demo.c)
|
||||||
target_link_libraries(key_ladder_demo mbedtls)
|
target_link_libraries(key_ladder_demo mbedtls)
|
||||||
|
|
||||||
execute_process(COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/../../scripts/generate_psa_constants.py)
|
|
||||||
|
|
||||||
add_executable(psa_constant_names psa_constant_names.c)
|
add_executable(psa_constant_names psa_constant_names.c)
|
||||||
target_link_libraries(psa_constant_names mbedtls)
|
target_link_libraries(psa_constant_names mbedtls)
|
||||||
|
|
||||||
|
add_custom_target(
|
||||||
|
psa_constant_names_generated
|
||||||
|
COMMAND ${PYTHON_EXECUTABLE} scripts/generate_psa_constants.py
|
||||||
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../../
|
||||||
|
)
|
||||||
|
add_dependencies(psa_constant_names psa_constant_names_generated)
|
||||||
|
|
||||||
install(TARGETS
|
install(TARGETS
|
||||||
crypto_examples
|
crypto_examples
|
||||||
key_ladder_demo
|
key_ladder_demo
|
||||||
|
Loading…
Reference in New Issue
Block a user