2021-07-21 04:07:53 +00:00
|
|
|
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")
|
2019-08-08 03:44:24 +00:00
|
|
|
else()
|
2022-05-11 14:01:48 +00:00
|
|
|
list(APPEND priv_requires esp_timer)
|
2019-05-27 06:29:43 +00:00
|
|
|
endif()
|
2018-10-26 05:14:19 +00:00
|
|
|
|
2021-07-21 04:07:53 +00:00
|
|
|
idf_component_register(SRCS ${srcs}
|
2019-04-28 07:38:23 +00:00
|
|
|
INCLUDE_DIRS "include"
|
2021-07-21 04:07:53 +00:00
|
|
|
PRIV_INCLUDE_DIRS ${priv_include_dirs}
|
|
|
|
REQUIRES ${requires}
|
2019-08-08 03:44:24 +00:00
|
|
|
PRIV_REQUIRES ${priv_requires}
|
2019-04-28 07:38:23 +00:00
|
|
|
LDFRAGMENTS linker.lf)
|