blob: 811912238b9e87c710fe81a73306977106aa24df [file] [log] [blame]
Kevin Lindkvist84c3b922021-11-23 22:08:20 +00001# 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
5import("//build/components.gni")
6import("//build/rust/rustc_library.gni")
7
8rustc_library("fuchsia-image-format") {
9 name = "fuchsia_image_format"
Sarah Chan53939302025-12-06 16:06:32 -080010 edition = "2021"
Kevin Lindkvist84c3b922021-11-23 22:08:20 +000011 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 Greena9031d12024-05-02 05:15:25 +000022 "//sdk/fidl/fuchsia.images2:fuchsia.images2_rust",
23 "//sdk/fidl/fuchsia.math:fuchsia.math_rust",
Mitchell Kember0c5eddb2022-07-28 23:36:32 +000024 "//sdk/fidl/fuchsia.sysmem:fuchsia.sysmem_rust",
Dustin Greena9031d12024-05-02 05:15:25 +000025 "//sdk/fidl/fuchsia.sysmem2:fuchsia.sysmem2_rust",
Kevin Lindkvist84c3b922021-11-23 22:08:20 +000026 "//third_party/rust_crates:anyhow",
Dustin Greena9031d12024-05-02 05:15:25 +000027 "//third_party/rust_crates:num",
Kevin Lindkvist84c3b922021-11-23 22:08:20 +000028 "//third_party/rust_crates:vk-sys",
29 ]
30}
31
32fuchsia_unittest_package("fuchsia-image-format-tests") {
33 deps = [ ":fuchsia-image-format_test" ]
34}
35
36group("tests") {
37 testonly = true
38 deps = [ ":fuchsia-image-format-tests" ]
39}