mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
[mocks]: freertos mock
[esp_event]: added preliminary host-based tests
This commit is contained in:
@@ -1,17 +1,29 @@
|
||||
if(IDF_TARGET STREQUAL "esp32")
|
||||
set(priv_requires esp_eth esp_timer)
|
||||
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}/mocks/esp_system/include")
|
||||
else()
|
||||
set(priv_requires esp_timer)
|
||||
list(APPEND requires "esp_netif")
|
||||
list(APPEND srcs "event_loop_legacy.c" "event_send.c")
|
||||
if(${target} STREQUAL "esp32")
|
||||
list(APPEND priv_requires esp_eth esp_timer)
|
||||
else()
|
||||
list(APPEND priv_requires esp_timer)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
idf_component_register(SRCS "default_event_loop.c"
|
||||
"esp_event.c"
|
||||
"esp_event_private.c"
|
||||
"event_loop_legacy.c"
|
||||
"event_send.c"
|
||||
idf_component_register(SRCS ${srcs}
|
||||
INCLUDE_DIRS "include"
|
||||
PRIV_INCLUDE_DIRS "private_include"
|
||||
REQUIRES log esp_netif
|
||||
PRIV_INCLUDE_DIRS ${priv_include_dirs}
|
||||
REQUIRES ${requires}
|
||||
PRIV_REQUIRES ${priv_requires}
|
||||
LDFRAGMENTS linker.lf)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user