2018-10-26 01:14:19 -04:00
|
|
|
set(COMPONENT_SRCS "default_event_loop.c"
|
|
|
|
"esp_event.c"
|
2019-03-18 07:58:04 -04:00
|
|
|
"esp_event_private.c"
|
2018-11-05 22:09:32 -05:00
|
|
|
"event_loop_legacy.c"
|
|
|
|
"event_send.c")
|
|
|
|
|
2018-10-26 01:14:19 -04:00
|
|
|
set(COMPONENT_ADD_INCLUDEDIRS "include")
|
|
|
|
set(COMPONENT_PRIV_INCLUDEDIRS "private_include")
|
|
|
|
|
2019-03-18 07:58:04 -04:00
|
|
|
set(COMPONENT_REQUIRES log tcpip_adapter)
|
2019-06-05 22:57:29 -04:00
|
|
|
if(IDF_TARGET STREQUAL "esp32")
|
2019-05-27 02:29:43 -04:00
|
|
|
set(COMPONENT_PRIV_REQUIRES ethernet)
|
|
|
|
endif()
|
2018-10-26 01:14:19 -04:00
|
|
|
|
2019-02-15 08:28:24 -05:00
|
|
|
set(COMPONENT_ADD_LDFRAGMENTS linker.lf)
|
|
|
|
|
2018-10-26 01:14:19 -04:00
|
|
|
register_component()
|
2019-02-15 08:28:24 -05:00
|
|
|
|
2019-04-29 06:54:02 -04:00
|
|
|
if(GCC_NOT_5_2_0 AND CONFIG_ESP_EVENT_LOOP_PROFILING)
|
2019-02-15 08:28:24 -05:00
|
|
|
# uses C11 atomic feature
|
|
|
|
set_source_files_properties(esp_event.c PROPERTIES COMPILE_FLAGS -std=gnu11)
|
2019-04-29 06:54:02 -04:00
|
|
|
endif()
|