blob: ff42a5be06b350c036f8851536be4d897a1ac7ee [file]
# SPDX-License-Identifier: Apache-2.0
# Auto-generated from corresponding CMakeLists.txt in Zephyr using scripts
# in zephyr-bazel.
load("@bazel_skylib//lib:selects.bzl", "selects")
load("//bazel:cc.bzl", "zephyr_app", "zephyr_cc_library")
package(default_visibility = ["//visibility:public"])
zephyr_cc_library(
name = "main",
srcs = [
"src/main.c",
"src/test_module.c",
] + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_SHELL_DYNAMIC_CMDS=true": [
"src/dynamic_cmd.c",
],
}) + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_SHELL_BACKEND_SERIAL=true": [
"src/uart_reinit.c",
],
}) + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_SHELL_START_OBSCURED=true": [
"src/login_cmd.c",
],
}),
hdrs = glob(
["**/*.h"],
allow_empty = True,
),
visibility = ["//visibility:private"],
)
zephyr_app(
name = "shell_module",
deps = [":main"],
)