1# SPDX-License-Identifier: Apache-2.0
2
3zephyr_library_include_directories(.)
4
5zephyr_library_sources_ifdef(CONFIG_TLS_CREDENTIALS_BACKEND_VOLATILE
6  tls_credentials.c
7  tls_credentials_digest_raw.c
8)
9zephyr_library_sources_ifdef(CONFIG_TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE
10  tls_credentials_trusted.c
11  tls_credentials_digest_raw.c
12)
13zephyr_library_sources_ifdef(CONFIG_TLS_CREDENTIALS_SHELL
14  tls_credentials_shell.c
15)
16
17zephyr_library_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)
18
19if (CONFIG_TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE AND CONFIG_BUILD_WITH_TFM)
20  target_include_directories(${ZEPHYR_CURRENT_LIBRARY} PRIVATE
21    $<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/api_ns/interface/include
22  )
23endif()
24