-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
32 lines (30 loc) · 812 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
32 lines (30 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
set(SHIM_SOURCES
src/condition_variable.cpp
src/cpu.cpp
src/event_group.cpp
src/mutex.cpp
src/pend_call.cpp
src/queue.cpp
src/scheduler.cpp
src/semaphore.cpp
src/thread.cpp
src/tick_timer.cpp
src/timed_service.cpp
)
if (ESP_PLATFORM)
# ESP-IDF specific component registration
# https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/build-system.html#component-cmakelists-files
idf_component_register(
REQUIRES freertos
INCLUDE_DIRS include
SRCS ${SHIM_SOURCES}
)
elseif (MCUX_SDK_PROJECT_NAME)
# MCUXpresso SDK specific component registration
if (CONFIG_FREERTOS_MCPP_SHIM)
mcux_add_include(INCLUDES include)
mcux_add_source(SOURCES ${SHIM_SOURCES})
endif()
else()
# ?
endif()