| # Copyright 2017 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_test.gni") | |
| # TODO(https://fxbug.dev/576688557): Migrate `fuchsia-framebuffer_test` and | |
| # `fuchsia-framebuffer-tests` to BUILD.bazel once a Bazel rule is available for | |
| # `//src/devices/bind/fuchsia.sysmem.heap:fuchsia.sysmem.heap_rust` (generated | |
| # by GN's `_bind_library_rust` template). | |
| rustc_test("fuchsia-framebuffer_test") { | |
| output_name = "fuchsia_framebuffer_lib_test" | |
| edition = "2024" | |
| deps = [ | |
| "//sdk/fidl/fuchsia.images2:fuchsia.images2_rust", | |
| "//sdk/fidl/fuchsia.math:fuchsia.math_rust", | |
| "//sdk/fidl/fuchsia.sysmem2:fuchsia.sysmem2_rust", | |
| "//src/devices/bind/fuchsia.sysmem.heap:fuchsia.sysmem.heap_rust", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia", | |
| "//src/lib/fuchsia-async", | |
| "//src/lib/fuchsia-component", | |
| "//src/lib/fuchsia-runtime", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:futures", | |
| ] | |
| sources = [ | |
| "src/lib.rs", | |
| "src/sysmem.rs", | |
| ] | |
| } | |
| # TODO(https://fxbug.dev/576688557): Kept in GN because | |
| # `:fuchsia-framebuffer_test` depends on | |
| # `//src/devices/bind/fuchsia.sysmem.heap:fuchsia.sysmem.heap_rust`, which has | |
| # no Bazel rule yet. | |
| fuchsia_unittest_package("fuchsia-framebuffer-tests") { | |
| deps = [ ":fuchsia-framebuffer_test" ] | |
| test_specs = { | |
| log_settings = { | |
| max_severity = "ERROR" | |
| } | |
| } | |
| } | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| rustc_library("fuchsia-framebuffer") { | |
| sources = [ | |
| "src/lib.rs", | |
| "src/sysmem.rs", | |
| ] | |
| edition = "2024" | |
| visibility = [ | |
| ":*", | |
| "//src/lib/ui/carnelian:*", | |
| "//src/starnix/modules/framebuffer:*", | |
| "//src/ui/examples/flatland-rainbow:*", | |
| "//src/virtualization/bin/vmm/device/virtio_gpu:*", | |
| ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.images2:fuchsia.images2_rust", | |
| "//sdk/fidl/fuchsia.math:fuchsia.math_rust", | |
| "//sdk/fidl/fuchsia.sysmem2:fuchsia.sysmem2_rust", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia-component", | |
| "//src/lib/fuchsia-runtime", | |
| "//third_party/rust_crates:anyhow", | |
| ] | |
| } |