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: //crypto:crypto 25cc_library_static { 26 name: "tot_cronet_crypto_crypto", 27 srcs: [ 28 "aead.cc", 29 "aes_cbc.cc", 30 "aes_ctr.cc", 31 "ec_private_key.cc", 32 "ec_signature_creator.cc", 33 "ec_signature_creator_impl.cc", 34 "encryptor.cc", 35 "features.cc", 36 "hash.cc", 37 "hkdf.cc", 38 "hmac.cc", 39 "kdf.cc", 40 "openssl_util.cc", 41 "process_bound_string.cc", 42 "random.cc", 43 "rsa_private_key.cc", 44 "secure_hash.cc", 45 "secure_util.cc", 46 "sha2.cc", 47 "signature_creator.cc", 48 "signature_verifier.cc", 49 "subtle_passkey.cc", 50 "symmetric_key.cc", 51 "unexportable_key.cc", 52 "unexportable_key_metrics.cc", 53 "unexportable_key_software_unsecure.cc", 54 "user_verifying_key.cc", 55 ], 56 shared_libs: [ 57 "libandroid", 58 "liblog", 59 "libz", 60 "tot_cronet_libcrypto", 61 "tot_cronet_libpki", 62 "tot_cronet_libssl", 63 ], 64 host_cross_supported: false, 65 generated_headers: [ 66 "tot_cronet_base_allocator_buildflags", 67 "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags", 68 "tot_cronet_base_anchor_functions_buildflags", 69 "tot_cronet_base_android_runtime_jni_headers__action", 70 "tot_cronet_base_base_jni__action", 71 "tot_cronet_base_base_shared_preferences_jni__action", 72 "tot_cronet_base_build_date", 73 "tot_cronet_base_callback_jni__action", 74 "tot_cronet_base_cfi_buildflags", 75 "tot_cronet_base_check_version_internal_action", 76 "tot_cronet_base_clang_profiling_buildflags", 77 "tot_cronet_base_command_line_jni__action", 78 "tot_cronet_base_content_uri_utils_jni__action", 79 "tot_cronet_base_debugging_buildflags", 80 "tot_cronet_base_feature_list_buildflags", 81 "tot_cronet_base_fuzzing_buildflags", 82 "tot_cronet_base_ios_cronet_buildflags", 83 "tot_cronet_base_jank_tracker_jni__action", 84 "tot_cronet_base_library_loader_jni__action", 85 "tot_cronet_base_memory_jni__action", 86 "tot_cronet_base_metrics_jni__action", 87 "tot_cronet_base_orderfile_buildflags", 88 "tot_cronet_base_power_monitor_buildflags", 89 "tot_cronet_base_process_launcher_jni__action", 90 "tot_cronet_base_profiler_buildflags", 91 "tot_cronet_base_protected_memory_buildflags", 92 "tot_cronet_base_rust_logger_cxx_generated_gen_header", 93 "tot_cronet_base_sanitizer_buildflags", 94 "tot_cronet_base_synchronization_buildflags", 95 "tot_cronet_base_sys_utils_jni__action", 96 "tot_cronet_base_tasks_jni__action", 97 "tot_cronet_base_tracing_buildflags", 98 "tot_cronet_build_blink_buildflags", 99 "tot_cronet_build_branding_buildflags", 100 "tot_cronet_build_chromecast_buildflags", 101 "tot_cronet_build_chromeos_buildflags", 102 "tot_cronet_build_config_compiler_compiler_buildflags", 103 "tot_cronet_build_ios_buildflags", 104 "tot_cronet_build_robolectric_buildflags", 105 "tot_cronet_crypto_buildflags", 106 "tot_cronet_third_party_jni_zero_generate_jni__action", 107 "tot_cronet_third_party_jni_zero_system_jni__action", 108 "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen_header", 109 ], 110 export_generated_headers: [ 111 "tot_cronet_base_allocator_buildflags", 112 "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags", 113 "tot_cronet_base_anchor_functions_buildflags", 114 "tot_cronet_base_android_runtime_jni_headers__action", 115 "tot_cronet_base_base_jni__action", 116 "tot_cronet_base_base_shared_preferences_jni__action", 117 "tot_cronet_base_build_date", 118 "tot_cronet_base_callback_jni__action", 119 "tot_cronet_base_cfi_buildflags", 120 "tot_cronet_base_check_version_internal_action", 121 "tot_cronet_base_clang_profiling_buildflags", 122 "tot_cronet_base_command_line_jni__action", 123 "tot_cronet_base_content_uri_utils_jni__action", 124 "tot_cronet_base_debugging_buildflags", 125 "tot_cronet_base_feature_list_buildflags", 126 "tot_cronet_base_fuzzing_buildflags", 127 "tot_cronet_base_ios_cronet_buildflags", 128 "tot_cronet_base_jank_tracker_jni__action", 129 "tot_cronet_base_library_loader_jni__action", 130 "tot_cronet_base_memory_jni__action", 131 "tot_cronet_base_metrics_jni__action", 132 "tot_cronet_base_orderfile_buildflags", 133 "tot_cronet_base_power_monitor_buildflags", 134 "tot_cronet_base_process_launcher_jni__action", 135 "tot_cronet_base_profiler_buildflags", 136 "tot_cronet_base_protected_memory_buildflags", 137 "tot_cronet_base_rust_logger_cxx_generated_gen_header", 138 "tot_cronet_base_sanitizer_buildflags", 139 "tot_cronet_base_synchronization_buildflags", 140 "tot_cronet_base_sys_utils_jni__action", 141 "tot_cronet_base_tasks_jni__action", 142 "tot_cronet_base_tracing_buildflags", 143 "tot_cronet_build_blink_buildflags", 144 "tot_cronet_build_branding_buildflags", 145 "tot_cronet_build_chromecast_buildflags", 146 "tot_cronet_build_chromeos_buildflags", 147 "tot_cronet_build_config_compiler_compiler_buildflags", 148 "tot_cronet_build_ios_buildflags", 149 "tot_cronet_build_robolectric_buildflags", 150 "tot_cronet_crypto_buildflags", 151 "tot_cronet_third_party_jni_zero_generate_jni__action", 152 "tot_cronet_third_party_jni_zero_system_jni__action", 153 "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen_header", 154 ], 155 defaults: [ 156 "tot_cronet_cc_defaults", 157 ], 158 cflags: [ 159 "-DANDROID", 160 "-DANDROID_NDK_VERSION_ROLL=r27_1", 161 "-DCRYPTO_IMPLEMENTATION", 162 "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", 163 "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"", 164 "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", 165 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 166 "-DHAVE_SYS_UIO_H", 167 "-DNDEBUG", 168 "-DNVALGRIND", 169 "-DOFFICIAL_BUILD", 170 "-DTMP_REBUILD_HACK", 171 "-D_GNU_SOURCE", 172 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 173 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 174 "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", 175 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 176 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 177 "-D__STDC_CONSTANT_MACROS", 178 "-D__STDC_FORMAT_MACROS", 179 "-fdata-sections", 180 "-ffunction-sections", 181 "-fstack-protector", 182 "-fvisibility-inlines-hidden", 183 "-fvisibility=hidden", 184 "-g1", 185 ], 186 include_dirs: [ 187 "external/cronet/tot/", 188 "external/cronet/tot/base/allocator/partition_allocator/src/", 189 "external/cronet/tot/buildtools/third_party/libc++/", 190 "external/cronet/tot/third_party/abseil-cpp/", 191 "external/cronet/tot/third_party/boringssl/src/include/", 192 "external/cronet/tot/third_party/libc++/src/include", 193 "external/cronet/tot/third_party/libc++abi/src/include", 194 ], 195 cpp_std: "c++20", 196 ldflags: [ 197 "-Wl,--as-needed", 198 "-Wl,--gc-sections", 199 "-Wl,--icf=all", 200 "-Wl,--script,external/cronet/tot/base/android/library_loader/anchor_functions.lds", 201 ], 202 visibility: [ 203 "//external/cronet:__subpackages__", 204 ], 205 target: { 206 android_arm: { 207 cflags: [ 208 "-D_FORTIFY_SOURCE=2", 209 ], 210 }, 211 android_arm64: { 212 cflags: [ 213 "-D_FORTIFY_SOURCE=2", 214 "-D__ARM_NEON__=1", 215 "-O2", 216 "-mno-outline", 217 ], 218 }, 219 android_x86: { 220 cflags: [ 221 "-D_FORTIFY_SOURCE=2", 222 "-msse3", 223 ], 224 }, 225 android_x86_64: { 226 cflags: [ 227 "-D_FORTIFY_SOURCE=2", 228 "-O2", 229 "-msse3", 230 ], 231 }, 232 }, 233} 234 235// GN: //crypto:crypto__testing 236cc_library_static { 237 name: "tot_cronet_crypto_crypto__testing", 238 srcs: [ 239 "aead.cc", 240 "aes_cbc.cc", 241 "aes_ctr.cc", 242 "ec_private_key.cc", 243 "ec_signature_creator.cc", 244 "ec_signature_creator_impl.cc", 245 "encryptor.cc", 246 "features.cc", 247 "hash.cc", 248 "hkdf.cc", 249 "hmac.cc", 250 "kdf.cc", 251 "openssl_util.cc", 252 "process_bound_string.cc", 253 "random.cc", 254 "rsa_private_key.cc", 255 "secure_hash.cc", 256 "secure_util.cc", 257 "sha2.cc", 258 "signature_creator.cc", 259 "signature_verifier.cc", 260 "subtle_passkey.cc", 261 "symmetric_key.cc", 262 "unexportable_key.cc", 263 "unexportable_key_metrics.cc", 264 "unexportable_key_software_unsecure.cc", 265 "user_verifying_key.cc", 266 ], 267 shared_libs: [ 268 "libz", 269 ], 270 host_supported: true, 271 host_cross_supported: false, 272 generated_headers: [ 273 "tot_cronet_base_allocator_buildflags__testing", 274 "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing", 275 "tot_cronet_base_anchor_functions_buildflags__testing", 276 "tot_cronet_base_build_date__testing", 277 "tot_cronet_base_cfi_buildflags__testing", 278 "tot_cronet_base_check_version_internal_action__testing", 279 "tot_cronet_base_clang_profiling_buildflags__testing", 280 "tot_cronet_base_debugging_buildflags__testing", 281 "tot_cronet_base_feature_list_buildflags__testing", 282 "tot_cronet_base_fuzzing_buildflags__testing", 283 "tot_cronet_base_ios_cronet_buildflags__testing", 284 "tot_cronet_base_orderfile_buildflags__testing", 285 "tot_cronet_base_power_monitor_buildflags__testing", 286 "tot_cronet_base_profiler_buildflags__testing", 287 "tot_cronet_base_protected_memory_buildflags__testing", 288 "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header", 289 "tot_cronet_base_sanitizer_buildflags__testing", 290 "tot_cronet_base_synchronization_buildflags__testing", 291 "tot_cronet_base_tracing_buildflags__testing", 292 "tot_cronet_build_blink_buildflags__testing", 293 "tot_cronet_build_branding_buildflags__testing", 294 "tot_cronet_build_chromecast_buildflags__testing", 295 "tot_cronet_build_chromeos_buildflags__testing", 296 "tot_cronet_build_config_compiler_compiler_buildflags__testing", 297 "tot_cronet_build_ios_buildflags__testing", 298 "tot_cronet_crypto_buildflags__testing", 299 "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header", 300 ], 301 export_generated_headers: [ 302 "tot_cronet_base_allocator_buildflags__testing", 303 "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing", 304 "tot_cronet_base_anchor_functions_buildflags__testing", 305 "tot_cronet_base_build_date__testing", 306 "tot_cronet_base_cfi_buildflags__testing", 307 "tot_cronet_base_check_version_internal_action__testing", 308 "tot_cronet_base_clang_profiling_buildflags__testing", 309 "tot_cronet_base_debugging_buildflags__testing", 310 "tot_cronet_base_feature_list_buildflags__testing", 311 "tot_cronet_base_fuzzing_buildflags__testing", 312 "tot_cronet_base_ios_cronet_buildflags__testing", 313 "tot_cronet_base_orderfile_buildflags__testing", 314 "tot_cronet_base_power_monitor_buildflags__testing", 315 "tot_cronet_base_profiler_buildflags__testing", 316 "tot_cronet_base_protected_memory_buildflags__testing", 317 "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header", 318 "tot_cronet_base_sanitizer_buildflags__testing", 319 "tot_cronet_base_synchronization_buildflags__testing", 320 "tot_cronet_base_tracing_buildflags__testing", 321 "tot_cronet_build_blink_buildflags__testing", 322 "tot_cronet_build_branding_buildflags__testing", 323 "tot_cronet_build_chromecast_buildflags__testing", 324 "tot_cronet_build_chromeos_buildflags__testing", 325 "tot_cronet_build_config_compiler_compiler_buildflags__testing", 326 "tot_cronet_build_ios_buildflags__testing", 327 "tot_cronet_crypto_buildflags__testing", 328 "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header", 329 ], 330 defaults: [ 331 "tot_cronet_cc_defaults", 332 ], 333 cflags: [ 334 "-DCRYPTO_IMPLEMENTATION", 335 "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", 336 "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"", 337 "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", 338 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 339 "-DNDEBUG", 340 "-DNVALGRIND", 341 "-DOFFICIAL_BUILD", 342 "-DTMP_REBUILD_HACK", 343 "-D_GNU_SOURCE", 344 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 345 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 346 "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", 347 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 348 "-D__STDC_CONSTANT_MACROS", 349 "-D__STDC_FORMAT_MACROS", 350 "-fdata-sections", 351 "-ffunction-sections", 352 "-fstack-protector", 353 "-fvisibility-inlines-hidden", 354 "-fvisibility=hidden", 355 "-g1", 356 ], 357 include_dirs: [ 358 "external/cronet/tot/", 359 "external/cronet/tot/base/allocator/partition_allocator/src/", 360 "external/cronet/tot/buildtools/third_party/libc++/", 361 "external/cronet/tot/third_party/abseil-cpp/", 362 "external/cronet/tot/third_party/boringssl/src/include/", 363 "external/cronet/tot/third_party/libc++/src/include", 364 "external/cronet/tot/third_party/libc++abi/src/include", 365 ], 366 cpp_std: "c++20", 367 ldflags: [ 368 "-Wl,--as-needed", 369 "-Wl,--gc-sections", 370 "-Wl,--icf=all", 371 "-Wl,--script,external/cronet/tot/base/android/library_loader/anchor_functions.lds", 372 ], 373 visibility: [ 374 "//external/cronet:__subpackages__", 375 ], 376 target: { 377 android: { 378 shared_libs: [ 379 "libandroid", 380 "liblog", 381 ], 382 }, 383 android_arm: { 384 shared_libs: [ 385 "liblog", 386 ], 387 cflags: [ 388 "-DANDROID", 389 "-DANDROID_NDK_VERSION_ROLL=r27_1", 390 "-DHAVE_SYS_UIO_H", 391 "-D_FORTIFY_SOURCE=2", 392 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 393 ], 394 generated_headers: [ 395 "tot_cronet_third_party_jni_zero_generate_jni__action__testing", 396 "tot_cronet_third_party_jni_zero_system_jni__action__testing", 397 ], 398 }, 399 android_arm64: { 400 shared_libs: [ 401 "liblog", 402 ], 403 cflags: [ 404 "-DANDROID", 405 "-DANDROID_NDK_VERSION_ROLL=r27_1", 406 "-DHAVE_SYS_UIO_H", 407 "-D_FORTIFY_SOURCE=2", 408 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 409 "-D__ARM_NEON__=1", 410 "-O2", 411 "-mno-outline", 412 ], 413 generated_headers: [ 414 "tot_cronet_third_party_jni_zero_generate_jni__action__testing", 415 "tot_cronet_third_party_jni_zero_system_jni__action__testing", 416 ], 417 }, 418 android_riscv64: { 419 shared_libs: [ 420 "liblog", 421 ], 422 cflags: [ 423 "-DANDROID", 424 "-DANDROID_NDK_VERSION_ROLL=r27_1", 425 "-DHAVE_SYS_UIO_H", 426 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 427 ], 428 generated_headers: [ 429 "tot_cronet_third_party_jni_zero_generate_jni__action__testing", 430 "tot_cronet_third_party_jni_zero_system_jni__action__testing", 431 ], 432 }, 433 android_x86: { 434 shared_libs: [ 435 "liblog", 436 ], 437 cflags: [ 438 "-DANDROID", 439 "-DANDROID_NDK_VERSION_ROLL=r27_1", 440 "-DHAVE_SYS_UIO_H", 441 "-D_FORTIFY_SOURCE=2", 442 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 443 "-msse3", 444 ], 445 generated_headers: [ 446 "tot_cronet_third_party_jni_zero_generate_jni__action__testing", 447 "tot_cronet_third_party_jni_zero_system_jni__action__testing", 448 ], 449 }, 450 android_x86_64: { 451 shared_libs: [ 452 "liblog", 453 ], 454 cflags: [ 455 "-DANDROID", 456 "-DANDROID_NDK_VERSION_ROLL=r27_1", 457 "-DHAVE_SYS_UIO_H", 458 "-D_FORTIFY_SOURCE=2", 459 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 460 "-O2", 461 "-msse3", 462 ], 463 generated_headers: [ 464 "tot_cronet_third_party_jni_zero_generate_jni__action__testing", 465 "tot_cronet_third_party_jni_zero_system_jni__action__testing", 466 ], 467 }, 468 host: { 469 cflags: [ 470 "-DCR_SYSROOT_KEY=20230611T210420Z-2", 471 "-DNO_UNWIND_TABLES", 472 "-DUSE_AURA=1", 473 "-DUSE_OZONE=1", 474 "-DUSE_UDEV", 475 "-D_FILE_OFFSET_BITS=64", 476 "-D_FORTIFY_SOURCE=2", 477 "-D_LARGEFILE64_SOURCE", 478 "-D_LARGEFILE_SOURCE", 479 "-O2", 480 "-fno-asynchronous-unwind-tables", 481 "-fno-unwind-tables", 482 "-msse3", 483 ], 484 }, 485 }, 486} 487 488// GN: //crypto:test_support__testing 489cc_library_static { 490 name: "tot_cronet_crypto_test_support__testing", 491 srcs: [ 492 "scoped_fake_user_verifying_key_provider.cc", 493 "scoped_mock_unexportable_key_provider.cc", 494 ], 495 shared_libs: [ 496 "libandroid", 497 "liblog", 498 "libz", 499 ], 500 host_cross_supported: false, 501 generated_headers: [ 502 "tot_cronet_base_allocator_buildflags__testing", 503 "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing", 504 "tot_cronet_base_anchor_functions_buildflags__testing", 505 "tot_cronet_base_build_date__testing", 506 "tot_cronet_base_cfi_buildflags__testing", 507 "tot_cronet_base_check_version_internal_action__testing", 508 "tot_cronet_base_clang_profiling_buildflags__testing", 509 "tot_cronet_base_debugging_buildflags__testing", 510 "tot_cronet_base_feature_list_buildflags__testing", 511 "tot_cronet_base_fuzzing_buildflags__testing", 512 "tot_cronet_base_ios_cronet_buildflags__testing", 513 "tot_cronet_base_orderfile_buildflags__testing", 514 "tot_cronet_base_power_monitor_buildflags__testing", 515 "tot_cronet_base_profiler_buildflags__testing", 516 "tot_cronet_base_protected_memory_buildflags__testing", 517 "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header", 518 "tot_cronet_base_sanitizer_buildflags__testing", 519 "tot_cronet_base_synchronization_buildflags__testing", 520 "tot_cronet_base_tracing_buildflags__testing", 521 "tot_cronet_build_blink_buildflags__testing", 522 "tot_cronet_build_branding_buildflags__testing", 523 "tot_cronet_build_chromecast_buildflags__testing", 524 "tot_cronet_build_chromeos_buildflags__testing", 525 "tot_cronet_build_config_compiler_compiler_buildflags__testing", 526 "tot_cronet_build_ios_buildflags__testing", 527 "tot_cronet_crypto_buildflags__testing", 528 "tot_cronet_third_party_jni_zero_generate_jni__action__testing", 529 "tot_cronet_third_party_jni_zero_system_jni__action__testing", 530 "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header", 531 ], 532 export_generated_headers: [ 533 "tot_cronet_base_allocator_buildflags__testing", 534 "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing", 535 "tot_cronet_base_anchor_functions_buildflags__testing", 536 "tot_cronet_base_build_date__testing", 537 "tot_cronet_base_cfi_buildflags__testing", 538 "tot_cronet_base_check_version_internal_action__testing", 539 "tot_cronet_base_clang_profiling_buildflags__testing", 540 "tot_cronet_base_debugging_buildflags__testing", 541 "tot_cronet_base_feature_list_buildflags__testing", 542 "tot_cronet_base_fuzzing_buildflags__testing", 543 "tot_cronet_base_ios_cronet_buildflags__testing", 544 "tot_cronet_base_orderfile_buildflags__testing", 545 "tot_cronet_base_power_monitor_buildflags__testing", 546 "tot_cronet_base_profiler_buildflags__testing", 547 "tot_cronet_base_protected_memory_buildflags__testing", 548 "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header", 549 "tot_cronet_base_sanitizer_buildflags__testing", 550 "tot_cronet_base_synchronization_buildflags__testing", 551 "tot_cronet_base_tracing_buildflags__testing", 552 "tot_cronet_build_blink_buildflags__testing", 553 "tot_cronet_build_branding_buildflags__testing", 554 "tot_cronet_build_chromecast_buildflags__testing", 555 "tot_cronet_build_chromeos_buildflags__testing", 556 "tot_cronet_build_config_compiler_compiler_buildflags__testing", 557 "tot_cronet_build_ios_buildflags__testing", 558 "tot_cronet_crypto_buildflags__testing", 559 "tot_cronet_third_party_jni_zero_generate_jni__action__testing", 560 "tot_cronet_third_party_jni_zero_system_jni__action__testing", 561 "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header", 562 ], 563 defaults: [ 564 "tot_cronet_cc_defaults", 565 ], 566 cflags: [ 567 "-DANDROID", 568 "-DANDROID_NDK_VERSION_ROLL=r27_1", 569 "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", 570 "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"", 571 "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", 572 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 573 "-DHAVE_SYS_UIO_H", 574 "-DNDEBUG", 575 "-DNVALGRIND", 576 "-DOFFICIAL_BUILD", 577 "-DTMP_REBUILD_HACK", 578 "-D_GNU_SOURCE", 579 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 580 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 581 "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", 582 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 583 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 584 "-D__STDC_CONSTANT_MACROS", 585 "-D__STDC_FORMAT_MACROS", 586 "-fdata-sections", 587 "-ffunction-sections", 588 "-fstack-protector", 589 "-fvisibility-inlines-hidden", 590 "-fvisibility=hidden", 591 "-g1", 592 ], 593 include_dirs: [ 594 "external/cronet/tot/", 595 "external/cronet/tot/base/allocator/partition_allocator/src/", 596 "external/cronet/tot/buildtools/third_party/libc++/", 597 "external/cronet/tot/third_party/abseil-cpp/", 598 "external/cronet/tot/third_party/boringssl/src/include/", 599 "external/cronet/tot/third_party/libc++/src/include", 600 "external/cronet/tot/third_party/libc++abi/src/include", 601 ], 602 cpp_std: "c++20", 603 ldflags: [ 604 "-Wl,--as-needed", 605 "-Wl,--gc-sections", 606 "-Wl,--icf=all", 607 "-Wl,--script,external/cronet/tot/base/android/library_loader/anchor_functions.lds", 608 ], 609 visibility: [ 610 "//external/cronet:__subpackages__", 611 ], 612 target: { 613 android_arm: { 614 cflags: [ 615 "-D_FORTIFY_SOURCE=2", 616 ], 617 }, 618 android_arm64: { 619 cflags: [ 620 "-D_FORTIFY_SOURCE=2", 621 "-D__ARM_NEON__=1", 622 "-O2", 623 "-mno-outline", 624 ], 625 }, 626 android_x86: { 627 cflags: [ 628 "-D_FORTIFY_SOURCE=2", 629 "-msse3", 630 ], 631 }, 632 android_x86_64: { 633 cflags: [ 634 "-D_FORTIFY_SOURCE=2", 635 "-O2", 636 "-msse3", 637 ], 638 }, 639 }, 640} 641