mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-29 18:27:31 +02:00
feat(examples): Add support for lwip build under linux
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
set(requires "")
|
||||
if(${IDF_TARGET} STREQUAL "linux")
|
||||
list(APPEND requires esp_stubs esp-tls protocol_examples_common mqtt)
|
||||
endif()
|
||||
idf_component_register(SRCS "app_main.c"
|
||||
INCLUDE_DIRS "."
|
||||
REQUIRES ${requires})
|
||||
idf_component_register(SRCS "app_main.cpp"
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
|
||||
|
||||
if(${IDF_TARGET} STREQUAL "linux")
|
||||
if(WITH_LWIP STREQUAL "1")
|
||||
target_compile_definitions(${COMPONENT_LIB} PUBLIC WITH_LWIP)
|
||||
endif()
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user