Janis Danisevskis | ce99543 | 2020-07-21 12:22:34 -0700 | [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_selinux", |
| 17 | crate_name: "keystore2_selinux", |
| 18 | srcs: [ |
| 19 | "src/lib.rs", |
| 20 | ], |
| 21 | |
| 22 | shared_libs: [ |
| 23 | "libselinux", |
| 24 | ], |
| 25 | |
| 26 | rustlibs: [ |
| 27 | "libanyhow", |
| 28 | "liblog_rust", |
| 29 | "libselinux_bindgen", |
| 30 | "libthiserror", |
| 31 | ], |
| 32 | } |
| 33 | |
| 34 | rust_test { |
| 35 | name: "keystore2_selinux_test", |
| 36 | srcs: [ |
| 37 | "src/lib.rs", |
| 38 | ], |
| 39 | crate_name: "keystore2_selinux_test", |
| 40 | test_suites: ["general-tests"], |
| 41 | auto_gen_config: true, |
| 42 | |
| 43 | shared_libs: [ |
| 44 | "libselinux", |
| 45 | ], |
| 46 | |
| 47 | rustlibs: [ |
| 48 | "libandroid_logger", |
| 49 | "libanyhow", |
| 50 | "liblog_rust", |
| 51 | "libselinux_bindgen", |
| 52 | "libthiserror", |
| 53 | ], |
| 54 | } |