mirror of https://github.com/ARMmbed/mbed-os.git
CMake: Fix build failure due to BLE dir changes
parent
042e9c7078
commit
e22b19d6db
|
@ -2,27 +2,21 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
add_subdirectory(libraries)
|
add_subdirectory(libraries)
|
||||||
|
add_subdirectory(source)
|
||||||
|
|
||||||
target_include_directories(mbed-os
|
target_include_directories(mbed-os
|
||||||
PUBLIC
|
PUBLIC
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}
|
.
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
include
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble
|
include/ble
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble/common
|
include/ble/common
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble/common/ble
|
include/ble/common/ble
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble/common/ble/gap
|
include/ble/common/ble/gap
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble/internal
|
include/ble/compatibility
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble/services
|
include/ble/compatibility/ble
|
||||||
)
|
include/ble/driver
|
||||||
|
include/ble/gap
|
||||||
target_sources(mbed-os
|
include/ble/gatt
|
||||||
PRIVATE
|
include/ble/services
|
||||||
source/BLE.cpp
|
source
|
||||||
source/DiscoveredCharacteristic.cpp
|
|
||||||
source/FileSecurityDb.cpp
|
|
||||||
source/KVStoreSecurityDb.cpp
|
|
||||||
|
|
||||||
source/gap/AdvertisingDataBuilder.cpp
|
|
||||||
source/gap/AdvertisingParameters.cpp
|
|
||||||
source/gap/ConnectionParameters.cpp
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,4 +3,9 @@
|
||||||
|
|
||||||
mbed_add_cmake_directory_if_labels("TARGET")
|
mbed_add_cmake_directory_if_labels("TARGET")
|
||||||
|
|
||||||
add_subdirectory(ble-api-implementation)
|
add_subdirectory(cordio_stack)
|
||||||
|
|
||||||
|
target_include_directories(mbed-os
|
||||||
|
PUBLIC
|
||||||
|
.
|
||||||
|
)
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
target_include_directories(mbed-os
|
|
||||||
PUBLIC
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble/internal
|
|
||||||
)
|
|
||||||
|
|
||||||
target_sources(mbed-os
|
|
||||||
PRIVATE
|
|
||||||
source/GapImpl.cpp
|
|
||||||
source/GattClientImpl.cpp
|
|
||||||
source/GattServerImpl.cpp
|
|
||||||
source/SecurityManagerImpl.cpp
|
|
||||||
)
|
|
|
@ -2,10 +2,5 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
add_subdirectory(ble-host)
|
add_subdirectory(ble-host)
|
||||||
|
add_subdirectory(platform)
|
||||||
add_subdirectory(wsf)
|
add_subdirectory(wsf)
|
||||||
|
|
||||||
|
|
||||||
target_include_directories(mbed-os
|
|
||||||
PUBLIC
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/platform/include
|
|
||||||
)
|
|
|
@ -3,15 +3,15 @@
|
||||||
|
|
||||||
target_include_directories(mbed-os
|
target_include_directories(mbed-os
|
||||||
PUBLIC
|
PUBLIC
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
include
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/hci/dual_chip
|
sources/hci/dual_chip
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/sec/common
|
sources/sec/common
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/att
|
sources/stack/att
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/cfg
|
sources/stack/cfg
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/dm
|
sources/stack/dm
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/hci
|
sources/stack/hci
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/l2c
|
sources/stack/l2c
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/smp
|
sources/stack/smp
|
||||||
)
|
)
|
||||||
|
|
||||||
target_sources(mbed-os
|
target_sources(mbed-os
|
|
@ -0,0 +1,7 @@
|
||||||
|
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
target_include_directories(mbed-os
|
||||||
|
PUBLIC
|
||||||
|
include
|
||||||
|
)
|
|
@ -3,8 +3,8 @@
|
||||||
|
|
||||||
target_include_directories(mbed-os
|
target_include_directories(mbed-os
|
||||||
PUBLIC
|
PUBLIC
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
include
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include/util
|
include/util
|
||||||
)
|
)
|
||||||
|
|
||||||
target_sources(mbed-os
|
target_sources(mbed-os
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
add_subdirectory(cordio)
|
||||||
|
add_subdirectory(gap)
|
||||||
|
add_subdirectory(gatt)
|
||||||
|
add_subdirectory(generic)
|
||||||
|
add_subdirectory(pal)
|
||||||
|
|
||||||
|
target_sources(mbed-os
|
||||||
|
PRIVATE
|
||||||
|
BLE.cpp
|
||||||
|
Gap.cpp
|
||||||
|
GattClient.cpp
|
||||||
|
GattServer.cpp
|
||||||
|
SecurityManager.cpp
|
||||||
|
)
|
|
@ -1,16 +1,11 @@
|
||||||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
add_subdirectory(stack)
|
|
||||||
|
|
||||||
target_include_directories(mbed-os
|
target_include_directories(mbed-os
|
||||||
PUBLIC
|
PUBLIC
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}
|
.
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/driver
|
source
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
stack_adaptation
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble/internal
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/stack_adaptation
|
|
||||||
)
|
)
|
||||||
|
|
||||||
target_sources(mbed-os
|
target_sources(mbed-os
|
||||||
|
@ -20,13 +15,12 @@ target_sources(mbed-os
|
||||||
driver/H4TransportDriver.cpp
|
driver/H4TransportDriver.cpp
|
||||||
|
|
||||||
source/BLEInstanceBaseImpl.cpp
|
source/BLEInstanceBaseImpl.cpp
|
||||||
|
source/GattServerImpl.cpp
|
||||||
source/PalAttClientImpl.cpp
|
source/PalAttClientImpl.cpp
|
||||||
source/PalEventQueueImpl.cpp
|
source/PalEventQueueImpl.cpp
|
||||||
source/PalGapImpl.cpp
|
source/PalGapImpl.cpp
|
||||||
source/PalGattClientImpl.cpp
|
|
||||||
source/PalGenericAccessServiceImpl.cpp
|
source/PalGenericAccessServiceImpl.cpp
|
||||||
source/PalSecurityManagerImpl.cpp
|
source/PalSecurityManagerImpl.cpp
|
||||||
source/PalSigningMonitorImpl.cpp
|
|
||||||
|
|
||||||
stack_adaptation/hci_tr.c
|
stack_adaptation/hci_tr.c
|
||||||
stack_adaptation/hci_vs.c
|
stack_adaptation/hci_vs.c
|
|
@ -0,0 +1,9 @@
|
||||||
|
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
target_sources(mbed-os
|
||||||
|
PRIVATE
|
||||||
|
AdvertisingDataBuilder.cpp
|
||||||
|
AdvertisingParameters.cpp
|
||||||
|
ConnectionParameters.cpp
|
||||||
|
)
|
|
@ -0,0 +1,7 @@
|
||||||
|
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
target_sources(mbed-os
|
||||||
|
PRIVATE
|
||||||
|
DiscoveredCharacteristic.cpp
|
||||||
|
)
|
|
@ -0,0 +1,16 @@
|
||||||
|
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
target_include_directories(mbed-os
|
||||||
|
PUBLIC
|
||||||
|
.
|
||||||
|
)
|
||||||
|
|
||||||
|
target_sources(mbed-os
|
||||||
|
PRIVATE
|
||||||
|
FileSecurityDb.cpp
|
||||||
|
GapImpl.cpp
|
||||||
|
GattClientImpl.cpp
|
||||||
|
KVStoreSecurityDb.cpp
|
||||||
|
SecurityManagerImpl.cpp
|
||||||
|
)
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
target_include_directories(mbed-os
|
||||||
|
PUBLIC
|
||||||
|
.
|
||||||
|
)
|
||||||
|
|
||||||
|
target_sources(mbed-os
|
||||||
|
PRIVATE
|
||||||
|
PalAttClientToGattClient.cpp
|
||||||
|
)
|
Loading…
Reference in New Issue