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
|
||||
|
||||
add_subdirectory(libraries)
|
||||
add_subdirectory(source)
|
||||
|
||||
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/common
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble/common/ble
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble/common/ble/gap
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble/internal
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble/services
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
source/BLE.cpp
|
||||
source/DiscoveredCharacteristic.cpp
|
||||
source/FileSecurityDb.cpp
|
||||
source/KVStoreSecurityDb.cpp
|
||||
|
||||
source/gap/AdvertisingDataBuilder.cpp
|
||||
source/gap/AdvertisingParameters.cpp
|
||||
source/gap/ConnectionParameters.cpp
|
||||
.
|
||||
include
|
||||
include/ble
|
||||
include/ble/common
|
||||
include/ble/common/ble
|
||||
include/ble/common/ble/gap
|
||||
include/ble/compatibility
|
||||
include/ble/compatibility/ble
|
||||
include/ble/driver
|
||||
include/ble/gap
|
||||
include/ble/gatt
|
||||
include/ble/services
|
||||
source
|
||||
)
|
||||
|
|
|
@ -3,4 +3,9 @@
|
|||
|
||||
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
|
||||
|
||||
add_subdirectory(ble-host)
|
||||
add_subdirectory(platform)
|
||||
add_subdirectory(wsf)
|
||||
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/platform/include
|
||||
)
|
|
@ -3,15 +3,15 @@
|
|||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/hci/dual_chip
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/sec/common
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/att
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/cfg
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/dm
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/hci
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/l2c
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/smp
|
||||
include
|
||||
sources/hci/dual_chip
|
||||
sources/sec/common
|
||||
sources/stack/att
|
||||
sources/stack/cfg
|
||||
sources/stack/dm
|
||||
sources/stack/hci
|
||||
sources/stack/l2c
|
||||
sources/stack/smp
|
||||
)
|
||||
|
||||
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
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/util
|
||||
include
|
||||
include/util
|
||||
)
|
||||
|
||||
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.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_subdirectory(stack)
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/driver
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble/internal
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stack_adaptation
|
||||
.
|
||||
source
|
||||
stack_adaptation
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
|
@ -20,13 +15,12 @@ target_sources(mbed-os
|
|||
driver/H4TransportDriver.cpp
|
||||
|
||||
source/BLEInstanceBaseImpl.cpp
|
||||
source/GattServerImpl.cpp
|
||||
source/PalAttClientImpl.cpp
|
||||
source/PalEventQueueImpl.cpp
|
||||
source/PalGapImpl.cpp
|
||||
source/PalGattClientImpl.cpp
|
||||
source/PalGenericAccessServiceImpl.cpp
|
||||
source/PalSecurityManagerImpl.cpp
|
||||
source/PalSigningMonitorImpl.cpp
|
||||
|
||||
stack_adaptation/hci_tr.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