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// This file is automatically generated by gn2bp/gen_android_bp.py. Do not edit. 16 17// GN: Package-Artificial 18package { 19 default_applicable_licenses: [ 20 "external_cronet_license", 21 ], 22} 23 24// GN: //build/rust/chromium_prelude:chromium_prelude__testing 25rust_library_rlib { 26 name: "libchromium_cronet_aml_build_rust_chromium_prelude_chromium_prelude__testing", 27 srcs: [ 28 "chromium_prelude.rs", 29 ], 30 apex_available: [ 31 "com.android.tethering", 32 ], 33 min_sdk_version: "30", 34 visibility: [ 35 "//external/cronet:__subpackages__", 36 ], 37 crate_name: "chromium", 38 crate_root: "chromium_prelude.rs", 39 proc_macros: [ 40 "libimport_attribute_cronet_aml_build_rust_chromium_prelude_import_attribute__proc_macro__testing", 41 ], 42 target: { 43 android_arm: { 44 edition: "2021", 45 cfgs: [ 46 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 47 ], 48 flags: [ 49 "-Dunsafe_op_in_unsafe_fn", 50 "-Dwarnings", 51 "-Aunused-imports", 52 "-Cforce-unwind-tables=no", 53 "-Crelocation-model=pic", 54 "-Coverflow-checks=on", 55 "-Cdefault-linker-libraries", 56 "-Clto=no", 57 "-Ccodegen-units=1", 58 "-Copt-level=s", 59 "-Cdebuginfo=1", 60 "-Funsafe_code", 61 ], 62 }, 63 android_arm64: { 64 edition: "2021", 65 cfgs: [ 66 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 67 ], 68 flags: [ 69 "-Dunsafe_op_in_unsafe_fn", 70 "-Dwarnings", 71 "-Aunused-imports", 72 "-Cforce-unwind-tables=no", 73 "-Crelocation-model=pic", 74 "-Coverflow-checks=on", 75 "-Cdefault-linker-libraries", 76 "-Clto=no", 77 "-Ccodegen-units=1", 78 "-Copt-level=3", 79 "-Cdebuginfo=1", 80 "-Funsafe_code", 81 ], 82 }, 83 android_riscv64: { 84 edition: "2021", 85 cfgs: [ 86 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 87 ], 88 flags: [ 89 "-Dunsafe_op_in_unsafe_fn", 90 "-Dwarnings", 91 "-Aunused-imports", 92 "-Cforce-unwind-tables=no", 93 "-Crelocation-model=pic", 94 "-Coverflow-checks=on", 95 "-Cdefault-linker-libraries", 96 "-Clto=no", 97 "-Ccodegen-units=1", 98 "-Copt-level=s", 99 "-Cdebuginfo=1", 100 "-Funsafe_code", 101 ], 102 }, 103 android_x86: { 104 edition: "2021", 105 cfgs: [ 106 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 107 ], 108 flags: [ 109 "-Dunsafe_op_in_unsafe_fn", 110 "-Dwarnings", 111 "-Aunused-imports", 112 "-Cforce-unwind-tables=no", 113 "-Crelocation-model=pic", 114 "-Coverflow-checks=on", 115 "-Cdefault-linker-libraries", 116 "-Clto=no", 117 "-Ccodegen-units=1", 118 "-Copt-level=s", 119 "-Cdebuginfo=1", 120 "-Funsafe_code", 121 ], 122 }, 123 android_x86_64: { 124 edition: "2021", 125 cfgs: [ 126 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 127 ], 128 flags: [ 129 "-Dunsafe_op_in_unsafe_fn", 130 "-Dwarnings", 131 "-Aunused-imports", 132 "-Cforce-unwind-tables=no", 133 "-Crelocation-model=pic", 134 "-Coverflow-checks=on", 135 "-Cdefault-linker-libraries", 136 "-Clto=no", 137 "-Ccodegen-units=1", 138 "-Copt-level=s", 139 "-Cdebuginfo=1", 140 "-Funsafe_code", 141 ], 142 }, 143 }, 144} 145 146// GN: //build/rust/chromium_prelude:import_attribute__proc_macro__testing 147rust_proc_macro { 148 name: "libimport_attribute_cronet_aml_build_rust_chromium_prelude_import_attribute__proc_macro__testing", 149 srcs: [ 150 "import_attribute.rs", 151 ], 152 apex_available: [ 153 "com.android.tethering", 154 ], 155 min_sdk_version: "30", 156 visibility: [ 157 "//external/cronet:__subpackages__", 158 ], 159 crate_name: "import_attribute", 160 crate_root: "import_attribute.rs", 161 rustlibs: [ 162 "libproc_macro2_cronet_aml_third_party_rust_proc_macro2_v1_lib__testing", 163 "libquote_cronet_aml_third_party_rust_quote_v1_lib__testing", 164 "libsyn_cronet_aml_third_party_rust_syn_v2_lib__testing", 165 ], 166 target: { 167 host: { 168 edition: "2021", 169 cfgs: [ 170 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 171 ], 172 flags: [ 173 "-Dunsafe_op_in_unsafe_fn", 174 "-Dwarnings", 175 "-Aunused-imports", 176 "-Cforce-unwind-tables=no", 177 "-Crelocation-model=pic", 178 "-Coverflow-checks=on", 179 "-Cdefault-linker-libraries", 180 "-Clto=no", 181 "-Copt-level=3", 182 "-Cdebuginfo=1", 183 "-Funsafe_code", 184 ], 185 compile_multilib: "64", 186 }, 187 }, 188} 189