OVMS3-idf/components/esp_event/CMakeLists.txt

22 lines
750 B
CMake
Raw Normal View History

if(IDF_TARGET STREQUAL "esp32")
set(priv_requires esp_eth esp_timer)
else()
set(priv_requires esp_timer)
endif()
2018-10-26 05:14:19 +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 esp_netif
PRIV_REQUIRES ${priv_requires}
LDFRAGMENTS linker.lf)
2019-11-05 11:20:26 +00:00
if(CONFIG_ESP_EVENT_LOOP_PROFILING)
# uses C11 atomic feature
set_source_files_properties(esp_event.c PROPERTIES COMPILE_FLAGS -std=gnu11)
endif()