| # Copyright 2024 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_binary.gni") |
| |
| rustc_library("magma") { |
| name = "starnix-modules-magma" |
| edition = "2021" |
| version = "0.1.0" |
| source_root = "lib.rs" |
| |
| sources = [ |
| "ffi.rs", |
| "file.rs", |
| "image_file.rs", |
| "init.rs", |
| "lib.rs", |
| "magma.rs", |
| ] |
| |
| configs += [ "//src/starnix/config:starnix_clippy_lints" ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.logger:fuchsia.logger_rust", |
| "//sdk/fidl/fuchsia.ui.composition:fuchsia.ui.composition_rust", |
| "//sdk/rust/zx", |
| "//src/graphics/lib/magma/src/libmagma", |
| "//src/lib/fdio/rust:fdio", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-component", |
| "//src/starnix/kernel/core", |
| "//src/starnix/lib/magma", |
| "//src/starnix/lib/starnix_lifecycle", |
| "//src/starnix/lib/starnix_logging", |
| "//src/starnix/lib/starnix_sync", |
| "//src/starnix/lib/starnix_syscalls", |
| "//src/starnix/lib/starnix_types", |
| "//src/starnix/lib/starnix_uapi", |
| "//third_party/rust_crates:bstr", |
| "//third_party/rust_crates:zerocopy", |
| ] |
| } |