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.
|
|
|
|
message(STATUS "building FREERTOS MOCKS (only task and queue)")
|
|
|
|
|
|
|
|
idf_component_get_property(original_freertos_dir freertos COMPONENT_OVERRIDEN_DIR)
|
|
|
|
|
|
|
|
set(include_dirs
|
|
|
|
"${original_freertos_dir}/include"
|
|
|
|
"${original_freertos_dir}/include/freertos" # this is due to the way includes are generated in CMock
|
2021-08-03 22:56:37 -04:00
|
|
|
"${original_freertos_dir}/include/esp_additions"
|
2021-07-21 00:07:53 -04:00
|
|
|
"${original_freertos_dir}/port/linux/include")
|
|
|
|
|
|
|
|
idf_component_mock(INCLUDE_DIRS ${include_dirs}
|
|
|
|
REQUIRES esp_common
|
|
|
|
MOCK_HEADER_FILES
|
|
|
|
${original_freertos_dir}/include/freertos/task.h
|
|
|
|
${original_freertos_dir}/include/freertos/queue.h)
|