32 linhas
602 B
Plaintext
32 linhas
602 B
Plaintext
# Copyright 2016 The Fuchsia Authors
|
|
#
|
|
# Use of this source code is governed by a MIT-style
|
|
# license that can be found in the LICENSE file or at
|
|
# https://opensource.org/licenses/MIT
|
|
|
|
import("//gnbuild/config.gni")
|
|
|
|
config("enable_shell") {
|
|
if (enable_shell) {
|
|
defines = [ "WITH_APP_SHELL=1" ]
|
|
} else {
|
|
defines = [ "WITH_APP_SHELL=0" ]
|
|
}
|
|
}
|
|
|
|
config("_shell_config") {
|
|
visibility = [ ":*" ]
|
|
configs = [ ":enable_shell" ]
|
|
}
|
|
|
|
module("shell") {
|
|
public_configs = [ ":_shell_config" ]
|
|
sources = [
|
|
"shell.c",
|
|
]
|
|
deps = [
|
|
"//kernel/lib/console",
|
|
"//kernel/lib/libc",
|
|
]
|
|
}
|