| Kevin Lindkvist | 84c3b92 | 2021-11-23 22:08:20 +0000 | [diff] [blame] | 1 | # Copyright 2021 The Fuchsia Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | import("//build/components.gni") |
| 6 | import("//build/rust/rustc_library.gni") |
| 7 | |
| 8 | rustc_library("fuchsia-image-format") { |
| 9 | name = "fuchsia_image_format" |
| Sarah Chan | 5393930 | 2025-12-06 16:06:32 -0800 | [diff] [blame^] | 10 | edition = "2021" |
| Kevin Lindkvist | 84c3b92 | 2021-11-23 22:08:20 +0000 | [diff] [blame] | 11 | version = "0.1.0" |
| 12 | with_unit_tests = true |
| 13 | deps = [] |
| 14 | |
| 15 | sources = [ |
| 16 | "src/image_format.rs", |
| 17 | "src/lib.rs", |
| 18 | "src/linux_drm.rs", |
| 19 | ] |
| 20 | |
| 21 | deps = [ |
| Dustin Green | a9031d1 | 2024-05-02 05:15:25 +0000 | [diff] [blame] | 22 | "//sdk/fidl/fuchsia.images2:fuchsia.images2_rust", |
| 23 | "//sdk/fidl/fuchsia.math:fuchsia.math_rust", |
| Mitchell Kember | 0c5eddb | 2022-07-28 23:36:32 +0000 | [diff] [blame] | 24 | "//sdk/fidl/fuchsia.sysmem:fuchsia.sysmem_rust", |
| Dustin Green | a9031d1 | 2024-05-02 05:15:25 +0000 | [diff] [blame] | 25 | "//sdk/fidl/fuchsia.sysmem2:fuchsia.sysmem2_rust", |
| Kevin Lindkvist | 84c3b92 | 2021-11-23 22:08:20 +0000 | [diff] [blame] | 26 | "//third_party/rust_crates:anyhow", |
| Dustin Green | a9031d1 | 2024-05-02 05:15:25 +0000 | [diff] [blame] | 27 | "//third_party/rust_crates:num", |
| Kevin Lindkvist | 84c3b92 | 2021-11-23 22:08:20 +0000 | [diff] [blame] | 28 | "//third_party/rust_crates:vk-sys", |
| 29 | ] |
| 30 | } |
| 31 | |
| 32 | fuchsia_unittest_package("fuchsia-image-format-tests") { |
| 33 | deps = [ ":fuchsia-image-format_test" ] |
| 34 | } |
| 35 | |
| 36 | group("tests") { |
| 37 | testonly = true |
| 38 | deps = [ ":fuchsia-image-format-tests" ] |
| 39 | } |