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 15package { 16 default_team: "trendy_team_java_core_libraries", 17 // See: http://go/android-license-faq 18 // SPDX-license-identifier-Apache-2.0 19 default_applicable_licenses: ["system_security_license"], 20} 21 22rust_defaults { 23 name: "prng_seeder_defaults", 24 edition: "2021", 25 rustlibs: [ 26 "libanyhow", 27 "libbssl_sys", 28 "libclap", 29 "liblogger", 30 "liblog_rust", 31 "libnix", 32 "librustutils", 33 "libtokio", 34 ], 35 36 init_rc: ["prng_seeder.rc"], 37} 38 39rust_binary { 40 name: "prng_seeder", 41 defaults: ["prng_seeder_defaults"], 42 srcs: ["src/main.rs"], 43} 44 45rust_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} 54 55rust_test { 56 name: "prng_seeder.test", 57 edition: "2021", 58 srcs: ["src/main.rs"], 59 rustlibs: [ 60 "libanyhow", 61 "libbssl_sys", 62 "libclap", 63 "liblogger", 64 "liblog_rust", 65 "libnix", 66 "librustutils", 67 "libtokio", 68 ], 69 test_suites: ["general-tests"], 70} 71