blob: 2829d6b53349f798f769d3c68f0dc881f9c6c30c [file] [log] [blame]
# Copyright 2021 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("//build/rust/rustc_library.gni")
import("//build/rust/rustc_test.gni")
term_sources = [
"src/ansi.rs",
"src/clipboard.rs",
"src/config/colors.rs",
"src/config/debug.rs",
"src/config/font.rs",
"src/config/mod.rs",
"src/config/scrolling.rs",
"src/config/visual_bell.rs",
"src/config/window.rs",
"src/event.rs",
"src/grid/mod.rs",
"src/grid/row.rs",
"src/grid/storage.rs",
"src/grid/tests.rs",
"src/index.rs",
"src/lib.rs",
"src/message_bar.rs",
"src/selection.rs",
"src/term/cell.rs",
"src/term/color.rs",
"src/term/mod.rs",
]
term_deps = [
"//third_party/rust_crates:base64",
"//third_party/rust_crates:bitflags",
"//third_party/rust_crates:log",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:unicode-width",
"//third_party/rust_crates:vte",
]
rustc_library("term_model") {
name = "term_model"
version = "0.1.0"
edition = "2018"
# TODO(fxbug.dev/69442) remove this allowance
configs += [ "//build/config/rust:allow_legacy_derive_helpers" ]
deps = term_deps
sources = term_sources
}
rustc_test("term-model_test") {
name = "term_model_lib_test"
version = "0.1.0"
edition = "2018"
# TODO(fxbug.dev/69442) remove this allowance
configs += [ "//build/config/rust:allow_legacy_derive_helpers" ]
deps = term_deps
sources = term_sources
}