Files
hardware_interfaces/security/secretkeeper/aidl/vts/Android.bp
Shikha Panwar 9eab79b8c9 Sk VTS: Use libdice_policy_builder
With libdice_policy being refactored, get VTS to use the builder
library.

Test: Built the test-suite
Bug: 291238565
Change-Id: I149ec1ba9ee66fd19cbf0d0a6f3baa12ea2474ed
2024-01-24 11:24:05 +00:00

83 lines
2.1 KiB
Plaintext

/*
* Copyright (C) 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
rust_library {
name: "libsecretkeeper_test",
crate_name: "secretkeeper_test",
srcs: ["lib.rs"],
rustlibs: [
"libciborium",
"libcoset",
"libdiced_open_dice",
"liblog_rust",
"libsecretkeeper_client",
],
}
rust_test {
name: "VtsSecretkeeperTargetTest",
srcs: ["secretkeeper_test_client.rs"],
defaults: [
"rdroidtest.defaults",
],
test_suites: [
"general-tests",
"vts",
],
test_config: "AndroidTest.xml",
rustlibs: [
"android.hardware.security.secretkeeper-V1-rust",
"libauthgraph_boringssl",
"libauthgraph_core",
"libauthgraph_vts_test",
"libbinder_rs",
"libciborium",
"libcoset",
"libdice_policy_builder",
"liblog_rust",
"libsecretkeeper_client",
"libsecretkeeper_comm_nostd",
"libsecretkeeper_core_nostd",
"libsecretkeeper_test",
],
require_root: true,
}
rust_binary {
name: "secretkeeper_cli",
srcs: ["secretkeeper_cli.rs"],
lints: "android",
rlibs: [
"android.hardware.security.secretkeeper-V1-rust",
"libanyhow",
"libauthgraph_boringssl",
"libauthgraph_core",
"libbinder_rs",
"libclap",
"libcoset",
"libdice_policy_builder",
"libhex",
"liblog_rust",
"libsecretkeeper_client",
"libsecretkeeper_comm_nostd",
"libsecretkeeper_test",
],
}