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: //components/metrics:library_support 25cc_library_static { 26 name: "stable_cronet_components_metrics_library_support", 27 srcs: [ 28 "histogram_encoder.cc", 29 "library_support/histogram_manager.cc", 30 ], 31 shared_libs: [ 32 "libandroid", 33 "liblog", 34 "libprotobuf-cpp-lite", 35 "libz", 36 "stable_cronet_libcrypto", 37 "stable_cronet_libpki", 38 "stable_cronet_libssl", 39 ], 40 host_cross_supported: false, 41 generated_headers: [ 42 "stable_cronet_base_allocator_buildflags", 43 "stable_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags", 44 "stable_cronet_base_anchor_functions_buildflags", 45 "stable_cronet_base_android_runtime_jni_headers__action", 46 "stable_cronet_base_base_jni__action", 47 "stable_cronet_base_base_shared_preferences_jni__action", 48 "stable_cronet_base_build_date", 49 "stable_cronet_base_callback_jni__action", 50 "stable_cronet_base_cfi_buildflags", 51 "stable_cronet_base_check_version_internal_action", 52 "stable_cronet_base_clang_profiling_buildflags", 53 "stable_cronet_base_command_line_jni__action", 54 "stable_cronet_base_content_uri_utils_jni__action", 55 "stable_cronet_base_debugging_buildflags", 56 "stable_cronet_base_feature_list_buildflags", 57 "stable_cronet_base_fuzzing_buildflags", 58 "stable_cronet_base_ios_cronet_buildflags", 59 "stable_cronet_base_jank_tracker_jni__action", 60 "stable_cronet_base_library_loader_jni__action", 61 "stable_cronet_base_memory_jni__action", 62 "stable_cronet_base_metrics_jni__action", 63 "stable_cronet_base_orderfile_buildflags", 64 "stable_cronet_base_power_monitor_buildflags", 65 "stable_cronet_base_process_launcher_jni__action", 66 "stable_cronet_base_profiler_buildflags", 67 "stable_cronet_base_protected_memory_buildflags", 68 "stable_cronet_base_rust_logger_cxx_generated_gen_header", 69 "stable_cronet_base_sanitizer_buildflags", 70 "stable_cronet_base_synchronization_buildflags", 71 "stable_cronet_base_sys_utils_jni__action", 72 "stable_cronet_base_tasks_jni__action", 73 "stable_cronet_base_tracing_buildflags", 74 "stable_cronet_build_blink_buildflags", 75 "stable_cronet_build_branding_buildflags", 76 "stable_cronet_build_chromecast_buildflags", 77 "stable_cronet_build_chromeos_buildflags", 78 "stable_cronet_build_config_compiler_compiler_buildflags", 79 "stable_cronet_build_ios_buildflags", 80 "stable_cronet_build_robolectric_buildflags", 81 "stable_cronet_third_party_jni_zero_generate_jni__action", 82 "stable_cronet_third_party_jni_zero_system_jni__action", 83 "stable_cronet_third_party_metrics_proto_metrics_proto_gen_headers", 84 "stable_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen_header", 85 ], 86 export_generated_headers: [ 87 "stable_cronet_base_allocator_buildflags", 88 "stable_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags", 89 "stable_cronet_base_anchor_functions_buildflags", 90 "stable_cronet_base_android_runtime_jni_headers__action", 91 "stable_cronet_base_base_jni__action", 92 "stable_cronet_base_base_shared_preferences_jni__action", 93 "stable_cronet_base_build_date", 94 "stable_cronet_base_callback_jni__action", 95 "stable_cronet_base_cfi_buildflags", 96 "stable_cronet_base_check_version_internal_action", 97 "stable_cronet_base_clang_profiling_buildflags", 98 "stable_cronet_base_command_line_jni__action", 99 "stable_cronet_base_content_uri_utils_jni__action", 100 "stable_cronet_base_debugging_buildflags", 101 "stable_cronet_base_feature_list_buildflags", 102 "stable_cronet_base_fuzzing_buildflags", 103 "stable_cronet_base_ios_cronet_buildflags", 104 "stable_cronet_base_jank_tracker_jni__action", 105 "stable_cronet_base_library_loader_jni__action", 106 "stable_cronet_base_memory_jni__action", 107 "stable_cronet_base_metrics_jni__action", 108 "stable_cronet_base_orderfile_buildflags", 109 "stable_cronet_base_power_monitor_buildflags", 110 "stable_cronet_base_process_launcher_jni__action", 111 "stable_cronet_base_profiler_buildflags", 112 "stable_cronet_base_protected_memory_buildflags", 113 "stable_cronet_base_rust_logger_cxx_generated_gen_header", 114 "stable_cronet_base_sanitizer_buildflags", 115 "stable_cronet_base_synchronization_buildflags", 116 "stable_cronet_base_sys_utils_jni__action", 117 "stable_cronet_base_tasks_jni__action", 118 "stable_cronet_base_tracing_buildflags", 119 "stable_cronet_build_blink_buildflags", 120 "stable_cronet_build_branding_buildflags", 121 "stable_cronet_build_chromecast_buildflags", 122 "stable_cronet_build_chromeos_buildflags", 123 "stable_cronet_build_config_compiler_compiler_buildflags", 124 "stable_cronet_build_ios_buildflags", 125 "stable_cronet_build_robolectric_buildflags", 126 "stable_cronet_third_party_jni_zero_generate_jni__action", 127 "stable_cronet_third_party_jni_zero_system_jni__action", 128 "stable_cronet_third_party_metrics_proto_metrics_proto_gen_headers", 129 "stable_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen_header", 130 ], 131 defaults: [ 132 "stable_cronet_cc_defaults", 133 ], 134 cflags: [ 135 "-DANDROID", 136 "-DANDROID_NDK_VERSION_ROLL=r27_1", 137 "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", 138 "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"", 139 "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", 140 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 141 "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0", 142 "-DGOOGLE_PROTOBUF_NO_RTTI", 143 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER", 144 "-DHAVE_PTHREAD", 145 "-DHAVE_SYS_UIO_H", 146 "-DNDEBUG", 147 "-DNVALGRIND", 148 "-DOFFICIAL_BUILD", 149 "-DTMP_REBUILD_HACK", 150 "-D_GNU_SOURCE", 151 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 152 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 153 "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", 154 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 155 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 156 "-D__STDC_CONSTANT_MACROS", 157 "-D__STDC_FORMAT_MACROS", 158 "-fdata-sections", 159 "-ffunction-sections", 160 "-fstack-protector", 161 "-fvisibility-inlines-hidden", 162 "-fvisibility=hidden", 163 "-g1", 164 ], 165 include_dirs: [ 166 "external/cronet/stable/", 167 "external/cronet/stable/base/allocator/partition_allocator/src/", 168 "external/cronet/stable/buildtools/third_party/libc++/", 169 "external/cronet/stable/third_party/abseil-cpp/", 170 "external/cronet/stable/third_party/boringssl/src/include/", 171 "external/cronet/stable/third_party/libc++/src/include", 172 "external/cronet/stable/third_party/libc++abi/src/include", 173 "external/cronet/stable/third_party/protobuf/src/", 174 ], 175 cpp_std: "c++20", 176 ldflags: [ 177 "-Wl,--as-needed", 178 "-Wl,--gc-sections", 179 "-Wl,--icf=all", 180 "-Wl,--script,external/cronet/stable/base/android/library_loader/anchor_functions.lds", 181 ], 182 visibility: [ 183 "//external/cronet:__subpackages__", 184 ], 185 target: { 186 android_arm: { 187 cflags: [ 188 "-D_FORTIFY_SOURCE=2", 189 ], 190 }, 191 android_arm64: { 192 cflags: [ 193 "-D_FORTIFY_SOURCE=2", 194 "-D__ARM_NEON__=1", 195 "-O2", 196 "-mno-outline", 197 ], 198 }, 199 android_x86: { 200 cflags: [ 201 "-D_FORTIFY_SOURCE=2", 202 "-msse3", 203 ], 204 }, 205 android_x86_64: { 206 cflags: [ 207 "-D_FORTIFY_SOURCE=2", 208 "-O2", 209 "-msse3", 210 ], 211 }, 212 }, 213} 214 215// GN: //components/metrics:library_support__testing 216cc_library_static { 217 name: "stable_cronet_components_metrics_library_support__testing", 218 srcs: [ 219 "histogram_encoder.cc", 220 "library_support/histogram_manager.cc", 221 ], 222 shared_libs: [ 223 "libandroid", 224 "liblog", 225 "libprotobuf-cpp-lite", 226 "libz", 227 ], 228 host_cross_supported: false, 229 generated_headers: [ 230 "stable_cronet_base_allocator_buildflags__testing", 231 "stable_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing", 232 "stable_cronet_base_anchor_functions_buildflags__testing", 233 "stable_cronet_base_build_date__testing", 234 "stable_cronet_base_cfi_buildflags__testing", 235 "stable_cronet_base_check_version_internal_action__testing", 236 "stable_cronet_base_clang_profiling_buildflags__testing", 237 "stable_cronet_base_debugging_buildflags__testing", 238 "stable_cronet_base_feature_list_buildflags__testing", 239 "stable_cronet_base_fuzzing_buildflags__testing", 240 "stable_cronet_base_ios_cronet_buildflags__testing", 241 "stable_cronet_base_orderfile_buildflags__testing", 242 "stable_cronet_base_power_monitor_buildflags__testing", 243 "stable_cronet_base_profiler_buildflags__testing", 244 "stable_cronet_base_protected_memory_buildflags__testing", 245 "stable_cronet_base_rust_logger_cxx_generated_gen__testing_header", 246 "stable_cronet_base_sanitizer_buildflags__testing", 247 "stable_cronet_base_synchronization_buildflags__testing", 248 "stable_cronet_base_tracing_buildflags__testing", 249 "stable_cronet_build_blink_buildflags__testing", 250 "stable_cronet_build_branding_buildflags__testing", 251 "stable_cronet_build_chromecast_buildflags__testing", 252 "stable_cronet_build_chromeos_buildflags__testing", 253 "stable_cronet_build_config_compiler_compiler_buildflags__testing", 254 "stable_cronet_build_ios_buildflags__testing", 255 "stable_cronet_third_party_jni_zero_generate_jni__action__testing", 256 "stable_cronet_third_party_jni_zero_system_jni__action__testing", 257 "stable_cronet_third_party_metrics_proto_metrics_proto_gen__testing_headers", 258 "stable_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header", 259 ], 260 export_generated_headers: [ 261 "stable_cronet_base_allocator_buildflags__testing", 262 "stable_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing", 263 "stable_cronet_base_anchor_functions_buildflags__testing", 264 "stable_cronet_base_build_date__testing", 265 "stable_cronet_base_cfi_buildflags__testing", 266 "stable_cronet_base_check_version_internal_action__testing", 267 "stable_cronet_base_clang_profiling_buildflags__testing", 268 "stable_cronet_base_debugging_buildflags__testing", 269 "stable_cronet_base_feature_list_buildflags__testing", 270 "stable_cronet_base_fuzzing_buildflags__testing", 271 "stable_cronet_base_ios_cronet_buildflags__testing", 272 "stable_cronet_base_orderfile_buildflags__testing", 273 "stable_cronet_base_power_monitor_buildflags__testing", 274 "stable_cronet_base_profiler_buildflags__testing", 275 "stable_cronet_base_protected_memory_buildflags__testing", 276 "stable_cronet_base_rust_logger_cxx_generated_gen__testing_header", 277 "stable_cronet_base_sanitizer_buildflags__testing", 278 "stable_cronet_base_synchronization_buildflags__testing", 279 "stable_cronet_base_tracing_buildflags__testing", 280 "stable_cronet_build_blink_buildflags__testing", 281 "stable_cronet_build_branding_buildflags__testing", 282 "stable_cronet_build_chromecast_buildflags__testing", 283 "stable_cronet_build_chromeos_buildflags__testing", 284 "stable_cronet_build_config_compiler_compiler_buildflags__testing", 285 "stable_cronet_build_ios_buildflags__testing", 286 "stable_cronet_third_party_jni_zero_generate_jni__action__testing", 287 "stable_cronet_third_party_jni_zero_system_jni__action__testing", 288 "stable_cronet_third_party_metrics_proto_metrics_proto_gen__testing_headers", 289 "stable_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header", 290 ], 291 defaults: [ 292 "stable_cronet_cc_defaults", 293 ], 294 cflags: [ 295 "-DANDROID", 296 "-DANDROID_NDK_VERSION_ROLL=r27_1", 297 "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", 298 "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"", 299 "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", 300 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 301 "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0", 302 "-DGOOGLE_PROTOBUF_NO_RTTI", 303 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER", 304 "-DHAVE_PTHREAD", 305 "-DHAVE_SYS_UIO_H", 306 "-DNDEBUG", 307 "-DNVALGRIND", 308 "-DOFFICIAL_BUILD", 309 "-DTMP_REBUILD_HACK", 310 "-D_GNU_SOURCE", 311 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 312 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 313 "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", 314 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 315 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 316 "-D__STDC_CONSTANT_MACROS", 317 "-D__STDC_FORMAT_MACROS", 318 "-fdata-sections", 319 "-ffunction-sections", 320 "-fstack-protector", 321 "-fvisibility-inlines-hidden", 322 "-fvisibility=hidden", 323 "-g1", 324 ], 325 include_dirs: [ 326 "external/cronet/stable/", 327 "external/cronet/stable/base/allocator/partition_allocator/src/", 328 "external/cronet/stable/buildtools/third_party/libc++/", 329 "external/cronet/stable/third_party/abseil-cpp/", 330 "external/cronet/stable/third_party/boringssl/src/include/", 331 "external/cronet/stable/third_party/libc++/src/include", 332 "external/cronet/stable/third_party/libc++abi/src/include", 333 "external/cronet/stable/third_party/protobuf/src/", 334 ], 335 cpp_std: "c++20", 336 ldflags: [ 337 "-Wl,--as-needed", 338 "-Wl,--gc-sections", 339 "-Wl,--icf=all", 340 "-Wl,--script,external/cronet/stable/base/android/library_loader/anchor_functions.lds", 341 ], 342 visibility: [ 343 "//external/cronet:__subpackages__", 344 ], 345 target: { 346 android_arm: { 347 cflags: [ 348 "-D_FORTIFY_SOURCE=2", 349 ], 350 }, 351 android_arm64: { 352 cflags: [ 353 "-D_FORTIFY_SOURCE=2", 354 "-D__ARM_NEON__=1", 355 "-O2", 356 "-mno-outline", 357 ], 358 }, 359 android_x86: { 360 cflags: [ 361 "-D_FORTIFY_SOURCE=2", 362 "-msse3", 363 ], 364 }, 365 android_x86_64: { 366 cflags: [ 367 "-D_FORTIFY_SOURCE=2", 368 "-O2", 369 "-msse3", 370 ], 371 }, 372 }, 373} 374