Skip to content

Commit 8f238f1

Browse files
committed
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.
1 parent d0c4468 commit 8f238f1

File tree

11 files changed

+29
-8
lines changed

11 files changed

+29
-8
lines changed

UNITTESTS/stubs/connectivity/CMakeLists.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ target_sources(mbed-stubs-connectivity
2323
cipher_stub.c
2424
cmac_stub.c
2525
ip4tos_stub.c
26-
LoRaMacChannelPlan_stub.cpp
27-
LoRaMacCommand_stub.cpp
28-
LoRaMacCrypto_stub.cpp
29-
LoRaMac_stub.cpp
30-
LoRaPHYEU868_stub.cpp
31-
LoRaPHY_stub.cpp
32-
LoRaWANStack_stub.cpp
33-
LoRaWANTimer_stub.cpp
3426
MeshInterface_stub.cpp
3527
NetworkInterfaceDefaults_stub.cpp
3628
NetworkInterface_stub.cpp
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright (c) 2021 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4+
add_subdirectory(doubles)
45
add_subdirectory(features)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright (c) 2021 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
add_library(mbed-stubs-lorawan)
5+
6+
target_compile_definitions(mbed-stubs-lorawan
7+
PRIVATE
8+
MBED_CONF_LORA_TX_MAX_SIZE=255
9+
)
10+
11+
target_sources(mbed-stubs-lorawan
12+
PRIVATE
13+
LoRaMacChannelPlan_stub.cpp
14+
LoRaMacCommand_stub.cpp
15+
LoRaMacCrypto_stub.cpp
16+
LoRaMac_stub.cpp
17+
LoRaPHYEU868_stub.cpp
18+
LoRaPHY_stub.cpp
19+
LoRaWANStack_stub.cpp
20+
LoRaWANTimer_stub.cpp
21+
)
22+
23+
target_link_libraries(mbed-stubs-lorawan
24+
PRIVATE
25+
mbed-headers
26+
mbed-stubs-headers
27+
gtest
28+
)

0 commit comments

Comments
 (0)