| # 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. |
| |
| zx_library("linenoise") { |
| sdk = "source" |
| sdk_headers = [ "linenoise/linenoise.h" ] |
| sources = [ "linenoise.c" ] |
| include_dirs = [ "include/linenoise" ] |
| deps = [ |
| "$zx/system/fidl/fuchsia-hardware-pty:c", |
| "$zx/system/ulib/fdio", |
| ] |
| } |
| |
| group("test") { |
| testonly = true |
| deps = [ ":linenoise-test" ] |
| } |
| |
| zx_test("linenoise-test") { |
| sources = [ "linenoise_tests.cc" ] |
| |
| deps = [ |
| ":linenoise", |
| "$zx/system/ulib/fbl", |
| "$zx/system/ulib/fdio", |
| "$zx/system/ulib/zxtest", |
| ] |
| } |