blob: 764e13bfd7213f3125a86385a3c2b6014693a45c [file] [log] [blame] [edit]
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//third_party/quickjs/compiled_js.gni")
static_library("console") {
sources = [
"command_line_options.cc",
"command_line_options.h",
"console.cc",
"console.h",
"li.cc",
"li.h",
"repl.cc",
"repl.h",
]
public_deps = [
":repl_init",
"//src/developer/shell/josh/lib",
"//third_party/quickjs:qjs-lib",
"//third_party/quickjs:repl",
"//zircon/system/ulib/cmdline",
]
configs += [
# TODO(fxbug.dev/58162): delete the below and fix compiler warnings
#
# Might be hard because these conversions come from quickjs.h.
"//build/config:Wno-conversion",
]
}
compiled_js("repl_init") {
source = "repl_init.js"
module = true
extra_args = [
"-M",
"li_internal",
]
}
source_set("tests") {
testonly = true
sources = [
"command_line_options_test.cc",
"console_test.cc",
"repl_test.cc",
]
deps = [
":console",
"//src/storage/memfs",
"//third_party/googletest:gtest",
"//zircon/public/lib/zx",
"//zircon/system/ulib/async-loop",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
]
configs += [
# TODO(fxbug.dev/58162): delete the below and fix compiler warnings
#
# Might be hard because these conversions come from quickjs.h.
"//build/config:Wno-conversion",
]
}