Added some httpd utils

This commit is contained in:
2021-08-06 17:12:16 +02:00
parent dd3ec71e97
commit a78711317b
3 changed files with 169 additions and 0 deletions

38
CMakeLists.txt Normal file
View File

@@ -0,0 +1,38 @@
set(headers
src/esphttpdutils.h
)
set(sources
src/esphttpdutils.cpp
)
set(dependencies
esp_http_server
nghttp
cpputils
espchrono
espcpputils
expected
fmt
)
idf_component_register(
INCLUDE_DIRS
src
SRCS
${headers}
${sources}
REQUIRES
${dependencies}
)
target_compile_options(${COMPONENT_TARGET}
PRIVATE
-fstack-reuse=all
-fstack-protector-all
-Wno-unused-function
-Wno-deprecated-declarations
-Wno-missing-field-initializers
-Wno-parentheses
)