blob: b531cd51045be2a3799f96572357c320cbab83a4 [file] [log] [blame]
# 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/host.gni")
import("//build/rust/rustc_library.gni")
assert(is_host, "Assembly libraries are host-only")
rustc_library("config_schema") {
edition = "2021"
name = "assembly_config_schema"
with_unit_tests = true
deps = [
"//src/lib/assembly/fvm",
"//src/lib/assembly/package_utils",
"//src/lib/assembly/util",
"//src/ui/lib/input-device-constants:lib",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:camino",
"//third_party/rust_crates:serde",
]
test_deps = [
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:serde_json",
]
sources = [
"src/board_config.rs",
"src/lib.rs",
"src/product_config.rs",
]
}
group("host_tests") {
testonly = true
deps = [ ":config_schema_test" ]
}