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 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: "stable_cronet_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 shared_libs: [ 35 "libz", 36 ], 37 host_supported: true, 38 host_cross_supported: false, 39 generated_headers: [ 40 "stable_cronet_base_allocator_buildflags__testing", 41 "stable_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing", 42 "stable_cronet_base_anchor_functions_buildflags__testing", 43 "stable_cronet_base_build_date__testing", 44 "stable_cronet_base_cfi_buildflags__testing", 45 "stable_cronet_base_check_version_internal_action__testing", 46 "stable_cronet_base_clang_profiling_buildflags__testing", 47 "stable_cronet_base_debugging_buildflags__testing", 48 "stable_cronet_base_feature_list_buildflags__testing", 49 "stable_cronet_base_fuzzing_buildflags__testing", 50 "stable_cronet_base_ios_cronet_buildflags__testing", 51 "stable_cronet_base_orderfile_buildflags__testing", 52 "stable_cronet_base_power_monitor_buildflags__testing", 53 "stable_cronet_base_profiler_buildflags__testing", 54 "stable_cronet_base_protected_memory_buildflags__testing", 55 "stable_cronet_base_rust_logger_cxx_generated_gen__testing_header", 56 "stable_cronet_base_sanitizer_buildflags__testing", 57 "stable_cronet_base_synchronization_buildflags__testing", 58 "stable_cronet_base_tracing_buildflags__testing", 59 "stable_cronet_build_blink_buildflags__testing", 60 "stable_cronet_build_branding_buildflags__testing", 61 "stable_cronet_build_chromecast_buildflags__testing", 62 "stable_cronet_build_chromeos_buildflags__testing", 63 "stable_cronet_build_config_compiler_compiler_buildflags__testing", 64 "stable_cronet_build_ios_buildflags__testing", 65 "stable_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header", 66 ], 67 export_generated_headers: [ 68 "stable_cronet_base_allocator_buildflags__testing", 69 "stable_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing", 70 "stable_cronet_base_anchor_functions_buildflags__testing", 71 "stable_cronet_base_build_date__testing", 72 "stable_cronet_base_cfi_buildflags__testing", 73 "stable_cronet_base_check_version_internal_action__testing", 74 "stable_cronet_base_clang_profiling_buildflags__testing", 75 "stable_cronet_base_debugging_buildflags__testing", 76 "stable_cronet_base_feature_list_buildflags__testing", 77 "stable_cronet_base_fuzzing_buildflags__testing", 78 "stable_cronet_base_ios_cronet_buildflags__testing", 79 "stable_cronet_base_orderfile_buildflags__testing", 80 "stable_cronet_base_power_monitor_buildflags__testing", 81 "stable_cronet_base_profiler_buildflags__testing", 82 "stable_cronet_base_protected_memory_buildflags__testing", 83 "stable_cronet_base_rust_logger_cxx_generated_gen__testing_header", 84 "stable_cronet_base_sanitizer_buildflags__testing", 85 "stable_cronet_base_synchronization_buildflags__testing", 86 "stable_cronet_base_tracing_buildflags__testing", 87 "stable_cronet_build_blink_buildflags__testing", 88 "stable_cronet_build_branding_buildflags__testing", 89 "stable_cronet_build_chromecast_buildflags__testing", 90 "stable_cronet_build_chromeos_buildflags__testing", 91 "stable_cronet_build_config_compiler_compiler_buildflags__testing", 92 "stable_cronet_build_ios_buildflags__testing", 93 "stable_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header", 94 ], 95 defaults: [ 96 "stable_cronet_cc_defaults", 97 ], 98 cflags: [ 99 "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", 100 "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"", 101 "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", 102 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 103 "-DNDEBUG", 104 "-DNVALGRIND", 105 "-DOFFICIAL_BUILD", 106 "-DTMP_REBUILD_HACK", 107 "-D_GNU_SOURCE", 108 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 109 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 110 "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", 111 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 112 "-D__STDC_CONSTANT_MACROS", 113 "-D__STDC_FORMAT_MACROS", 114 "-fdata-sections", 115 "-ffunction-sections", 116 "-fstack-protector", 117 "-fvisibility-inlines-hidden", 118 "-fvisibility=hidden", 119 "-g1", 120 ], 121 include_dirs: [ 122 "external/cronet/stable/", 123 "external/cronet/stable/base/allocator/partition_allocator/src/", 124 "external/cronet/stable/buildtools/third_party/libc++/", 125 "external/cronet/stable/third_party/abseil-cpp/", 126 "external/cronet/stable/third_party/boringssl/src/include/", 127 "external/cronet/stable/third_party/libc++/src/include", 128 "external/cronet/stable/third_party/libc++abi/src/include", 129 ], 130 cpp_std: "c++20", 131 ldflags: [ 132 "-Wl,--as-needed", 133 "-Wl,--gc-sections", 134 "-Wl,--icf=all", 135 "-Wl,--script,external/cronet/stable/base/android/library_loader/anchor_functions.lds", 136 ], 137 visibility: [ 138 "//external/cronet:__subpackages__", 139 ], 140 target: { 141 android: { 142 shared_libs: [ 143 "libandroid", 144 "liblog", 145 ], 146 }, 147 android_arm: { 148 shared_libs: [ 149 "liblog", 150 ], 151 cflags: [ 152 "-DANDROID", 153 "-DANDROID_NDK_VERSION_ROLL=r27_1", 154 "-DHAVE_SYS_UIO_H", 155 "-D_FORTIFY_SOURCE=2", 156 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 157 ], 158 generated_headers: [ 159 "stable_cronet_third_party_jni_zero_generate_jni__action__testing", 160 "stable_cronet_third_party_jni_zero_system_jni__action__testing", 161 ], 162 }, 163 android_arm64: { 164 shared_libs: [ 165 "liblog", 166 ], 167 cflags: [ 168 "-DANDROID", 169 "-DANDROID_NDK_VERSION_ROLL=r27_1", 170 "-DHAVE_SYS_UIO_H", 171 "-D_FORTIFY_SOURCE=2", 172 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 173 "-D__ARM_NEON__=1", 174 "-O2", 175 "-mno-outline", 176 ], 177 generated_headers: [ 178 "stable_cronet_third_party_jni_zero_generate_jni__action__testing", 179 "stable_cronet_third_party_jni_zero_system_jni__action__testing", 180 ], 181 }, 182 android_riscv64: { 183 shared_libs: [ 184 "liblog", 185 ], 186 cflags: [ 187 "-DANDROID", 188 "-DANDROID_NDK_VERSION_ROLL=r27_1", 189 "-DHAVE_SYS_UIO_H", 190 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 191 ], 192 generated_headers: [ 193 "stable_cronet_third_party_jni_zero_generate_jni__action__testing", 194 "stable_cronet_third_party_jni_zero_system_jni__action__testing", 195 ], 196 }, 197 android_x86: { 198 shared_libs: [ 199 "liblog", 200 ], 201 cflags: [ 202 "-DANDROID", 203 "-DANDROID_NDK_VERSION_ROLL=r27_1", 204 "-DHAVE_SYS_UIO_H", 205 "-D_FORTIFY_SOURCE=2", 206 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 207 "-msse3", 208 ], 209 generated_headers: [ 210 "stable_cronet_third_party_jni_zero_generate_jni__action__testing", 211 "stable_cronet_third_party_jni_zero_system_jni__action__testing", 212 ], 213 }, 214 android_x86_64: { 215 shared_libs: [ 216 "liblog", 217 ], 218 cflags: [ 219 "-DANDROID", 220 "-DANDROID_NDK_VERSION_ROLL=r27_1", 221 "-DHAVE_SYS_UIO_H", 222 "-D_FORTIFY_SOURCE=2", 223 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 224 "-O2", 225 "-msse3", 226 ], 227 generated_headers: [ 228 "stable_cronet_third_party_jni_zero_generate_jni__action__testing", 229 "stable_cronet_third_party_jni_zero_system_jni__action__testing", 230 ], 231 }, 232 host: { 233 cflags: [ 234 "-DCR_SYSROOT_KEY=20230611T210420Z-2", 235 "-DNO_UNWIND_TABLES", 236 "-DUSE_AURA=1", 237 "-DUSE_OZONE=1", 238 "-DUSE_UDEV", 239 "-D_FILE_OFFSET_BITS=64", 240 "-D_FORTIFY_SOURCE=2", 241 "-D_LARGEFILE64_SOURCE", 242 "-D_LARGEFILE_SOURCE", 243 "-O2", 244 "-fno-asynchronous-unwind-tables", 245 "-fno-unwind-tables", 246 "-msse3", 247 ], 248 }, 249 }, 250} 251