blob: 259daee6430ab1f49ed8d1e973e3be31df72077c [file] [log] [blame]
# 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_binary("bin") {
testonly = true
edition = "2021"
name = "driver_testing_realm_factory"
sources = [ "src/main.rs" ]
deps = [
"../fidl:fuchsia.driver.testing_rust",
"//sdk/fidl/fuchsia.driver.test:fuchsia.driver.test_rust",
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/fidl/fuchsia.testing.harness:fuchsia.testing.harness_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-component-test",
"//src/lib/zircon/rust:fuchsia-zircon-status",
"//src/sys/lib/cm_rust",
"//src/sys/lib/cm_types",
"//src/testing/realm_proxy",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:tracing",
]
}
fuchsia_component("realm-factory-component") {
testonly = true
component_name = "realm-factory"
manifest = "meta/default.cml"
deps = [ ":bin" ]
}
fuchsia_package("realm-factory") {
package_name = "driver-testing-realm-factory"
testonly = true
deps = [
":realm-factory-component",
"//sdk/lib/driver_test_realm",
"//src/devices/misc/drivers/test-parent",
]
}