blob: ebebddad169c72f509a4d0fba1cfdd3c85dc3b7e [file] [log] [blame]
# Copyright 2017 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/config.gni")
import("//build/package.gni")
import("//build/rust/rustc_binary.gni")
import("//build/test/test_package.gni")
import("//build/testing/environments.gni")
group("system") {
testonly = true
deps = [
# Directory aggregates should not modify the product behavior: ":config",
":system_recovery",
":tests",
]
}
group("tests") {
testonly = true
deps = [
":system_recovery",
":system_recovery_tests",
]
}
rustc_binary("bin") {
name = "system_recovery"
edition = "2018"
with_lto = "fat"
with_unit_tests = true
deps = [
"//src/lib/fuchsia-async",
"//src/lib/mapped-vmo",
"//src/lib/ui/carnelian",
"//src/lib/ui/fuchsia-framebuffer",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:rouille",
"//third_party/rust_crates:thiserror",
]
}
config_data("config") {
for_pkg = "sysmgr"
sources = [ "config/recovery.config" ]
outputs = [ "recovery.config" ]
}
package("system_recovery") {
meta = [
{
path = rebase_path("meta/system_recovery.cmx")
dest = "system_recovery.cmx"
},
]
deps = [ ":bin" ]
binaries = [
{
name = "system_recovery"
path = "system_recovery"
},
]
}
unittest_package("system_recovery_tests") {
deps = [ ":bin_test" ]
tests = [
{
name = "system_recovery_bin_test"
environments = basic_envs
},
]
}