zephyr/subsys/shell/CMakeLists.txt
Jakub Rzeszutko d4559f53fa lib: getopt: rework and extend getopt library
Getopt has been rework in this way that calling it does not require
extra state parameter and its execution is thread safe.
Global parameters describing the state of the getopt function have been
made available to ensure full API compatibility in using this library.
However, referencing these global variables directly is not thread
safe. In order to get the state of the getopt function for the thread
that is currently using it, call: getopt_state_get();

Extended the library with getopt_long and getopt_long_only functions.

Moved getopt libary from utils to posix.

Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
2022-01-06 21:26:59 +01:00

38 lines
530 B
CMake

# SPDX-License-Identifier: Apache-2.0
add_subdirectory(modules)
add_subdirectory(backends)
zephyr_sources_ifdef(
CONFIG_SHELL
shell.c
shell_fprintf.c
shell_utils.c
shell_ops.c
)
zephyr_sources_ifdef(
CONFIG_SHELL_LOG_BACKEND
shell_log_backend.c
)
zephyr_sources_ifdef(
CONFIG_SHELL_HELP
shell_help.c
)
zephyr_sources_ifdef(
CONFIG_SHELL_CMDS
shell_cmds.c
)
zephyr_sources_ifdef(
CONFIG_SHELL_HISTORY
shell_history.c
)
zephyr_sources_ifdef(
CONFIG_SHELL_WILDCARD
shell_wildcard.c
)