Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion UNITTESTS/fakes/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

add_subdirectory(events)
add_subdirectory(ble)
11 changes: 0 additions & 11 deletions UNITTESTS/stubs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ add_library(mbed-stubs-headers INTERFACE)
add_library(mbed-headers INTERFACE)
add_library(mbed-headers-base INTERFACE)
add_library(mbed-headers-connectivity INTERFACE)
add_library(mbed-headers-events INTERFACE)

target_link_libraries(mbed-headers
INTERFACE
Expand Down Expand Up @@ -40,15 +39,6 @@ target_include_directories(mbed-headers-connectivity
${mbed-os_SOURCE_DIR}/connectivity/FEATURE_BLE/include/ble
)

target_include_directories(mbed-headers-events
INTERFACE
${mbed-os_SOURCE_DIR}/events/tests/UNITTESTS/target_h
${mbed-os_SOURCE_DIR}/events/tests/UNITTESTS/target_h/equeue
${mbed-os_SOURCE_DIR}/events/include
${mbed-os_SOURCE_DIR}/events/include/events
${mbed-os_SOURCE_DIR}/events/include/events/internal
)

target_include_directories(mbed-headers
INTERFACE
${mbed-os_SOURCE_DIR}/features
Expand All @@ -62,7 +52,6 @@ target_include_directories(mbed-stubs-headers
)

add_subdirectory(connectivity)
add_subdirectory(events)

add_library(mbed-stubs INTERFACE)

Expand Down
19 changes: 0 additions & 19 deletions UNITTESTS/stubs/events/CMakeLists.txt

This file was deleted.

1 change: 1 addition & 0 deletions events/tests/UNITTESTS/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright (c) 2021 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

add_subdirectory(doubles)
add_subdirectory(equeue)
41 changes: 41 additions & 0 deletions events/tests/UNITTESTS/doubles/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright (c) 2021 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

add_subdirectory(fakes)

add_library(mbed-headers-events INTERFACE)

target_include_directories(mbed-headers-events
INTERFACE
${mbed-os_SOURCE_DIR}/events/tests/UNITTESTS/target_h
${mbed-os_SOURCE_DIR}/events/tests/UNITTESTS/target_h/equeue
${mbed-os_SOURCE_DIR}/events/include
${mbed-os_SOURCE_DIR}/events/include/events
${mbed-os_SOURCE_DIR}/events/include/events/internal
)

add_library(mbed-stubs-events)

target_sources(mbed-stubs-events
PRIVATE
equeue_stub.c
EqueuePosix_stub.c
EventFlags_stub.cpp
EventQueue_stub.cpp
mbed_shared_queues_stub.cpp
)

target_include_directories(mbed-stubs-events
PUBLIC
.
)

target_link_libraries(mbed-stubs-events
PRIVATE
mbed-headers-base
mbed-headers-drivers
mbed-headers-hal
mbed-headers-events
mbed-headers-rtos
mbed-headers-platform
)
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ target_sources(mbed-fakes-event-queue

target_include_directories(mbed-fakes-event-queue
PUBLIC
.
.
)

target_link_libraries(mbed-fakes-event-queue
Expand Down