CMake: Move lorawan stubs to the lorawan dir

Move the connectivity lorawan stubs into the connectivity/lorawan
component directory. So we can avoid duplicating the mbed-os source
tree in a central UNITTESTS folder.
pull/14842/head
Rajkumar Kanagaraj 2021-06-28 08:22:05 -07:00
parent d0c446875b
commit 8f238f13b1
11 changed files with 29 additions and 8 deletions

View File

@ -23,14 +23,6 @@ target_sources(mbed-stubs-connectivity
cipher_stub.c
cmac_stub.c
ip4tos_stub.c
LoRaMacChannelPlan_stub.cpp
LoRaMacCommand_stub.cpp
LoRaMacCrypto_stub.cpp
LoRaMac_stub.cpp
LoRaPHYEU868_stub.cpp
LoRaPHY_stub.cpp
LoRaWANStack_stub.cpp
LoRaWANTimer_stub.cpp
MeshInterface_stub.cpp
NetworkInterfaceDefaults_stub.cpp
NetworkInterface_stub.cpp

View File

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

View File

@ -0,0 +1,28 @@
# Copyright (c) 2021 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
add_library(mbed-stubs-lorawan)
target_compile_definitions(mbed-stubs-lorawan
PRIVATE
MBED_CONF_LORA_TX_MAX_SIZE=255
)
target_sources(mbed-stubs-lorawan
PRIVATE
LoRaMacChannelPlan_stub.cpp
LoRaMacCommand_stub.cpp
LoRaMacCrypto_stub.cpp
LoRaMac_stub.cpp
LoRaPHYEU868_stub.cpp
LoRaPHY_stub.cpp
LoRaWANStack_stub.cpp
LoRaWANTimer_stub.cpp
)
target_link_libraries(mbed-stubs-lorawan
PRIVATE
mbed-headers
mbed-stubs-headers
gtest
)