2019-06-06 10:57:29 +08:00
|
|
|
if(IDF_TARGET STREQUAL "esp32")
|
2020-02-06 14:00:18 +08:00
|
|
|
set(priv_requires esp_eth esp_timer)
|
2019-08-08 13:44:24 +10:00
|
|
|
else()
|
2020-02-06 14:00:18 +08:00
|
|
|
set(priv_requires esp_timer)
|
2019-05-27 14:29:43 +08:00
|
|
|
endif()
|
2018-10-26 13:14:19 +08:00
|
|
|
|
2019-04-28 15:38:23 +08:00
|
|
|
idf_component_register(SRCS "default_event_loop.c"
|
|
|
|
"esp_event.c"
|
|
|
|
"esp_event_private.c"
|
|
|
|
"event_loop_legacy.c"
|
|
|
|
"event_send.c"
|
|
|
|
INCLUDE_DIRS "include"
|
|
|
|
PRIV_INCLUDE_DIRS "private_include"
|
2019-06-28 16:47:34 +02:00
|
|
|
REQUIRES log esp_netif
|
2019-08-08 13:44:24 +10:00
|
|
|
PRIV_REQUIRES ${priv_requires}
|
2019-04-28 15:38:23 +08:00
|
|
|
LDFRAGMENTS linker.lf)
|
2019-02-15 21:28:24 +08:00
|
|
|
|
2019-11-05 12:20:26 +01:00
|
|
|
if(CONFIG_ESP_EVENT_LOOP_PROFILING)
|
2019-02-15 21:28:24 +08:00
|
|
|
# uses C11 atomic feature
|
|
|
|
set_source_files_properties(esp_event.c PROPERTIES COMPILE_FLAGS -std=gnu11)
|
2019-04-29 12:54:02 +02:00
|
|
|
endif()
|