blob: a84190adba563b37345790d9d2e3816406dd1f9c [file] [log] [blame]
Janis Danisevskis13356b22021-10-20 09:44:12 -07001// Copyright 2021, The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16 default_applicable_licenses: ["system_security_license"],
17}
18
19rust_library {
20 name: "libdiced_open_dice_cbor",
21 crate_name: "diced_open_dice_cbor",
22 srcs: ["lib.rs"],
23
24 rustlibs: [
25 // For ZVec
26 "libkeystore2_crypto_rust",
Janis Danisevskis2cef73f2021-11-03 15:02:48 -070027 "libopen_dice_bcc_bindgen",
Janis Danisevskis13356b22021-10-20 09:44:12 -070028 "libopen_dice_cbor_bindgen",
29 "libthiserror",
30 ],
31 static_libs: [
Janis Danisevskis2cef73f2021-11-03 15:02:48 -070032 "libopen_dice_bcc",
Janis Danisevskis13356b22021-10-20 09:44:12 -070033 "libopen_dice_cbor",
34 ],
Janis Danisevskisaaba4af2021-11-18 14:25:07 -080035 vendor_available: true,
Andrew Scullf4a6e282022-07-12 15:27:00 +000036 apex_available: [
37 "//apex_available:platform",
38 "com.android.virt",
39 ],
Janis Danisevskis13356b22021-10-20 09:44:12 -070040}
Janis Danisevskisdb78b772021-11-29 17:59:50 -080041
42rust_test {
43 name: "diced_open_dice_cbor_test",
44 crate_name: "diced_open_dice_cbor_test",
45 srcs: ["lib.rs"],
46 test_suites: ["general-tests"],
47 auto_gen_config: true,
48 rustlibs: [
49 "libdiced_sample_inputs",
50 "libkeystore2_crypto_rust",
51 "libopen_dice_bcc_bindgen",
52 "libopen_dice_cbor_bindgen",
53 "libthiserror",
54 ],
55 static_libs: [
56 "libopen_dice_bcc",
57 "libopen_dice_cbor",
58 ],
59}