blob: b56a405cfb159ed120cec7ea254a755c53103a76 [file] [log] [blame]
Paul Crowley9da969e2022-09-16 23:42:24 +00001// 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 {
Aditya Choudharyd987e9b2024-02-02 14:02:09 +000016 default_team: "trendy_team_java_core_libraries",
Paul Crowley9da969e2022-09-16 23:42:24 +000017 // See: http://go/android-license-faq
Paul Crowley9da969e2022-09-16 23:42:24 +000018 // SPDX-license-identifier-Apache-2.0
19 default_applicable_licenses: ["system_security_license"],
20}
21
Jiyong Parkeefd3512022-12-22 10:22:57 +090022rust_defaults {
23 name: "prng_seeder_defaults",
Paul Crowley9da969e2022-09-16 23:42:24 +000024 edition: "2021",
Paul Crowley9da969e2022-09-16 23:42:24 +000025 rustlibs: [
26 "libanyhow",
Maurice Lam47b4fac2023-12-18 22:14:32 +000027 "libbssl_sys",
Paul Crowley9da969e2022-09-16 23:42:24 +000028 "libclap",
Paul Crowley9da969e2022-09-16 23:42:24 +000029 "liblogger",
30 "liblog_rust",
31 "libnix",
Jiyong Park6af1cf12024-09-11 09:12:55 +090032 "librustutils",
Paul Crowley9da969e2022-09-16 23:42:24 +000033 "libtokio",
34 ],
Pete Bentley812307d2022-09-22 15:29:13 +010035
36 init_rc: ["prng_seeder.rc"],
Paul Crowley9da969e2022-09-16 23:42:24 +000037}
Jiyong Parkeefd3512022-12-22 10:22:57 +090038
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}
Andrew Walbran13335de2022-12-01 15:05:39 +000054
55rust_test {
56 name: "prng_seeder.test",
57 edition: "2021",
58 srcs: ["src/main.rs"],
59 rustlibs: [
60 "libanyhow",
Maurice Lam47b4fac2023-12-18 22:14:32 +000061 "libbssl_sys",
Andrew Walbran13335de2022-12-01 15:05:39 +000062 "libclap",
Andrew Walbran13335de2022-12-01 15:05:39 +000063 "liblogger",
64 "liblog_rust",
65 "libnix",
Jiyong Park6af1cf12024-09-11 09:12:55 +090066 "librustutils",
Andrew Walbran13335de2022-12-01 15:05:39 +000067 "libtokio",
68 ],
69 test_suites: ["general-tests"],
70}