blob: 56f3cde86b16a27b308d85aee08863d09126c601 [file] [log] [blame]
# Copyright 2021 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")
import("//src/ui/bin/screensaver/screensaver_args.gni")
resource("animation") {
sources = [ screensaver_animation_path ]
outputs = [ "data/animation.riv" ]
}
rustc_binary("bin") {
name = "screensaver"
edition = "2018"
source_root = "src/main.rs"
sources = [ "src/main.rs" ]
deps = [
":animation",
"//src/graphics/lib/compute/rive-rs",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/trace/rust:trace-provider",
"//src/lib/ui/carnelian",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/testing/fidl:placeholders-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:euclid",
"//third_party/rust_crates:futures",
]
}
fuchsia_component("screensaver_cm") {
component_name = "screensaver"
manifest = "meta/screensaver.cmx"
deps = [ ":bin" ]
}
fuchsia_package("screensaver") {
deps = [ ":screensaver_cm" ]
}