| # 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/components.gni") |
| import("//build/rust/rustc_library.gni") |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":display-utils-test" ] |
| } |
| |
| rustc_library("display-utils") { |
| edition = "2021" |
| name = "display_utils" |
| version = "0.1.0" |
| with_unit_tests = true |
| |
| sources = [ |
| "src/config.rs", |
| "src/controller.rs", |
| "src/error.rs", |
| "src/image.rs", |
| "src/lib.rs", |
| "src/pixel_format.rs", |
| "src/types.rs", |
| ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.hardware.display:fuchsia.hardware.display_rust", |
| "//sdk/fidl/fuchsia.hardware.display.types:fuchsia.hardware.display.types_rust", |
| "//sdk/fidl/fuchsia.images2:fuchsia.images2_rust", |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust", |
| "//sdk/fidl/fuchsia.math:fuchsia.math_rust", |
| "//sdk/fidl/fuchsia.sysmem:fuchsia.sysmem_rust", |
| "//sdk/fidl/fuchsia.sysmem2:fuchsia.sysmem2_rust", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/fuchsia-fs", |
| "//src/lib/fuchsia-runtime", |
| "//src/lib/fuchsia-sync", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:thiserror", |
| ] |
| |
| test_deps = [ |
| "//src/graphics/display/lib/rust/display-mocks", |
| "//src/lib/fuchsia", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:assert_matches", |
| ] |
| } |
| |
| fuchsia_unittest_package("display-utils-test") { |
| deps = [ ":display-utils_test" ] |
| } |