Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to disable examples apps #28

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mihnen
Copy link

@mihnen mihnen commented Mar 7, 2024

Not everyone wants the example apps built on these platforms. For our specific use case we have an emulated build for tests and target platform is embedded, in the test environment we don't actually want real sockets. This PR adds an option to disable the example app builds for those that don't want it. The default is to retain the current behavior of building them by default on these platforms.

CMakeLists.txt Outdated
add_subdirectory(${LWIP_DIR}/contrib/ports/win32/example_app)
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
add_subdirectory(${LWIP_DIR}/contrib/ports/unix/example_app)
OPTION(LWIP_OPTION_ENABLE_EXAMPLE_APPS "Build example apps on win32/unix/darwin" ON)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be win32/linux/darwin not win32/unix/darwin, since unix is used for both Linux and Darwin.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DmitriiKostrov fixed in latest commit.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DmitriiKostrov Is there anything else that needs done to get this in? Been sitting 2 weeks now with no action.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, all looks fine for me. But I'm not a maintainer and cannot fully aprove it. Sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants