2019-06-06 02:57:29 +00:00
|
|
|
if(IDF_TARGET STREQUAL "esp32")
|
2019-08-08 03:44:24 +00:00
|
|
|
set(priv_requires esp_eth)
|
|
|
|
else()
|
|
|
|
set(priv_requires)
|
2019-05-27 06:29:43 +00:00
|
|
|
endif()
|
2018-10-26 05:14:19 +00:00
|
|
|
|
2019-04-28 07:38:23 +00: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"
|
|
|
|
REQUIRES log tcpip_adapter
|
2019-08-08 03:44:24 +00:00
|
|
|
PRIV_REQUIRES ${priv_requires}
|
2019-04-28 07:38:23 +00:00
|
|
|
LDFRAGMENTS linker.lf)
|
2019-02-15 13:28:24 +00:00
|
|
|
|
2019-04-29 10:54:02 +00:00
|
|
|
if(GCC_NOT_5_2_0 AND CONFIG_ESP_EVENT_LOOP_PROFILING)
|
2019-02-15 13:28:24 +00:00
|
|
|
# uses C11 atomic feature
|
|
|
|
set_source_files_properties(esp_event.c PROPERTIES COMPILE_FLAGS -std=gnu11)
|
2019-04-29 10:54:02 +00:00
|
|
|
endif()
|