blob: bf7857409e2470e3d4a0e29c0cac811dd0a9de44 [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}