blob: e52af7de5fc743469c93f1d88d574c834d63902c [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",
28 "libopen_dice_cbor_bindgen",
Janis Danisevskis13356b22021-10-20 09:44:12 -070029 ],
30 static_libs: [
Janis Danisevskis13356b22021-10-20 09:44:12 -070031 "libopen_dice_cbor",
32 ],
Janis Danisevskisaaba4af2021-11-18 14:25:07 -080033 vendor_available: true,
Andrew Scullf4a6e282022-07-12 15:27:00 +000034 apex_available: [
35 "//apex_available:platform",
36 "com.android.virt",
37 ],
Janis Danisevskis13356b22021-10-20 09:44:12 -070038}
Janis Danisevskisdb78b772021-11-29 17:59:50 -080039
40rust_test {
41 name: "diced_open_dice_cbor_test",
42 crate_name: "diced_open_dice_cbor_test",
43 srcs: ["lib.rs"],
44 test_suites: ["general-tests"],
45 auto_gen_config: true,
46 rustlibs: [
Alice Wang0b9e1102023-02-02 09:57:06 +000047 "libdiced_open_dice",
Janis Danisevskisdb78b772021-11-29 17:59:50 -080048 "libdiced_sample_inputs",
49 "libkeystore2_crypto_rust",
Janis Danisevskisdb78b772021-11-29 17:59:50 -080050 "libopen_dice_cbor_bindgen",
Janis Danisevskisdb78b772021-11-29 17:59:50 -080051 ],
52 static_libs: [
Janis Danisevskisdb78b772021-11-29 17:59:50 -080053 "libopen_dice_cbor",
54 ],
55}