blob: 7016d06688652114172b5a79ba805df1940c6ff4 [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: [
Janis Danisevskis1b3a6e22020-08-07 12:39:56 -070021 "libandroid_security_keystore2",
Janis Danisevskis7d77a762020-07-20 13:03:31 -070022 "libanyhow",
Hasini Gunasingheaf993662020-07-24 18:40:20 +000023 "libandroid_hardware_keymint",
Janis Danisevskis7d77a762020-07-20 13:03:31 -070024 "libkeystore_aidl_generated",
Janis Danisevskisce995432020-07-21 12:22:34 -070025 "libkeystore2_selinux",
Janis Danisevskis4ad056f2020-08-05 19:46:46 +000026 "liblazy_static",
Joel Galenson0891bc12020-07-20 10:37:03 -070027 "liblibsqlite3_sys",
Janis Danisevskis7d77a762020-07-20 13:03:31 -070028 "liblog_rust",
Joel Galenson0891bc12020-07-20 10:37:03 -070029 "librand",
Joel Galenson26f4d012020-07-17 14:57:21 -070030 "librusqlite",
Janis Danisevskis7d77a762020-07-20 13:03:31 -070031 "libthiserror",
32 ],
Janis Danisevskis43c89712020-08-03 23:42:42 +000033}
34
35rust_test {
36 name: "keystore2_test",
Joel Galenson26f4d012020-07-17 14:57:21 -070037 crate_name: "keystore2",
Janis Danisevskis43c89712020-08-03 23:42:42 +000038 srcs: ["src/lib.rs"],
39 test_suites: ["general-tests"],
40 auto_gen_config: true,
Janis Danisevskis7d77a762020-07-20 13:03:31 -070041 rustlibs: [
42 "libandroid_logger",
Janis Danisevskis1b3a6e22020-08-07 12:39:56 -070043 "libandroid_security_keystore2",
Janis Danisevskis7d77a762020-07-20 13:03:31 -070044 "libanyhow",
Hasini Gunasingheaf993662020-07-24 18:40:20 +000045 "libandroid_hardware_keymint",
Janis Danisevskis7d77a762020-07-20 13:03:31 -070046 "libkeystore_aidl_generated",
Janis Danisevskisce995432020-07-21 12:22:34 -070047 "libkeystore2_selinux",
Janis Danisevskis4ad056f2020-08-05 19:46:46 +000048 "liblazy_static",
Joel Galenson0891bc12020-07-20 10:37:03 -070049 "liblibsqlite3_sys",
Janis Danisevskis7d77a762020-07-20 13:03:31 -070050 "liblog_rust",
Joel Galenson26f4d012020-07-17 14:57:21 -070051 "librusqlite",
Janis Danisevskis7d77a762020-07-20 13:03:31 -070052 "libthiserror",
53 ],
Janis Danisevskis43c89712020-08-03 23:42:42 +000054}
Janis Danisevskis652f3812020-08-04 00:01:12 +000055
56// This is a placeholder for the libraries that will be generated from the AIDL specs
57// eventually.
58rust_library {
59 name: "libkeystore_aidl_generated",
60 crate_name: "keystore_aidl_generated",
61
62 srcs: ["src/aidl_generated.rs"],
63}
Janis Danisevskis1fe11322020-08-07 08:44:08 -070064
65// This is a placeholder for the libraries that will be generated from the AIDL specs
66// eventually.
67rust_library {
68 name: "libandroid_hardware_keymint",
69 crate_name: "android_hardware_keymint",
70
71 srcs: ["src/android_hardware_keymint.rs"],
72
73 rustlibs: [
74 "libbinder_rs",
75 "liblazy_static",
76 ],
77}
78
79// This is a placeholder for the libraries that will be generated from the AIDL specs
80// eventually.
81rust_library {
82 name: "libandroid_security_keystore2",
83 crate_name: "android_security_keystore2",
84
85 srcs: ["src/android_security_keystore2.rs"],
86
87 rustlibs: [
88 "libandroid_hardware_keymint",
89 "libbinder_rs",
90 "liblazy_static",
91 ],
92}