blob: dd405891b781a35eade3b431df6d83342850bd7b [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",
Joel Galenson26f4d012020-07-17 14:57:21 -070024 "librusqlite",
Janis Danisevskis7d77a762020-07-20 13:03:31 -070025 "libthiserror",
26 ],
Janis Danisevskis43c89712020-08-03 23:42:42 +000027}
28
29rust_test {
30 name: "keystore2_test",
Joel Galenson26f4d012020-07-17 14:57:21 -070031 crate_name: "keystore2",
Janis Danisevskis43c89712020-08-03 23:42:42 +000032 srcs: ["src/lib.rs"],
33 test_suites: ["general-tests"],
34 auto_gen_config: true,
Janis Danisevskis7d77a762020-07-20 13:03:31 -070035 rustlibs: [
36 "libandroid_logger",
37 "libanyhow",
38 "libkeystore_aidl_generated",
39 "liblog_rust",
Joel Galenson26f4d012020-07-17 14:57:21 -070040 "librusqlite",
Janis Danisevskis7d77a762020-07-20 13:03:31 -070041 "libthiserror",
42 ],
Janis Danisevskis43c89712020-08-03 23:42:42 +000043}
Janis Danisevskis652f3812020-08-04 00:01:12 +000044
45// This is a placeholder for the libraries that will be generated from the AIDL specs
46// eventually.
47rust_library {
48 name: "libkeystore_aidl_generated",
49 crate_name: "keystore_aidl_generated",
50
51 srcs: ["src/aidl_generated.rs"],
52}