2022-09-05 13:46:10 +00: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 LWIP MOCKS (only netdb)")
|
|
|
|
|
|
|
|
idf_component_get_property(original_lwip_dir lwip COMPONENT_OVERRIDEN_DIR)
|
|
|
|
|
2022-10-05 13:20:39 +00:00
|
|
|
idf_component_mock(INCLUDE_DIRS "${original_lwip_dir}/include"
|
2022-09-05 13:46:10 +00:00
|
|
|
"${original_lwip_dir}/include/lwip"
|
|
|
|
"${original_lwip_dir}/lwip/src/include"
|
2022-10-05 13:20:39 +00:00
|
|
|
"${original_lwip_dir}/lwip/src/include/compat/posix"
|
|
|
|
"${original_lwip_dir}/port/include"
|
|
|
|
"${original_lwip_dir}/port/linux/include"
|
|
|
|
"${original_lwip_dir}/port/freertos/include"
|
|
|
|
"${original_lwip_dir}/port/linux/include/arch"
|
|
|
|
MOCK_HEADER_FILES ${original_lwip_dir}/lwip/src/include/lwip/netdb.h)
|