1// This file is generated by cargo2android.py --config cargo2android.json. 2// Do not modify this file as changes will be overridden on upgrade. 3 4package { 5 default_applicable_licenses: ["external_rust_crates_env_logger_license"], 6} 7 8// Added automatically by a large-scale-change that took the approach of 9// 'apply every license found to every target'. While this makes sure we respect 10// every license restriction, it may not be entirely correct. 11// 12// e.g. GPL in an MIT project might only apply to the contrib/ directory. 13// 14// Please consider splitting the single license below into multiple licenses, 15// taking care not to lose any license_kind information, and overriding the 16// default license using the 'licenses: [...]' property on targets as needed. 17// 18// For unused files, consider creating a 'fileGroup' with "//visibility:private" 19// to attach the license to, and including a comment whether the files may be 20// used in the current project. 21// 22// large-scale-change included anything that looked like it might be a license 23// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. 24// 25// Please consider removing redundant or irrelevant files from 'license_text:'. 26// See: http://go/android-license-faq 27license { 28 name: "external_rust_crates_env_logger_license", 29 visibility: [":__subpackages__"], 30 license_kinds: [ 31 "SPDX-license-identifier-Apache-2.0", 32 "SPDX-license-identifier-MIT", 33 ], 34 license_text: [ 35 "LICENSE-APACHE", 36 "LICENSE-MIT", 37 ], 38} 39 40rust_defaults { 41 name: "env_logger_defaults", 42 crate_name: "env_logger", 43 srcs: ["src/lib.rs"], 44 test_suites: ["general-tests"], 45 auto_gen_config: true, 46 edition: "2018", 47 rustlibs: [ 48 "liblog_rust", 49 ], 50} 51 52rust_test_host { 53 name: "env_logger_host_test_src_lib", 54 defaults: ["env_logger_defaults"], 55 test_options: { 56 unit_test: true, 57 }, 58} 59 60rust_test { 61 name: "env_logger_device_test_src_lib", 62 defaults: ["env_logger_defaults"], 63} 64 65rust_defaults { 66 name: "env_logger_defaults_env_logger", 67 crate_name: "env_logger", 68 test_suites: ["general-tests"], 69 auto_gen_config: true, 70 edition: "2018", 71 cfgs: ["test"], 72 rustlibs: [ 73 "libenv_logger", 74 "liblog_rust", 75 ], 76} 77 78rust_test_host { 79 name: "env_logger_host_test_tests_init-twice-retains-filter", 80 defaults: ["env_logger_defaults_env_logger"], 81 srcs: ["tests/init-twice-retains-filter.rs"], 82 test_options: { 83 unit_test: true, 84 }, 85} 86 87rust_test { 88 name: "env_logger_device_test_tests_init-twice-retains-filter", 89 defaults: ["env_logger_defaults_env_logger"], 90 srcs: ["tests/init-twice-retains-filter.rs"], 91} 92 93rust_test_host { 94 name: "env_logger_host_test_tests_log-in-log", 95 defaults: ["env_logger_defaults_env_logger"], 96 srcs: ["tests/log-in-log.rs"], 97 test_options: { 98 unit_test: true, 99 }, 100} 101 102rust_test { 103 name: "env_logger_device_test_tests_log-in-log", 104 defaults: ["env_logger_defaults_env_logger"], 105 srcs: ["tests/log-in-log.rs"], 106} 107 108rust_test_host { 109 name: "env_logger_host_test_tests_log_tls_dtors", 110 defaults: ["env_logger_defaults_env_logger"], 111 srcs: ["tests/log_tls_dtors.rs"], 112 test_options: { 113 unit_test: true, 114 }, 115} 116 117rust_test { 118 name: "env_logger_device_test_tests_log_tls_dtors", 119 defaults: ["env_logger_defaults_env_logger"], 120 srcs: ["tests/log_tls_dtors.rs"], 121} 122 123rust_test_host { 124 name: "env_logger_host_test_tests_regexp_filter", 125 defaults: ["env_logger_defaults_env_logger"], 126 srcs: ["tests/regexp_filter.rs"], 127 test_options: { 128 unit_test: true, 129 }, 130} 131 132rust_test { 133 name: "env_logger_device_test_tests_regexp_filter", 134 defaults: ["env_logger_defaults_env_logger"], 135 srcs: ["tests/regexp_filter.rs"], 136} 137 138rust_library { 139 name: "libenv_logger", 140 host_supported: true, 141 crate_name: "env_logger", 142 srcs: ["src/lib.rs"], 143 edition: "2018", 144 rustlibs: [ 145 "liblog_rust", 146 ], 147 apex_available: [ 148 "//apex_available:platform", 149 "com.android.resolv", 150 "com.android.virt", 151 ], 152 min_sdk_version: "29", 153} 154 155// dependent_library ["feature_list"] 156// cfg-if-1.0.0 157// log-0.4.14 "std" 158