Last change
on this file since 109302 was 109249, checked in by vboxsync, 10 days ago |
libs: Add lwip-2.2.1 from the vendor branch, bugref:10899
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.3 KB
|
Line | |
---|
1 | cmake_minimum_required(VERSION 3.10)
|
---|
2 |
|
---|
3 | set (CMAKE_CONFIGURATION_TYPES "Debug;Release")
|
---|
4 |
|
---|
5 | project(lwIP)
|
---|
6 |
|
---|
7 | # Example lwIP application
|
---|
8 | set(LWIP_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
---|
9 |
|
---|
10 | set (LWIP_DEFINITIONS LWIP_DEBUG=1)
|
---|
11 |
|
---|
12 | if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
---|
13 | add_subdirectory(${LWIP_DIR}/contrib/ports/win32/example_app)
|
---|
14 | elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" OR ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
|
---|
15 | add_subdirectory(${LWIP_DIR}/contrib/ports/unix/example_app)
|
---|
16 | else()
|
---|
17 | message(WARNING "Host ${CMAKE_SYSTEM_NAME} is not supported to build example_app")
|
---|
18 | endif()
|
---|
19 |
|
---|
20 | # Source package generation
|
---|
21 | set(CPACK_SOURCE_GENERATOR "ZIP")
|
---|
22 | set(CPACK_SOURCE_PACKAGE_DESCRIPTION_SUMMARY "lwIP lightweight IP stack")
|
---|
23 | set(CPACK_PACKAGE_VERSION_MAJOR "${LWIP_VERSION_MAJOR}")
|
---|
24 | set(CPACK_PACKAGE_VERSION_MINOR "${LWIP_VERSION_MINOR}")
|
---|
25 | set(CPACK_PACKAGE_VERSION_PATCH "${LWIP_VERSION_REVISION}")
|
---|
26 | set(CPACK_SOURCE_IGNORE_FILES "/build/;${CPACK_SOURCE_IGNORE_FILES};.git")
|
---|
27 | set(CPACK_SOURCE_PACKAGE_FILE_NAME "lwip-${LWIP_VERSION_MAJOR}.${LWIP_VERSION_MINOR}.${LWIP_VERSION_REVISION}")
|
---|
28 | include(CPack)
|
---|
29 |
|
---|
30 | # Generate docs before creating source package
|
---|
31 | include(src/Filelists.cmake)
|
---|
32 | if (NOT TARGET dist)
|
---|
33 | add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
|
---|
34 | if (TARGET lwipdocs)
|
---|
35 | add_dependencies(dist lwipdocs)
|
---|
36 | endif()
|
---|
37 | endif()
|
---|
Note:
See
TracBrowser
for help on using the repository browser.