blob: 0b8e7497e71ca31531be380655f026543d35fc3f [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",
Janis Danisevskisce995432020-07-21 12:22:34 -070023 "libkeystore2_selinux",
Joel Galenson0891bc12020-07-20 10:37:03 -070024 "liblibsqlite3_sys",
Janis Danisevskis7d77a762020-07-20 13:03:31 -070025 "liblog_rust",
Joel Galenson0891bc12020-07-20 10:37:03 -070026 "librand",
Joel Galenson26f4d012020-07-17 14:57:21 -070027 "librusqlite",
Janis Danisevskis7d77a762020-07-20 13:03:31 -070028 "libthiserror",
29 ],
Janis Danisevskis43c89712020-08-03 23:42:42 +000030}
31
32rust_test {
33 name: "keystore2_test",
Joel Galenson26f4d012020-07-17 14:57:21 -070034 crate_name: "keystore2",
Janis Danisevskis43c89712020-08-03 23:42:42 +000035 srcs: ["src/lib.rs"],
36 test_suites: ["general-tests"],
37 auto_gen_config: true,
Janis Danisevskis7d77a762020-07-20 13:03:31 -070038 rustlibs: [
39 "libandroid_logger",
40 "libanyhow",
41 "libkeystore_aidl_generated",
Janis Danisevskisce995432020-07-21 12:22:34 -070042 "libkeystore2_selinux",
Joel Galenson0891bc12020-07-20 10:37:03 -070043 "liblibsqlite3_sys",
Janis Danisevskis7d77a762020-07-20 13:03:31 -070044 "liblog_rust",
Joel Galenson26f4d012020-07-17 14:57:21 -070045 "librusqlite",
Janis Danisevskis7d77a762020-07-20 13:03:31 -070046 "libthiserror",
47 ],
Janis Danisevskis43c89712020-08-03 23:42:42 +000048}
Janis Danisevskis652f3812020-08-04 00:01:12 +000049
50// This is a placeholder for the libraries that will be generated from the AIDL specs
51// eventually.
52rust_library {
53 name: "libkeystore_aidl_generated",
54 crate_name: "keystore_aidl_generated",
55
56 srcs: ["src/aidl_generated.rs"],
57}