blob: 056c3109b498c4c79ef6f4f2619580104178faa6 [file] [log] [blame]
Joel Galensonaf4c9652021-04-26 15:00:16 -07001// This file is generated by cargo2android.py --config cargo2android.json.
Victor Hsiehb0d94bb2021-03-12 09:30:05 -08002// Do not modify this file as changes will be overridden on upgrade.
Bob Badourfcc47422021-02-12 19:49:35 -08003
Bob Badour880fa782021-03-17 13:02:37 -07004package {
5 default_applicable_licenses: [
6 "external_rust_crates_android_logger_license",
7 ],
8}
9
10// Added automatically by a large-scale-change that took the approach of
11// 'apply every license found to every target'. While this makes sure we respect
12// every license restriction, it may not be entirely correct.
13//
14// e.g. GPL in an MIT project might only apply to the contrib/ directory.
15//
16// Please consider splitting the single license below into multiple licenses,
17// taking care not to lose any license_kind information, and overriding the
18// default license using the 'licenses: [...]' property on targets as needed.
19//
20// For unused files, consider creating a 'fileGroup' with "//visibility:private"
21// to attach the license to, and including a comment whether the files may be
22// used in the current project.
23//
24// large-scale-change included anything that looked like it might be a license
25// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
26//
27// Please consider removing redundant or irrelevant files from 'license_text:'.
28// See: http://go/android-license-faq
29license {
30 name: "external_rust_crates_android_logger_license",
31 visibility: [":__subpackages__"],
32 license_kinds: [
33 "SPDX-license-identifier-Apache-2.0",
34 "SPDX-license-identifier-MIT",
35 ],
36 license_text: [
37 "LICENSE-APACHE",
38 "LICENSE-MIT",
39 ],
40}
41
Chih-Hung Hsieh77b87862020-07-16 16:27:49 -070042rust_test {
Joel Galenson59ea7d92021-11-29 14:02:58 -080043 name: "android_logger_test_src_lib",
Chih-Hung Hsieh77b87862020-07-16 16:27:49 -070044 crate_name: "android_logger",
Joel Galensonb031bf42021-11-19 15:06:29 -080045 cargo_env_compat: true,
46 cargo_pkg_version: "0.10.1",
Chih-Hung Hsieh77b87862020-07-16 16:27:49 -070047 srcs: ["src/lib.rs"],
48 test_suites: ["general-tests"],
49 auto_gen_config: true,
50 edition: "2015",
51 features: [
52 "default",
53 "regex",
54 ],
55 rustlibs: [
56 "libandroid_log_sys",
57 "libenv_logger",
58 "liblazy_static",
59 "liblog_rust",
60 ],
61}
Joel Galensona3964702020-06-30 12:40:15 -070062
Jeff Vander Stoepc30f4eb2021-04-19 14:39:30 +020063rust_defaults {
Joel Galensonb031bf42021-11-19 15:06:29 -080064 name: "android_logger_test_defaults",
Jeff Vander Stoepc30f4eb2021-04-19 14:39:30 +020065 crate_name: "android_logger",
Joel Galensonb031bf42021-11-19 15:06:29 -080066 cargo_env_compat: true,
67 cargo_pkg_version: "0.10.1",
Jeff Vander Stoepc30f4eb2021-04-19 14:39:30 +020068 test_suites: ["general-tests"],
69 auto_gen_config: true,
70 edition: "2015",
71 features: [
72 "default",
73 "regex",
74 ],
75 rustlibs: [
76 "libandroid_log_sys",
77 "libandroid_logger",
78 "libenv_logger",
79 "liblazy_static",
80 "liblog_rust",
81 ],
82}
83
84rust_test {
Joel Galenson59ea7d92021-11-29 14:02:58 -080085 name: "android_logger_test_tests_config_log_level",
Joel Galensonb031bf42021-11-19 15:06:29 -080086 defaults: ["android_logger_test_defaults"],
Jeff Vander Stoepc30f4eb2021-04-19 14:39:30 +020087 srcs: ["tests/config_log_level.rs"],
88}
89
90rust_test {
Joel Galenson59ea7d92021-11-29 14:02:58 -080091 name: "android_logger_test_tests_default_init",
Joel Galensonb031bf42021-11-19 15:06:29 -080092 defaults: ["android_logger_test_defaults"],
Jeff Vander Stoepc30f4eb2021-04-19 14:39:30 +020093 srcs: ["tests/default_init.rs"],
94}
95
96rust_test {
Joel Galenson59ea7d92021-11-29 14:02:58 -080097 name: "android_logger_test_tests_multiple_init",
Joel Galensonb031bf42021-11-19 15:06:29 -080098 defaults: ["android_logger_test_defaults"],
Jeff Vander Stoepc30f4eb2021-04-19 14:39:30 +020099 srcs: ["tests/multiple_init.rs"],
100}
101
Joel Galensonc11b83d2020-07-06 11:46:36 -0700102rust_library {
Joel Galensona3964702020-06-30 12:40:15 -0700103 name: "libandroid_logger",
Joel Galensona3964702020-06-30 12:40:15 -0700104 crate_name: "android_logger",
Joel Galensonb031bf42021-11-19 15:06:29 -0800105 cargo_env_compat: true,
106 cargo_pkg_version: "0.10.1",
Joel Galensona3964702020-06-30 12:40:15 -0700107 srcs: ["src/lib.rs"],
108 edition: "2015",
109 features: [
110 "default",
111 "regex",
112 ],
Joel Galensonc11b83d2020-07-06 11:46:36 -0700113 rustlibs: [
Joel Galensona3964702020-06-30 12:40:15 -0700114 "libandroid_log_sys",
115 "libenv_logger",
116 "liblazy_static",
117 "liblog_rust",
118 ],
Victor Hsiehb0d94bb2021-03-12 09:30:05 -0800119 apex_available: [
120 "//apex_available:platform",
Roopa Sattirajua2ecb872021-12-21 15:45:34 -0800121 "com.android.bluetooth",
Victor Hsieha06ce9b2021-05-11 12:36:10 -0700122 "com.android.compos",
Luke Huange819fb62021-05-12 15:13:47 +0800123 "com.android.resolv",
Joel Galensonb031bf42021-11-19 15:06:29 -0800124 "com.android.uwb",
Victor Hsiehb0d94bb2021-03-12 09:30:05 -0800125 "com.android.virt",
126 ],
Joel Galensonb031bf42021-11-19 15:06:29 -0800127 vendor_available: true,
Luke Huange819fb62021-05-12 15:13:47 +0800128 min_sdk_version: "29",
Joel Galensona3964702020-06-30 12:40:15 -0700129}