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", |
| 23 | "liblog_rust", |
| 24 | "libthiserror", |
| 25 | ], |
Janis Danisevskis | 43c8971 | 2020-08-03 23:42:42 +0000 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | rust_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 Danisevskis | 7d77a76 | 2020-07-20 13:03:31 -0700 | [diff] [blame^] | 34 | rustlibs: [ |
| 35 | "libandroid_logger", |
| 36 | "libanyhow", |
| 37 | "libkeystore_aidl_generated", |
| 38 | "liblog_rust", |
| 39 | "libthiserror", |
| 40 | ], |
Janis Danisevskis | 43c8971 | 2020-08-03 23:42:42 +0000 | [diff] [blame] | 41 | } |
Janis Danisevskis | 652f381 | 2020-08-04 00:01:12 +0000 | [diff] [blame] | 42 | |
| 43 | // This is a placeholder for the libraries that will be generated from the AIDL specs |
| 44 | // eventually. |
| 45 | rust_library { |
| 46 | name: "libkeystore_aidl_generated", |
| 47 | crate_name: "keystore_aidl_generated", |
| 48 | |
| 49 | srcs: ["src/aidl_generated.rs"], |
| 50 | } |