| # Copyright 2022 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_binary("bin") { |
| output_name = "simplest-app-flatland" |
| with_unit_tests = true |
| version = "0.1.0" |
| edition = "2021" |
| source_root = "src/main.rs" |
| sources = [ |
| "src/internal_message.rs", |
| "src/main.rs", |
| "src/touch.rs", |
| ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.element:fuchsia.element_rust", |
| "//sdk/fidl/fuchsia.math:fuchsia.math_rust", |
| "//sdk/fidl/fuchsia.ui.composition:fuchsia.ui.composition_rust", |
| "//sdk/fidl/fuchsia.ui.pointer:fuchsia.ui.pointer_rust", |
| "//sdk/fidl/fuchsia.ui.views:fuchsia.ui.views_rust", |
| "//src/lib/async-utils", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/trace/rust:trace", |
| "//src/lib/trace/rust:trace-provider", |
| "//src/lib/ui/fuchsia-scenic", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:tracing", |
| ] |
| } |
| |
| fuchsia_component("simplest-app-flatland") { |
| component_name = "simplest-app-flatland" |
| manifest = "meta/simplest-app-flatland.cml" |
| deps = [ ":bin" ] |
| } |