mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
5c383d7b73
Fix dependency tree so that lwip doesn't depend on any specific network interface component. Network interface drivers shall depend on esp_netif. esp_netif shall depend on lwip (but not on any specific interface driver) -- it optionally depends on vfs and esp_eth (need ethernet header for L2/bridge mode)
23 lines
780 B
CMake
23 lines
780 B
CMake
idf_build_get_property(target IDF_TARGET)
|
|
set(priv_include_dirs "private_include")
|
|
set(priv_requires "")
|
|
set(requires "log" "esp_common" "freertos")
|
|
set(srcs "default_event_loop.c"
|
|
"esp_event.c"
|
|
"esp_event_private.c")
|
|
|
|
if(${target} STREQUAL "linux")
|
|
list(APPEND requires "linux")
|
|
# Temporary fix until esp_system is available for linux, too
|
|
list(APPEND priv_include_dirs "$ENV{IDF_PATH}/tools/mocks/esp_system/include")
|
|
else()
|
|
list(APPEND priv_requires esp_timer)
|
|
endif()
|
|
|
|
idf_component_register(SRCS ${srcs}
|
|
INCLUDE_DIRS "include"
|
|
PRIV_INCLUDE_DIRS ${priv_include_dirs}
|
|
REQUIRES ${requires}
|
|
PRIV_REQUIRES ${priv_requires}
|
|
LDFRAGMENTS linker.lf)
|