blob: 214fa45bed1f0c7f35d30e67714768d7b9a03dc4 [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/components.gni")
import("//build/rust/rustc_binary.gni")
# Generate the manifest for the client component.
fuchsia_component_manifest("client_manifest") {
component_name = "keyvaluestore_baseline_client"
manifest = "//examples/fidl/new/key_value_store/baseline/meta/client.cml"
}
# Set structured configuration values for the client component manifest specified above. This
# provides a means by which to pass arguments to our client component. Such arguments may be set at
# compile-time, as seen here, or altered for testing purposes via a RealmBuilder. In this case,
# because this is an example, and will this only ever be executed as a test, we intentionally ignore
# the compile-time values set here and overwrite them via the RealmBuilder. This can be seen in
# action in /test/test.rs.
#
# At this time, the only config argument passed to the keyvaluestore is the set of items we plan to
# write.
fuchsia_structured_config_values("client_config_values") {
cm_label = ":client_manifest"
values = {
write_items = []
}
}
group("tests") {
testonly = true
deps = [
# DO_NOT_REMOVE_COMMENT (Why? See: /tools/fidl/scripts/canonical_example/README.md)
"cpp_natural:tests",
"cpp_wire:tests",
"rust:tests",
# /DO_NOT_REMOVE_COMMENT (Why? See: /tools/fidl/scripts/canonical_example/README.md)
]
}