| # 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. |
| |
| group("virtcon") { |
| testonly = true |
| deps = [ |
| ":virtual-console", |
| ":virtual-console-test", |
| ] |
| } |
| |
| # This can't be a source_set() because the test compiles with a #define. |
| common_sources = [ |
| "keyboard-vt100.cpp", |
| "keyboard.cpp", |
| "textcon.cpp", |
| "vc-device.cpp", |
| "vc-gfx.cpp", |
| "vc-input.cpp", |
| ] |
| |
| group("common") { |
| visibility = [ ":*" ] |
| public_deps = [ |
| "$zx/system/fidl/fuchsia-device-manager:c", |
| "$zx/system/fidl/fuchsia-hardware-display:c", |
| "$zx/system/fidl/fuchsia-hardware-input:c", |
| "$zx/system/fidl/fuchsia-hardware-pty:c", |
| "$zx/system/fidl/fuchsia-io:c", |
| "$zx/system/fidl/fuchsia-virtualconsole:c", |
| "$zx/system/ulib/fbl", |
| "$zx/system/ulib/fdio", |
| "$zx/system/ulib/fidl", |
| "$zx/system/ulib/fs", |
| "$zx/system/ulib/fzl", |
| "$zx/system/ulib/gfx", |
| "$zx/system/ulib/gfx-font-data", |
| "$zx/system/ulib/hid", |
| "$zx/system/ulib/port", |
| "$zx/system/ulib/zircon", |
| "$zx/system/ulib/zx", |
| ] |
| } |
| |
| executable("virtual-console") { |
| sources = common_sources + [ |
| "main.cpp", |
| "vc-display.cpp", |
| ] |
| deps = [ |
| ":common", |
| ] |
| } |
| |
| test("virtual-console-test") { |
| output_name = "virtual-console-test" |
| defines = [ "BUILD_FOR_TEST" ] |
| sources = common_sources + [ |
| "keyboard-test.cpp", |
| "textcon-test.cpp", |
| ] |
| deps = [ |
| ":common", |
| "$zx/system/ulib/unittest", |
| ] |
| } |