CMake: Create mbed-headers-ble library

Previously ble headers are part of mbed-headers-connectivity, this PR
moves ble headers into new mbed-headers-ble to make ble stubs to be
more self-contained and improves the composition of the library.
pull/14912/head
Rajkumar Kanagaraj 2021-07-09 08:09:08 -07:00
parent c703b0de23
commit a61392ae30
6 changed files with 19 additions and 8 deletions

View File

@ -4,13 +4,11 @@
add_library(mbed-stubs-headers INTERFACE)
add_library(mbed-headers INTERFACE)
add_library(mbed-headers-base INTERFACE)
add_library(mbed-headers-connectivity INTERFACE)
target_link_libraries(mbed-headers
INTERFACE
mbed-headers-base
mbed-headers-platform
mbed-headers-connectivity
mbed-headers-drivers
mbed-headers-hal
mbed-headers-events
@ -28,12 +26,6 @@ target_include_directories(mbed-headers-base
${mbed-os_SOURCE_DIR}/UNITTESTS/target_h/sys
)
target_include_directories(mbed-headers-connectivity
INTERFACE
${mbed-os_SOURCE_DIR}/connectivity
${mbed-os_SOURCE_DIR}/connectivity/FEATURE_BLE/include
${mbed-os_SOURCE_DIR}/connectivity/FEATURE_BLE/include/ble
)
target_include_directories(mbed-headers
INTERFACE

View File

@ -43,4 +43,5 @@ else()
add_subdirectory(netsocket)
add_subdirectory(mbedtls)
add_subdirectory(libraries)
add_subdirectory(FEATURE_BLE)
endif()

View File

@ -1,6 +1,10 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
add_subdirectory(tests/UNITTESTS)
endif()
add_subdirectory(libraries)
add_subdirectory(source)

View File

@ -0,0 +1 @@
*

View File

@ -0,0 +1,3 @@
# Copyright (c) 2021 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
add_subdirectory(doubles)

View File

@ -0,0 +1,10 @@
# Copyright (c) 2021 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
add_library(mbed-headers-feature-ble INTERFACE)
target_include_directories(mbed-headers-feature-ble
INTERFACE
${mbed-os_SOURCE_DIR}/connectivity/FEATURE_BLE/include
${mbed-os_SOURCE_DIR}/connectivity/FEATURE_BLE/include/ble
)