blob: 9980146bc6f1efec2a8c87194bfcedcdeb33bbd1 [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-v0_13_0",
"//third_party/rust_crates:bitflags-v1_3_2",
"//third_party/rust_crates:log",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:unicode-width",
"//third_party/alacritty/vte",
]
rustc_library("term_model") {
name = "term_model"
version = "0.1.0"
edition = "2018"
# TODO(fxbug.dev/42148577) 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/42148577) remove this allowance
configs += [ "//build/config/rust:allow_legacy_derive_helpers" ]
# TODO(fxbug.dev/42173372): Fix the leaks and remove this.
deps =
term_deps + [ "//build/config/sanitizers:suppress-lsan.DO-NOT-USE-THIS" ]
sources = term_sources
}