2021-02-04 01:57:20 +01:00
|
|
|
set(headers
|
2021-07-15 17:04:35 +02:00
|
|
|
src/espcppmacros.h
|
2021-02-22 03:47:55 +01:00
|
|
|
src/espcrc32builder.h
|
2021-02-04 12:42:43 +01:00
|
|
|
src/esprandom.h
|
2021-04-07 22:22:55 +02:00
|
|
|
src/espstrutils.h
|
2022-07-11 16:05:42 +02:00
|
|
|
src/futurecpp.h
|
2021-02-04 12:42:43 +01:00
|
|
|
src/lockhelper.h
|
|
|
|
|
src/lockingqueue.h
|
|
|
|
|
src/recursivelockhelper.h
|
2021-08-09 16:38:13 +02:00
|
|
|
src/schedulertask.h
|
2021-02-04 12:42:43 +01:00
|
|
|
src/taskutils.h
|
2021-02-24 17:57:03 +01:00
|
|
|
src/tickchrono.h
|
2021-02-04 12:42:43 +01:00
|
|
|
src/wrappers/binary_semaphore.h
|
|
|
|
|
src/wrappers/counting_semaphore.h
|
|
|
|
|
src/wrappers/event_group.h
|
|
|
|
|
src/wrappers/http_client.h
|
2021-04-26 13:56:16 +02:00
|
|
|
src/wrappers/mqtt_client.h
|
2021-02-04 12:42:43 +01:00
|
|
|
src/wrappers/mutex_semaphore.h
|
|
|
|
|
src/wrappers/queue.h
|
|
|
|
|
src/wrappers/recursive_mutex_semaphore.h
|
|
|
|
|
src/wrappers/websocket_client.h
|
2021-02-04 01:57:20 +01:00
|
|
|
)
|
|
|
|
|
|
2021-02-04 12:42:43 +01:00
|
|
|
set(sources
|
2021-04-07 22:22:55 +02:00
|
|
|
src/espstrutils.cpp
|
2022-06-30 01:34:41 +02:00
|
|
|
src/linker_hacks.cpp
|
2021-08-09 16:38:13 +02:00
|
|
|
src/schedulertask.cpp
|
2021-02-04 12:42:43 +01:00
|
|
|
src/taskutils.cpp
|
|
|
|
|
)
|
|
|
|
|
|
2021-04-26 12:39:10 +02:00
|
|
|
set(dependencies
|
|
|
|
|
freertos
|
|
|
|
|
esp_system
|
|
|
|
|
# esp_http_client
|
2022-03-17 14:45:44 +01:00
|
|
|
esp_hw_support
|
2021-05-31 22:34:40 +02:00
|
|
|
esp_websocket_client
|
2021-08-01 21:43:12 +02:00
|
|
|
tcp_transport
|
|
|
|
|
|
2021-04-26 12:39:10 +02:00
|
|
|
cpputils
|
|
|
|
|
espchrono
|
2021-08-01 21:43:12 +02:00
|
|
|
expected
|
|
|
|
|
fmt
|
2021-04-26 12:39:10 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
idf_component_register(
|
|
|
|
|
INCLUDE_DIRS
|
|
|
|
|
src
|
|
|
|
|
SRCS
|
|
|
|
|
${headers}
|
|
|
|
|
${sources}
|
|
|
|
|
REQUIRES
|
|
|
|
|
${dependencies}
|
|
|
|
|
)
|
2021-05-26 02:43:23 +02:00
|
|
|
|
|
|
|
|
target_compile_options(${COMPONENT_TARGET}
|
|
|
|
|
PRIVATE
|
|
|
|
|
-fstack-reuse=all
|
|
|
|
|
-fstack-protector-all
|
|
|
|
|
-Wno-unused-function
|
|
|
|
|
-Wno-deprecated-declarations
|
|
|
|
|
-Wno-missing-field-initializers
|
|
|
|
|
-Wno-parentheses
|
|
|
|
|
)
|