blob: 3a7f04ce7a0626a062f90a93137208bf7f0326d7 [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: [
Alice Wang0b9e1102023-02-02 09:57:06 +000025 "libdiced_open_dice",
Janis Danisevskis13356b22021-10-20 09:44:12 -070026 // For ZVec
27 "libkeystore2_crypto_rust",
Janis Danisevskis2cef73f2021-11-03 15:02:48 -070028 "libopen_dice_bcc_bindgen",
Janis Danisevskis13356b22021-10-20 09:44:12 -070029 "libopen_dice_cbor_bindgen",
30 "libthiserror",
31 ],
32 static_libs: [
Janis Danisevskis2cef73f2021-11-03 15:02:48 -070033 "libopen_dice_bcc",
Janis Danisevskis13356b22021-10-20 09:44:12 -070034 "libopen_dice_cbor",
35 ],
Janis Danisevskisaaba4af2021-11-18 14:25:07 -080036 vendor_available: true,
Andrew Scullf4a6e282022-07-12 15:27:00 +000037 apex_available: [
38 "//apex_available:platform",
39 "com.android.virt",
40 ],
Janis Danisevskis13356b22021-10-20 09:44:12 -070041}
Janis Danisevskisdb78b772021-11-29 17:59:50 -080042
43rust_test {
44 name: "diced_open_dice_cbor_test",
45 crate_name: "diced_open_dice_cbor_test",
46 srcs: ["lib.rs"],
47 test_suites: ["general-tests"],
48 auto_gen_config: true,
49 rustlibs: [
Alice Wang0b9e1102023-02-02 09:57:06 +000050 "libdiced_open_dice",
Janis Danisevskisdb78b772021-11-29 17:59:50 -080051 "libdiced_sample_inputs",
52 "libkeystore2_crypto_rust",
53 "libopen_dice_bcc_bindgen",
54 "libopen_dice_cbor_bindgen",
55 "libthiserror",
56 ],
57 static_libs: [
58 "libopen_dice_bcc",
59 "libopen_dice_cbor",
60 ],
61}