blob: 29106cbd5d4a1e52da6fbd3f23454700a3f64c63 [file] [edit]
# 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")
# The two definitions below are Fuchsia components, which will be wrapped into a package for
# delivery to running devices.
fuchsia_component("client") {
component_name = "keyvaluestore_addreaditem_client"
manifest = "//examples/fidl/new/key_value_store/add_read_item/meta/client.cml"
deps = [
"client:bin",
"//examples/fidl/new/key_value_store/data:resources",
]
}
fuchsia_component("server") {
component_name = "keyvaluestore_addreaditem_server"
manifest = "//examples/fidl/new/key_value_store/add_read_item/meta/server.cml"
deps = [ "server:bin" ]
}
# The Fuchsia package, containing all of our child components in one neat artifact.
fuchsia_package("examples_fidl_keyvaluestore_addreaditem_rust") {
deps = [
":client",
":server",
"//examples/fidl/new/key_value_store/add_read_item:client_config_values",
]
}
# The following is an internal test harness for validating this example. It is not part of the
# example itself, and exists as a validation method to ensure that the code does not go stale.
fuchsia_component("test") {
testonly = true
manifest = "//examples/fidl/new/key_value_store/baseline/test/meta/runner.cml"
deps = [
"//examples/fidl/new/key_value_store/add_read_item/test:runner_bin",
"//examples/fidl/new/key_value_store/add_read_item/test/goldens:resources",
"//examples/fidl/new/key_value_store/data:resources",
]
}
fuchsia_test_package("examples_fidl_keyvaluestore_addreaditem_rust_tests") {
deps = [
":client",
":server",
"//examples/fidl/new/key_value_store/add_read_item:client_config_values",
"//examples/fidl/new/key_value_store/baseline/realm:realm",
]
test_components = [ ":test" ]
}
group("tests") {
testonly = true
deps = [ ":examples_fidl_keyvaluestore_addreaditem_rust_tests" ]
}