CMake: Move mbedtls stub headers to the mbedtls doubles dir

Previously all the mbedtls stubs headers under mbed-stubs-headers,
so this PR move all mbedtls stubs headers under
mbedtls/tests/UNITTESTS/double directory and update CMake to include
stubs headers into mbed-stubs-mbedtls library to make mbedtls stubs
to be self-contained.
pull/14890/head
Rajkumar Kanagaraj 2021-07-07 08:25:58 -07:00
parent ef7699d824
commit d57ed8d95a
5 changed files with 6 additions and 1 deletions

View File

@ -46,7 +46,6 @@ target_include_directories(mbed-headers
target_include_directories(mbed-stubs-headers
INTERFACE
.
${mbed-os_SOURCE_DIR}/connectivity/nanostack/coap-service/test/coap-service/unittest/stub
)
add_subdirectory(connectivity)

View File

@ -11,6 +11,12 @@ target_include_directories(mbed-headers-mbedtls
add_library(mbed-stubs-mbedtls)
target_include_directories(mbed-stubs-mbedtls
PUBLIC
.
${mbed-os_SOURCE_DIR}/connectivity/nanostack/coap-service/test/coap-service/unittest/stub
)
target_sources(mbed-stubs-mbedtls
PRIVATE
aes_stub.c