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: "tot_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 "tot_cronet_libcrypto", 37 "tot_cronet_libpki", 38 "tot_cronet_libssl", 39 ], 40 host_cross_supported: false, 41 generated_headers: [ 42 "tot_cronet_base_allocator_buildflags", 43 "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags", 44 "tot_cronet_base_anchor_functions_buildflags", 45 "tot_cronet_base_android_runtime_jni_headers__action", 46 "tot_cronet_base_base_jni__action", 47 "tot_cronet_base_base_shared_preferences_jni__action", 48 "tot_cronet_base_build_date", 49 "tot_cronet_base_callback_jni__action", 50 "tot_cronet_base_cfi_buildflags", 51 "tot_cronet_base_check_version_internal_action", 52 "tot_cronet_base_clang_profiling_buildflags", 53 "tot_cronet_base_command_line_jni__action", 54 "tot_cronet_base_content_uri_utils_jni__action", 55 "tot_cronet_base_debugging_buildflags", 56 "tot_cronet_base_feature_list_buildflags", 57 "tot_cronet_base_fuzzing_buildflags", 58 "tot_cronet_base_ios_cronet_buildflags", 59 "tot_cronet_base_jank_tracker_jni__action", 60 "tot_cronet_base_library_loader_jni__action", 61 "tot_cronet_base_memory_jni__action", 62 "tot_cronet_base_metrics_jni__action", 63 "tot_cronet_base_orderfile_buildflags", 64 "tot_cronet_base_power_monitor_buildflags", 65 "tot_cronet_base_process_launcher_jni__action", 66 "tot_cronet_base_profiler_buildflags", 67 "tot_cronet_base_protected_memory_buildflags", 68 "tot_cronet_base_rust_logger_cxx_generated_gen_header", 69 "tot_cronet_base_sanitizer_buildflags", 70 "tot_cronet_base_synchronization_buildflags", 71 "tot_cronet_base_sys_utils_jni__action", 72 "tot_cronet_base_tasks_jni__action", 73 "tot_cronet_base_tracing_buildflags", 74 "tot_cronet_build_blink_buildflags", 75 "tot_cronet_build_branding_buildflags", 76 "tot_cronet_build_chromecast_buildflags", 77 "tot_cronet_build_chromeos_buildflags", 78 "tot_cronet_build_config_compiler_compiler_buildflags", 79 "tot_cronet_build_ios_buildflags", 80 "tot_cronet_build_robolectric_buildflags", 81 "tot_cronet_third_party_jni_zero_generate_jni__action", 82 "tot_cronet_third_party_jni_zero_system_jni__action", 83 "tot_cronet_third_party_metrics_proto_metrics_proto_gen_headers", 84 "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen_header", 85 ], 86 export_generated_headers: [ 87 "tot_cronet_base_allocator_buildflags", 88 "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags", 89 "tot_cronet_base_anchor_functions_buildflags", 90 "tot_cronet_base_android_runtime_jni_headers__action", 91 "tot_cronet_base_base_jni__action", 92 "tot_cronet_base_base_shared_preferences_jni__action", 93 "tot_cronet_base_build_date", 94 "tot_cronet_base_callback_jni__action", 95 "tot_cronet_base_cfi_buildflags", 96 "tot_cronet_base_check_version_internal_action", 97 "tot_cronet_base_clang_profiling_buildflags", 98 "tot_cronet_base_command_line_jni__action", 99 "tot_cronet_base_content_uri_utils_jni__action", 100 "tot_cronet_base_debugging_buildflags", 101 "tot_cronet_base_feature_list_buildflags", 102 "tot_cronet_base_fuzzing_buildflags", 103 "tot_cronet_base_ios_cronet_buildflags", 104 "tot_cronet_base_jank_tracker_jni__action", 105 "tot_cronet_base_library_loader_jni__action", 106 "tot_cronet_base_memory_jni__action", 107 "tot_cronet_base_metrics_jni__action", 108 "tot_cronet_base_orderfile_buildflags", 109 "tot_cronet_base_power_monitor_buildflags", 110 "tot_cronet_base_process_launcher_jni__action", 111 "tot_cronet_base_profiler_buildflags", 112 "tot_cronet_base_protected_memory_buildflags", 113 "tot_cronet_base_rust_logger_cxx_generated_gen_header", 114 "tot_cronet_base_sanitizer_buildflags", 115 "tot_cronet_base_synchronization_buildflags", 116 "tot_cronet_base_sys_utils_jni__action", 117 "tot_cronet_base_tasks_jni__action", 118 "tot_cronet_base_tracing_buildflags", 119 "tot_cronet_build_blink_buildflags", 120 "tot_cronet_build_branding_buildflags", 121 "tot_cronet_build_chromecast_buildflags", 122 "tot_cronet_build_chromeos_buildflags", 123 "tot_cronet_build_config_compiler_compiler_buildflags", 124 "tot_cronet_build_ios_buildflags", 125 "tot_cronet_build_robolectric_buildflags", 126 "tot_cronet_third_party_jni_zero_generate_jni__action", 127 "tot_cronet_third_party_jni_zero_system_jni__action", 128 "tot_cronet_third_party_metrics_proto_metrics_proto_gen_headers", 129 "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen_header", 130 ], 131 defaults: [ 132 "tot_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/tot/", 167 "external/cronet/tot/base/allocator/partition_allocator/src/", 168 "external/cronet/tot/buildtools/third_party/libc++/", 169 "external/cronet/tot/third_party/abseil-cpp/", 170 "external/cronet/tot/third_party/boringssl/src/include/", 171 "external/cronet/tot/third_party/libc++/src/include", 172 "external/cronet/tot/third_party/libc++abi/src/include", 173 "external/cronet/tot/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/tot/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: "tot_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 "tot_cronet_base_allocator_buildflags__testing", 231 "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing", 232 "tot_cronet_base_anchor_functions_buildflags__testing", 233 "tot_cronet_base_build_date__testing", 234 "tot_cronet_base_cfi_buildflags__testing", 235 "tot_cronet_base_check_version_internal_action__testing", 236 "tot_cronet_base_clang_profiling_buildflags__testing", 237 "tot_cronet_base_debugging_buildflags__testing", 238 "tot_cronet_base_feature_list_buildflags__testing", 239 "tot_cronet_base_fuzzing_buildflags__testing", 240 "tot_cronet_base_ios_cronet_buildflags__testing", 241 "tot_cronet_base_orderfile_buildflags__testing", 242 "tot_cronet_base_power_monitor_buildflags__testing", 243 "tot_cronet_base_profiler_buildflags__testing", 244 "tot_cronet_base_protected_memory_buildflags__testing", 245 "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header", 246 "tot_cronet_base_sanitizer_buildflags__testing", 247 "tot_cronet_base_synchronization_buildflags__testing", 248 "tot_cronet_base_tracing_buildflags__testing", 249 "tot_cronet_build_blink_buildflags__testing", 250 "tot_cronet_build_branding_buildflags__testing", 251 "tot_cronet_build_chromecast_buildflags__testing", 252 "tot_cronet_build_chromeos_buildflags__testing", 253 "tot_cronet_build_config_compiler_compiler_buildflags__testing", 254 "tot_cronet_build_ios_buildflags__testing", 255 "tot_cronet_third_party_jni_zero_generate_jni__action__testing", 256 "tot_cronet_third_party_jni_zero_system_jni__action__testing", 257 "tot_cronet_third_party_metrics_proto_metrics_proto_gen__testing_headers", 258 "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header", 259 ], 260 export_generated_headers: [ 261 "tot_cronet_base_allocator_buildflags__testing", 262 "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing", 263 "tot_cronet_base_anchor_functions_buildflags__testing", 264 "tot_cronet_base_build_date__testing", 265 "tot_cronet_base_cfi_buildflags__testing", 266 "tot_cronet_base_check_version_internal_action__testing", 267 "tot_cronet_base_clang_profiling_buildflags__testing", 268 "tot_cronet_base_debugging_buildflags__testing", 269 "tot_cronet_base_feature_list_buildflags__testing", 270 "tot_cronet_base_fuzzing_buildflags__testing", 271 "tot_cronet_base_ios_cronet_buildflags__testing", 272 "tot_cronet_base_orderfile_buildflags__testing", 273 "tot_cronet_base_power_monitor_buildflags__testing", 274 "tot_cronet_base_profiler_buildflags__testing", 275 "tot_cronet_base_protected_memory_buildflags__testing", 276 "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header", 277 "tot_cronet_base_sanitizer_buildflags__testing", 278 "tot_cronet_base_synchronization_buildflags__testing", 279 "tot_cronet_base_tracing_buildflags__testing", 280 "tot_cronet_build_blink_buildflags__testing", 281 "tot_cronet_build_branding_buildflags__testing", 282 "tot_cronet_build_chromecast_buildflags__testing", 283 "tot_cronet_build_chromeos_buildflags__testing", 284 "tot_cronet_build_config_compiler_compiler_buildflags__testing", 285 "tot_cronet_build_ios_buildflags__testing", 286 "tot_cronet_third_party_jni_zero_generate_jni__action__testing", 287 "tot_cronet_third_party_jni_zero_system_jni__action__testing", 288 "tot_cronet_third_party_metrics_proto_metrics_proto_gen__testing_headers", 289 "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header", 290 ], 291 defaults: [ 292 "tot_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/tot/", 327 "external/cronet/tot/base/allocator/partition_allocator/src/", 328 "external/cronet/tot/buildtools/third_party/libc++/", 329 "external/cronet/tot/third_party/abseil-cpp/", 330 "external/cronet/tot/third_party/boringssl/src/include/", 331 "external/cronet/tot/third_party/libc++/src/include", 332 "external/cronet/tot/third_party/libc++abi/src/include", 333 "external/cronet/tot/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/tot/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