mirror of
https://github.com/FreeRTOS/FreeRTOS-Plus-TCP
synced 2025-10-22 16:37:41 +08:00

* #556 Initial Cmake Module definition. * Fixing CI builds, rely on pcap. (#556) * Updating tested configurations and minor clean-up of missing network interfaces (#555) * Further clean-up based on testing with build environment. (#555) * Using single definition for libraries everywhere. (#555) * Fixing A_CUSTOM_NETWORK_IF compile option. * Identifying and fixing compile issues. * Adding in additional warnings for GNU to ignore for now. * Fixing formatting issues with uncrustify. * More warnings for GNU used by CI/CD pipeline. * Assuming custom for build tests and using latest freertos-kernel code. Updated readme for how to consume at project level. * Fixing up issues identified in the PR. Making the build_test EXCLUDE_FROM_ALL so only compiled if requested. * Changing to support C89 instead of C99. Renaming tcp_tools to tcp_utilities to mimic the directory. * Using C90 ISO. Fixing compiler warnings. * Fixing non C90 compliant declaration after statement * Separating out CMakeLists so each port is independent. * Updating warning list in code. * Fixed formatting with uncrustify. * Fix failing tests * Fix failing unit-test * Fix a typo. --------- Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>
29 lines
697 B
CMake
29 lines
697 B
CMake
if (NOT (FREERTOS_PLUS_TCP_NETWORK_IF STREQUAL "ESP32") )
|
|
return()
|
|
endif()
|
|
|
|
if(NOT TARGET esp32_lib)
|
|
message(FATAL_ERROR "For FREERTOS_PLUS_TCP_NETWORK_IF=ESP32 must have a target for the esp32_lib")
|
|
endif()
|
|
#------------------------------------------------------------------------------
|
|
add_library( freertos_plus_tcp_network_if STATIC )
|
|
|
|
target_sources( freertos_plus_tcp_network_if
|
|
PRIVATE
|
|
NetworkInterface.c
|
|
)
|
|
|
|
target_link_libraries( freertos_plus_tcp_network_if
|
|
PRIVATE
|
|
esp32_lib # TODO
|
|
)
|
|
|
|
target_link_libraries( freertos_plus_tcp_network_if
|
|
PUBLIC
|
|
freertos_plus_tcp_port
|
|
freertos_plus_tcp_network_if_common
|
|
PRIVATE
|
|
freertos_kernel
|
|
freertos_plus_tcp
|
|
)
|