Repository navigation
netutils/libwebsockets: add cmake support - #3275
Conversation
add libwebsockets cmake support Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
|
@yjq91115 do you have some sample example that uses libwebsockets? |
Currently, this patch only supports CMake compilation, which has the same capabilities as a Makefile. There are still some compilation issues in the libwebsocket library, which will be fixed later to ensure proper functionality. Do you think this patch should be merged in first? @acassis |
Hi @yjq91115 yes both CMake and Makefile are equivalent, but NuttX needs both to work correctly, many users are still using Makefile because it was the only option for a long time (and I think it still the default option). Please submit some sample code to let users to test it easily, i.e. integrated on sim board config. |
Summary
Add CMake build support for
libwebsockets, allowing it to be configured and built as part of NuttX using a CMake-based workflow. This change fills the gap where only other build systems were supported, by introducing/updating the necessary CMake configuration and target definitions so that compile options, include paths, and link dependencies are correctly resolved and integrated under CMake.Impact
libwebsocketsdirectly, reducing manual integration effort (e.g., custom Makefiles/scripts).Testing