Janis Danisevskis | 43c8971 | 2020-08-03 23:42:42 +0000 | [diff] [blame] | 1 | // 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 | |
| 15 | rust_library { |
| 16 | name: "libkeystore2", |
| 17 | crate_name: "keystore2", |
| 18 | srcs: ["src/lib.rs"], |
Janis Danisevskis | 7d77a76 | 2020-07-20 13:03:31 -0700 | [diff] [blame] | 19 | |
| 20 | rustlibs: [ |
| 21 | "libanyhow", |
| 22 | "libkeystore_aidl_generated", |
Janis Danisevskis | ce99543 | 2020-07-21 12:22:34 -0700 | [diff] [blame] | 23 | "libkeystore2_selinux", |
Janis Danisevskis | 4ad056f | 2020-08-05 19:46:46 +0000 | [diff] [blame^] | 24 | "liblazy_static", |
Joel Galenson | 0891bc1 | 2020-07-20 10:37:03 -0700 | [diff] [blame] | 25 | "liblibsqlite3_sys", |
Janis Danisevskis | 7d77a76 | 2020-07-20 13:03:31 -0700 | [diff] [blame] | 26 | "liblog_rust", |
Joel Galenson | 0891bc1 | 2020-07-20 10:37:03 -0700 | [diff] [blame] | 27 | "librand", |
Joel Galenson | 26f4d01 | 2020-07-17 14:57:21 -0700 | [diff] [blame] | 28 | "librusqlite", |
Janis Danisevskis | 7d77a76 | 2020-07-20 13:03:31 -0700 | [diff] [blame] | 29 | "libthiserror", |
| 30 | ], |
Janis Danisevskis | 43c8971 | 2020-08-03 23:42:42 +0000 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | rust_test { |
| 34 | name: "keystore2_test", |
Joel Galenson | 26f4d01 | 2020-07-17 14:57:21 -0700 | [diff] [blame] | 35 | crate_name: "keystore2", |
Janis Danisevskis | 43c8971 | 2020-08-03 23:42:42 +0000 | [diff] [blame] | 36 | srcs: ["src/lib.rs"], |
| 37 | test_suites: ["general-tests"], |
| 38 | auto_gen_config: true, |
Janis Danisevskis | 7d77a76 | 2020-07-20 13:03:31 -0700 | [diff] [blame] | 39 | rustlibs: [ |
| 40 | "libandroid_logger", |
| 41 | "libanyhow", |
| 42 | "libkeystore_aidl_generated", |
Janis Danisevskis | ce99543 | 2020-07-21 12:22:34 -0700 | [diff] [blame] | 43 | "libkeystore2_selinux", |
Janis Danisevskis | 4ad056f | 2020-08-05 19:46:46 +0000 | [diff] [blame^] | 44 | "liblazy_static", |
Joel Galenson | 0891bc1 | 2020-07-20 10:37:03 -0700 | [diff] [blame] | 45 | "liblibsqlite3_sys", |
Janis Danisevskis | 7d77a76 | 2020-07-20 13:03:31 -0700 | [diff] [blame] | 46 | "liblog_rust", |
Joel Galenson | 26f4d01 | 2020-07-17 14:57:21 -0700 | [diff] [blame] | 47 | "librusqlite", |
Janis Danisevskis | 7d77a76 | 2020-07-20 13:03:31 -0700 | [diff] [blame] | 48 | "libthiserror", |
| 49 | ], |
Janis Danisevskis | 43c8971 | 2020-08-03 23:42:42 +0000 | [diff] [blame] | 50 | } |
Janis Danisevskis | 652f381 | 2020-08-04 00:01:12 +0000 | [diff] [blame] | 51 | |
| 52 | // This is a placeholder for the libraries that will be generated from the AIDL specs |
| 53 | // eventually. |
| 54 | rust_library { |
| 55 | name: "libkeystore_aidl_generated", |
| 56 | crate_name: "keystore_aidl_generated", |
| 57 | |
| 58 | srcs: ["src/aidl_generated.rs"], |
| 59 | } |
Janis Danisevskis | 1fe1132 | 2020-08-07 08:44:08 -0700 | [diff] [blame] | 60 | |
| 61 | // This is a placeholder for the libraries that will be generated from the AIDL specs |
| 62 | // eventually. |
| 63 | rust_library { |
| 64 | name: "libandroid_hardware_keymint", |
| 65 | crate_name: "android_hardware_keymint", |
| 66 | |
| 67 | srcs: ["src/android_hardware_keymint.rs"], |
| 68 | |
| 69 | rustlibs: [ |
| 70 | "libbinder_rs", |
| 71 | "liblazy_static", |
| 72 | ], |
| 73 | } |
| 74 | |
| 75 | // This is a placeholder for the libraries that will be generated from the AIDL specs |
| 76 | // eventually. |
| 77 | rust_library { |
| 78 | name: "libandroid_security_keystore2", |
| 79 | crate_name: "android_security_keystore2", |
| 80 | |
| 81 | srcs: ["src/android_security_keystore2.rs"], |
| 82 | |
| 83 | rustlibs: [ |
| 84 | "libandroid_hardware_keymint", |
| 85 | "libbinder_rs", |
| 86 | "liblazy_static", |
| 87 | ], |
| 88 | } |