mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 20:54:24 +00:00
build system: Initial cmake support, work in progress
This commit is contained in:

committed by
Angus Gratton

parent
a538644560
commit
c671a0c3eb
37
components/lwip/CMakeLists.txt
Normal file
37
components/lwip/CMakeLists.txt
Normal file
@@ -0,0 +1,37 @@
|
||||
set(COMPONENT_ADD_INCLUDEDIRS
|
||||
include/lwip
|
||||
include/lwip/port
|
||||
include/lwip/posix
|
||||
apps/ping
|
||||
)
|
||||
|
||||
if(CONFIG_PPP_SUPPORT)
|
||||
set(LWIP_PPP_DIRS netif/ppp/polarssl netif/ppp)
|
||||
endif()
|
||||
|
||||
set(COMPONENT_SRCDIRS
|
||||
api
|
||||
apps apps/sntp apps/ping
|
||||
core core/ipv4 core/ipv6
|
||||
${LWIP_PPP_DIRS} netif
|
||||
port/freertos port/netif port/debug port)
|
||||
|
||||
register_component()
|
||||
|
||||
target_compile_options(lwip PRIVATE
|
||||
-Wno-address
|
||||
)
|
||||
|
||||
# patch around warnings in third-party files
|
||||
set_source_files_properties(api/tcpip.c
|
||||
PROPERTIES COMPILE_FLAGS
|
||||
-Wno-unused-variable
|
||||
)
|
||||
set_source_files_properties(core/pbuf.c core/tcp_in.c
|
||||
PROPERTIES COMPILE_FLAGS
|
||||
-Wno-unused-but-set-variable
|
||||
)
|
||||
set_source_files_properties(apps/dhcpserver.c
|
||||
PROPERTIES COMPILE_FLAGS
|
||||
"-Wno-unused-variable -Wno-unused-but-set-variable -Wno-type-limits"
|
||||
)
|
Reference in New Issue
Block a user