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: //net/tools/huffman_trie:huffman_trie_generator_sources__testing 25cc_library_static { 26 name: "cronet_aml_net_tools_huffman_trie_huffman_trie_generator_sources__testing", 27 srcs: [ 28 "bit_writer.cc", 29 "huffman/huffman_builder.cc", 30 "trie/trie_bit_buffer.cc", 31 "trie/trie_writer.cc", 32 "trie_entry.cc", 33 ], 34 host_supported: true, 35 generated_headers: [ 36 "cronet_aml_base_allocator_buildflags__testing", 37 "cronet_aml_base_allocator_partition_allocator_src_partition_alloc_chromecast_buildflags__testing", 38 "cronet_aml_base_allocator_partition_allocator_src_partition_alloc_chromeos_buildflags__testing", 39 "cronet_aml_base_allocator_partition_allocator_src_partition_alloc_debugging_buildflags__testing", 40 "cronet_aml_base_allocator_partition_allocator_src_partition_alloc_partition_alloc_buildflags__testing", 41 "cronet_aml_base_allocator_partition_allocator_src_partition_alloc_raw_ptr_buildflags__testing", 42 "cronet_aml_base_anchor_functions_buildflags__testing", 43 "cronet_aml_base_build_date__testing", 44 "cronet_aml_base_cfi_buildflags__testing", 45 "cronet_aml_base_check_version_internal_action__testing", 46 "cronet_aml_base_clang_profiling_buildflags__testing", 47 "cronet_aml_base_debugging_buildflags__testing", 48 "cronet_aml_base_feature_list_buildflags__testing", 49 "cronet_aml_base_fuzzing_buildflags__testing", 50 "cronet_aml_base_ios_cronet_buildflags__testing", 51 "cronet_aml_base_logging_buildflags__testing", 52 "cronet_aml_base_message_pump_buildflags__testing", 53 "cronet_aml_base_orderfile_buildflags__testing", 54 "cronet_aml_base_power_monitor_buildflags__testing", 55 "cronet_aml_base_profiler_buildflags__testing", 56 "cronet_aml_base_protected_memory_buildflags__testing", 57 "cronet_aml_base_rust_buildflags__testing", 58 "cronet_aml_base_sanitizer_buildflags__testing", 59 "cronet_aml_base_synchronization_buildflags__testing", 60 "cronet_aml_base_tracing_buildflags__testing", 61 "cronet_aml_build_blink_buildflags__testing", 62 "cronet_aml_build_branding_buildflags__testing", 63 "cronet_aml_build_chromecast_buildflags__testing", 64 "cronet_aml_build_chromeos_buildflags__testing", 65 "cronet_aml_build_config_compiler_compiler_buildflags__testing", 66 "cronet_aml_build_ios_buildflags__testing", 67 ], 68 export_generated_headers: [ 69 "cronet_aml_base_allocator_buildflags__testing", 70 "cronet_aml_base_allocator_partition_allocator_src_partition_alloc_chromecast_buildflags__testing", 71 "cronet_aml_base_allocator_partition_allocator_src_partition_alloc_chromeos_buildflags__testing", 72 "cronet_aml_base_allocator_partition_allocator_src_partition_alloc_debugging_buildflags__testing", 73 "cronet_aml_base_allocator_partition_allocator_src_partition_alloc_partition_alloc_buildflags__testing", 74 "cronet_aml_base_allocator_partition_allocator_src_partition_alloc_raw_ptr_buildflags__testing", 75 "cronet_aml_base_anchor_functions_buildflags__testing", 76 "cronet_aml_base_build_date__testing", 77 "cronet_aml_base_cfi_buildflags__testing", 78 "cronet_aml_base_check_version_internal_action__testing", 79 "cronet_aml_base_clang_profiling_buildflags__testing", 80 "cronet_aml_base_debugging_buildflags__testing", 81 "cronet_aml_base_feature_list_buildflags__testing", 82 "cronet_aml_base_fuzzing_buildflags__testing", 83 "cronet_aml_base_ios_cronet_buildflags__testing", 84 "cronet_aml_base_logging_buildflags__testing", 85 "cronet_aml_base_message_pump_buildflags__testing", 86 "cronet_aml_base_orderfile_buildflags__testing", 87 "cronet_aml_base_power_monitor_buildflags__testing", 88 "cronet_aml_base_profiler_buildflags__testing", 89 "cronet_aml_base_protected_memory_buildflags__testing", 90 "cronet_aml_base_rust_buildflags__testing", 91 "cronet_aml_base_sanitizer_buildflags__testing", 92 "cronet_aml_base_synchronization_buildflags__testing", 93 "cronet_aml_base_tracing_buildflags__testing", 94 "cronet_aml_build_blink_buildflags__testing", 95 "cronet_aml_build_branding_buildflags__testing", 96 "cronet_aml_build_chromecast_buildflags__testing", 97 "cronet_aml_build_chromeos_buildflags__testing", 98 "cronet_aml_build_config_compiler_compiler_buildflags__testing", 99 "cronet_aml_build_ios_buildflags__testing", 100 ], 101 defaults: [ 102 "cronet_aml_cc_defaults", 103 ], 104 cflags: [ 105 "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"", 106 "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b", 107 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 108 "-DNDEBUG", 109 "-DNO_UNWIND_TABLES", 110 "-DNVALGRIND", 111 "-DOFFICIAL_BUILD", 112 "-D_GNU_SOURCE", 113 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 114 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 115 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 116 "-D__STDC_CONSTANT_MACROS", 117 "-D__STDC_FORMAT_MACROS", 118 "-fdata-sections", 119 "-ffunction-sections", 120 "-fno-asynchronous-unwind-tables", 121 "-fno-unwind-tables", 122 "-fstack-protector", 123 "-fvisibility-inlines-hidden", 124 "-fvisibility=hidden", 125 "-g1", 126 ], 127 include_dirs: [ 128 "external/cronet/", 129 "external/cronet/base/allocator/partition_allocator/src/", 130 "external/cronet/buildtools/third_party/libc++/", 131 "external/cronet/third_party/abseil-cpp/", 132 "external/cronet/third_party/boringssl/src/include/", 133 "external/cronet/third_party/libc++/src/include", 134 "external/cronet/third_party/libc++abi/src/include", 135 ], 136 cpp_std: "c++20", 137 ldflags: [ 138 "-Wl,--as-needed", 139 "-Wl,--gc-sections", 140 "-Wl,--icf=all", 141 "-Wl,--script,external/cronet/base/android/library_loader/anchor_functions.lds", 142 ], 143 visibility: [ 144 "//external/cronet:__subpackages__", 145 ], 146 target: { 147 android: { 148 shared_libs: [ 149 "libandroid", 150 "liblog", 151 ], 152 }, 153 android_arm: { 154 shared_libs: [ 155 "liblog", 156 ], 157 cflags: [ 158 "-DANDROID", 159 "-DANDROID_NDK_VERSION_ROLL=r26b_1", 160 "-DHAVE_SYS_UIO_H", 161 "-D_FORTIFY_SOURCE=2", 162 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 163 ], 164 ldflags: [ 165 "-Wl,-wrap,asprintf", 166 "-Wl,-wrap,calloc", 167 "-Wl,-wrap,free", 168 "-Wl,-wrap,getcwd", 169 "-Wl,-wrap,malloc", 170 "-Wl,-wrap,malloc_usable_size", 171 "-Wl,-wrap,memalign", 172 "-Wl,-wrap,posix_memalign", 173 "-Wl,-wrap,pvalloc", 174 "-Wl,-wrap,realloc", 175 "-Wl,-wrap,realpath", 176 "-Wl,-wrap,strdup", 177 "-Wl,-wrap,strndup", 178 "-Wl,-wrap,valloc", 179 "-Wl,-wrap,vasprintf", 180 ], 181 }, 182 android_arm64: { 183 shared_libs: [ 184 "liblog", 185 ], 186 cflags: [ 187 "-DANDROID", 188 "-DANDROID_NDK_VERSION_ROLL=r26b_1", 189 "-DHAVE_SYS_UIO_H", 190 "-D_FORTIFY_SOURCE=2", 191 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 192 "-O2", 193 "-mno-outline", 194 ], 195 ldflags: [ 196 "-Wl,-wrap,asprintf", 197 "-Wl,-wrap,calloc", 198 "-Wl,-wrap,free", 199 "-Wl,-wrap,getcwd", 200 "-Wl,-wrap,malloc", 201 "-Wl,-wrap,malloc_usable_size", 202 "-Wl,-wrap,memalign", 203 "-Wl,-wrap,posix_memalign", 204 "-Wl,-wrap,pvalloc", 205 "-Wl,-wrap,realloc", 206 "-Wl,-wrap,realpath", 207 "-Wl,-wrap,strdup", 208 "-Wl,-wrap,strndup", 209 "-Wl,-wrap,valloc", 210 "-Wl,-wrap,vasprintf", 211 ], 212 }, 213 android_riscv64: { 214 shared_libs: [ 215 "liblog", 216 ], 217 cflags: [ 218 "-DANDROID", 219 "-DANDROID_NDK_VERSION_ROLL=r26b_1", 220 "-DHAVE_SYS_UIO_H", 221 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 222 ], 223 ldflags: [ 224 "-Wl,-wrap,asprintf", 225 "-Wl,-wrap,calloc", 226 "-Wl,-wrap,free", 227 "-Wl,-wrap,getcwd", 228 "-Wl,-wrap,malloc", 229 "-Wl,-wrap,malloc_usable_size", 230 "-Wl,-wrap,memalign", 231 "-Wl,-wrap,posix_memalign", 232 "-Wl,-wrap,pvalloc", 233 "-Wl,-wrap,realloc", 234 "-Wl,-wrap,realpath", 235 "-Wl,-wrap,strdup", 236 "-Wl,-wrap,strndup", 237 "-Wl,-wrap,valloc", 238 "-Wl,-wrap,vasprintf", 239 ], 240 }, 241 android_x86: { 242 shared_libs: [ 243 "liblog", 244 ], 245 cflags: [ 246 "-DANDROID", 247 "-DANDROID_NDK_VERSION_ROLL=r26b_1", 248 "-DHAVE_SYS_UIO_H", 249 "-D_FORTIFY_SOURCE=2", 250 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 251 "-msse3", 252 ], 253 ldflags: [ 254 "-Wl,-wrap,asprintf", 255 "-Wl,-wrap,calloc", 256 "-Wl,-wrap,free", 257 "-Wl,-wrap,getcwd", 258 "-Wl,-wrap,malloc", 259 "-Wl,-wrap,malloc_usable_size", 260 "-Wl,-wrap,memalign", 261 "-Wl,-wrap,posix_memalign", 262 "-Wl,-wrap,pvalloc", 263 "-Wl,-wrap,realloc", 264 "-Wl,-wrap,realpath", 265 "-Wl,-wrap,strdup", 266 "-Wl,-wrap,strndup", 267 "-Wl,-wrap,valloc", 268 "-Wl,-wrap,vasprintf", 269 ], 270 }, 271 android_x86_64: { 272 shared_libs: [ 273 "liblog", 274 ], 275 cflags: [ 276 "-DANDROID", 277 "-DANDROID_NDK_VERSION_ROLL=r26b_1", 278 "-DHAVE_SYS_UIO_H", 279 "-D_FORTIFY_SOURCE=2", 280 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 281 "-msse3", 282 ], 283 ldflags: [ 284 "-Wl,-wrap,asprintf", 285 "-Wl,-wrap,calloc", 286 "-Wl,-wrap,free", 287 "-Wl,-wrap,getcwd", 288 "-Wl,-wrap,malloc", 289 "-Wl,-wrap,malloc_usable_size", 290 "-Wl,-wrap,memalign", 291 "-Wl,-wrap,posix_memalign", 292 "-Wl,-wrap,pvalloc", 293 "-Wl,-wrap,realloc", 294 "-Wl,-wrap,realpath", 295 "-Wl,-wrap,strdup", 296 "-Wl,-wrap,strndup", 297 "-Wl,-wrap,valloc", 298 "-Wl,-wrap,vasprintf", 299 ], 300 }, 301 host: { 302 cflags: [ 303 "-DCR_SYSROOT_KEY=20230611T210420Z-2", 304 "-DUSE_AURA=1", 305 "-DUSE_OZONE=1", 306 "-DUSE_UDEV", 307 "-D_FILE_OFFSET_BITS=64", 308 "-D_FORTIFY_SOURCE=2", 309 "-D_LARGEFILE64_SOURCE", 310 "-D_LARGEFILE_SOURCE", 311 "-O2", 312 "-msse3", 313 ], 314 compile_multilib: "64", 315 }, 316 }, 317} 318