Paul Crowley | 9da969e | 2022-09-16 23:42:24 +0000 | [diff] [blame] | 1 | // Copyright (C) 2022 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 | package { |
Aditya Choudhary | d987e9b | 2024-02-02 14:02:09 +0000 | [diff] [blame] | 16 | default_team: "trendy_team_java_core_libraries", |
Paul Crowley | 9da969e | 2022-09-16 23:42:24 +0000 | [diff] [blame] | 17 | // See: http://go/android-license-faq |
Paul Crowley | 9da969e | 2022-09-16 23:42:24 +0000 | [diff] [blame] | 18 | // SPDX-license-identifier-Apache-2.0 |
| 19 | default_applicable_licenses: ["system_security_license"], |
| 20 | } |
| 21 | |
Jiyong Park | eefd351 | 2022-12-22 10:22:57 +0900 | [diff] [blame] | 22 | rust_defaults { |
| 23 | name: "prng_seeder_defaults", |
Paul Crowley | 9da969e | 2022-09-16 23:42:24 +0000 | [diff] [blame] | 24 | edition: "2021", |
Paul Crowley | 9da969e | 2022-09-16 23:42:24 +0000 | [diff] [blame] | 25 | rustlibs: [ |
| 26 | "libanyhow", |
Maurice Lam | 47b4fac | 2023-12-18 22:14:32 +0000 | [diff] [blame] | 27 | "libbssl_sys", |
Paul Crowley | 9da969e | 2022-09-16 23:42:24 +0000 | [diff] [blame] | 28 | "libclap", |
Paul Crowley | 9da969e | 2022-09-16 23:42:24 +0000 | [diff] [blame] | 29 | "liblogger", |
| 30 | "liblog_rust", |
| 31 | "libnix", |
Jiyong Park | 6af1cf1 | 2024-09-11 09:12:55 +0900 | [diff] [blame] | 32 | "librustutils", |
Paul Crowley | 9da969e | 2022-09-16 23:42:24 +0000 | [diff] [blame] | 33 | "libtokio", |
| 34 | ], |
Pete Bentley | 812307d | 2022-09-22 15:29:13 +0100 | [diff] [blame] | 35 | |
| 36 | init_rc: ["prng_seeder.rc"], |
Paul Crowley | 9da969e | 2022-09-16 23:42:24 +0000 | [diff] [blame] | 37 | } |
Jiyong Park | eefd351 | 2022-12-22 10:22:57 +0900 | [diff] [blame] | 38 | |
| 39 | rust_binary { |
| 40 | name: "prng_seeder", |
| 41 | defaults: ["prng_seeder_defaults"], |
| 42 | srcs: ["src/main.rs"], |
| 43 | } |
| 44 | |
| 45 | rust_binary { |
| 46 | name: "prng_seeder_microdroid", |
| 47 | defaults: ["prng_seeder_defaults"], |
| 48 | srcs: ["src/main.rs"], |
| 49 | stem: "prng_seeder", |
| 50 | bootstrap: true, |
| 51 | installable: false, |
| 52 | prefer_rlib: true, |
| 53 | } |
Andrew Walbran | 13335de | 2022-12-01 15:05:39 +0000 | [diff] [blame] | 54 | |
| 55 | rust_test { |
| 56 | name: "prng_seeder.test", |
| 57 | edition: "2021", |
| 58 | srcs: ["src/main.rs"], |
| 59 | rustlibs: [ |
| 60 | "libanyhow", |
Maurice Lam | 47b4fac | 2023-12-18 22:14:32 +0000 | [diff] [blame] | 61 | "libbssl_sys", |
Andrew Walbran | 13335de | 2022-12-01 15:05:39 +0000 | [diff] [blame] | 62 | "libclap", |
Andrew Walbran | 13335de | 2022-12-01 15:05:39 +0000 | [diff] [blame] | 63 | "liblogger", |
| 64 | "liblog_rust", |
| 65 | "libnix", |
Jiyong Park | 6af1cf1 | 2024-09-11 09:12:55 +0900 | [diff] [blame] | 66 | "librustutils", |
Andrew Walbran | 13335de | 2022-12-01 15:05:39 +0000 | [diff] [blame] | 67 | "libtokio", |
| 68 | ], |
| 69 | test_suites: ["general-tests"], |
| 70 | } |