2021-07-21 00:07:53 -04:00
|
|
|
# NOTE: This kind of mocking currently works on Linux targets only.
|
|
|
|
# On Espressif chips, too many dependencies are missing at the moment.
|
2022-09-05 09:46:10 -04:00
|
|
|
message(STATUS "building FREERTOS MOCKS (only task, event-groups and queue)")
|
2021-07-21 00:07:53 -04:00
|
|
|
|
|
|
|
idf_component_get_property(original_freertos_dir freertos COMPONENT_OVERRIDEN_DIR)
|
|
|
|
|
|
|
|
set(include_dirs
|
2022-09-05 09:46:10 -04:00
|
|
|
"include"
|
2021-09-20 02:07:03 -04:00
|
|
|
"${original_freertos_dir}/FreeRTOS-Kernel/include"
|
|
|
|
"${original_freertos_dir}/esp_additions/include"
|
|
|
|
"${original_freertos_dir}/esp_additions/include/freertos"
|
|
|
|
"${original_freertos_dir}/FreeRTOS-Kernel/include/freertos" # this is due to the way includes are generated in CMock
|
|
|
|
"${original_freertos_dir}/FreeRTOS-Kernel/portable/linux/include")
|
2021-07-21 00:07:53 -04:00
|
|
|
|
|
|
|
idf_component_mock(INCLUDE_DIRS ${include_dirs}
|
|
|
|
REQUIRES esp_common
|
|
|
|
MOCK_HEADER_FILES
|
2021-09-20 02:07:03 -04:00
|
|
|
${original_freertos_dir}/FreeRTOS-Kernel/include/freertos/task.h
|
2022-09-05 09:46:10 -04:00
|
|
|
${original_freertos_dir}/FreeRTOS-Kernel/include/freertos/event_groups.h
|
2021-09-20 02:07:03 -04:00
|
|
|
${original_freertos_dir}/FreeRTOS-Kernel/include/freertos/queue.h)
|