embedded-framework/utils/FxHttpServer/README.md
2024-02-27 22:08:38 -08:00

24 lines
949 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 1. httpserver组件库
&emsp;&emsp; 使用<sdk>/external/httpserver.h-master/src/CMakeLists.txt文件编译的开源库二次封装接口给到应用层使用。
## 1.1. 注意事项
1. 编译libhttpsrv时可能会提示 ragel 工具未安装,需要安装 ragel 工具:
```
$ sudo apt install ragel
```
2. 对开源库的CMakeLists.txt文件增加拷贝命令
```
message("${PLATFORM_PATH}/cmake-shell/external${SUBMODULE_PATH_OF_IPC_SDK}/httpserver.h-master/src/libhttpsrv.a")
add_custom_command(
TARGET httpsrv
POST_BUILD
COMMAND cp ${PLATFORM_PATH}/cmake-shell${SUBMODULE_PATH_OF_IPC_SDK}/external/httpserver.h-master/src/libhttpsrv.a ${EXTERNAL_LIBS_OUTPUT_PATH}
WORKING_DIRECTORY ${PLATFORM_PATH}/cmake-shell/
)
```
3. 取消开源库的CMakeLists.txt文件debug配置未知会产生什么不良后果
```
PUBLIC $<$<CONFIG:DEBUG>:-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all>
```
4.