blob: d3805cb4479a0a53b649712848b7a52cc192f84a [file] [log] [blame]
Janis Danisevskis43c89712020-08-03 23:42:42 +00001// Copyright 2020, 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
15rust_library {
16 name: "libkeystore2",
17 crate_name: "keystore2",
18 srcs: ["src/lib.rs"],
Janis Danisevskis7d77a762020-07-20 13:03:31 -070019
20 rustlibs: [
21 "libanyhow",
22 "libkeystore_aidl_generated",
23 "liblog_rust",
24 "libthiserror",
25 ],
Janis Danisevskis43c89712020-08-03 23:42:42 +000026}
27
28rust_test {
29 name: "keystore2_test",
30 crate_name: "keystore2_test",
31 srcs: ["src/lib.rs"],
32 test_suites: ["general-tests"],
33 auto_gen_config: true,
Janis Danisevskis7d77a762020-07-20 13:03:31 -070034 rustlibs: [
35 "libandroid_logger",
36 "libanyhow",
37 "libkeystore_aidl_generated",
38 "liblog_rust",
39 "libthiserror",
40 ],
Janis Danisevskis43c89712020-08-03 23:42:42 +000041}
Janis Danisevskis652f3812020-08-04 00:01:12 +000042
43// This is a placeholder for the libraries that will be generated from the AIDL specs
44// eventually.
45rust_library {
46 name: "libkeystore_aidl_generated",
47 crate_name: "keystore_aidl_generated",
48
49 srcs: ["src/aidl_generated.rs"],
50}
Janis Danisevskis1fe11322020-08-07 08:44:08 -070051
52// This is a placeholder for the libraries that will be generated from the AIDL specs
53// eventually.
54rust_library {
55 name: "libandroid_hardware_keymint",
56 crate_name: "android_hardware_keymint",
57
58 srcs: ["src/android_hardware_keymint.rs"],
59
60 rustlibs: [
61 "libbinder_rs",
62 "liblazy_static",
63 ],
64}
65
66// This is a placeholder for the libraries that will be generated from the AIDL specs
67// eventually.
68rust_library {
69 name: "libandroid_security_keystore2",
70 crate_name: "android_security_keystore2",
71
72 srcs: ["src/android_security_keystore2.rs"],
73
74 rustlibs: [
75 "libandroid_hardware_keymint",
76 "libbinder_rs",
77 "liblazy_static",
78 ],
79}