// Copyright (C) 2022 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // This file is automatically generated by gen_android_bp.py. Do not edit. // GN: Package-Artificial package { default_applicable_licenses: [ "external_cronet_license", ], } // GN: //crypto:crypto cc_library_static { name: "tot_cronet_crypto_crypto", srcs: [ "aead.cc", "aes_cbc.cc", "aes_ctr.cc", "ec_private_key.cc", "ec_signature_creator.cc", "ec_signature_creator_impl.cc", "encryptor.cc", "features.cc", "hash.cc", "hkdf.cc", "hmac.cc", "kdf.cc", "openssl_util.cc", "process_bound_string.cc", "random.cc", "rsa_private_key.cc", "secure_hash.cc", "secure_util.cc", "sha2.cc", "signature_creator.cc", "signature_verifier.cc", "subtle_passkey.cc", "symmetric_key.cc", "unexportable_key.cc", "unexportable_key_metrics.cc", "unexportable_key_software_unsecure.cc", "user_verifying_key.cc", ], shared_libs: [ "libandroid", "liblog", "libz", "tot_cronet_libcrypto", "tot_cronet_libpki", "tot_cronet_libssl", ], host_cross_supported: false, generated_headers: [ "tot_cronet_base_allocator_buildflags", "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags", "tot_cronet_base_anchor_functions_buildflags", "tot_cronet_base_android_runtime_jni_headers__action", "tot_cronet_base_base_jni__action", "tot_cronet_base_base_shared_preferences_jni__action", "tot_cronet_base_build_date", "tot_cronet_base_callback_jni__action", "tot_cronet_base_cfi_buildflags", "tot_cronet_base_check_version_internal_action", "tot_cronet_base_clang_profiling_buildflags", "tot_cronet_base_command_line_jni__action", "tot_cronet_base_content_uri_utils_jni__action", "tot_cronet_base_debugging_buildflags", "tot_cronet_base_feature_list_buildflags", "tot_cronet_base_fuzzing_buildflags", "tot_cronet_base_ios_cronet_buildflags", "tot_cronet_base_jank_tracker_jni__action", "tot_cronet_base_library_loader_jni__action", "tot_cronet_base_memory_jni__action", "tot_cronet_base_metrics_jni__action", "tot_cronet_base_orderfile_buildflags", "tot_cronet_base_power_monitor_buildflags", "tot_cronet_base_process_launcher_jni__action", "tot_cronet_base_profiler_buildflags", "tot_cronet_base_protected_memory_buildflags", "tot_cronet_base_rust_logger_cxx_generated_gen_header", "tot_cronet_base_sanitizer_buildflags", "tot_cronet_base_synchronization_buildflags", "tot_cronet_base_sys_utils_jni__action", "tot_cronet_base_tasks_jni__action", "tot_cronet_base_tracing_buildflags", "tot_cronet_build_blink_buildflags", "tot_cronet_build_branding_buildflags", "tot_cronet_build_chromecast_buildflags", "tot_cronet_build_chromeos_buildflags", "tot_cronet_build_config_compiler_compiler_buildflags", "tot_cronet_build_ios_buildflags", "tot_cronet_build_robolectric_buildflags", "tot_cronet_crypto_buildflags", "tot_cronet_third_party_jni_zero_generate_jni__action", "tot_cronet_third_party_jni_zero_system_jni__action", "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen_header", ], export_generated_headers: [ "tot_cronet_base_allocator_buildflags", "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags", "tot_cronet_base_anchor_functions_buildflags", "tot_cronet_base_android_runtime_jni_headers__action", "tot_cronet_base_base_jni__action", "tot_cronet_base_base_shared_preferences_jni__action", "tot_cronet_base_build_date", "tot_cronet_base_callback_jni__action", "tot_cronet_base_cfi_buildflags", "tot_cronet_base_check_version_internal_action", "tot_cronet_base_clang_profiling_buildflags", "tot_cronet_base_command_line_jni__action", "tot_cronet_base_content_uri_utils_jni__action", "tot_cronet_base_debugging_buildflags", "tot_cronet_base_feature_list_buildflags", "tot_cronet_base_fuzzing_buildflags", "tot_cronet_base_ios_cronet_buildflags", "tot_cronet_base_jank_tracker_jni__action", "tot_cronet_base_library_loader_jni__action", "tot_cronet_base_memory_jni__action", "tot_cronet_base_metrics_jni__action", "tot_cronet_base_orderfile_buildflags", "tot_cronet_base_power_monitor_buildflags", "tot_cronet_base_process_launcher_jni__action", "tot_cronet_base_profiler_buildflags", "tot_cronet_base_protected_memory_buildflags", "tot_cronet_base_rust_logger_cxx_generated_gen_header", "tot_cronet_base_sanitizer_buildflags", "tot_cronet_base_synchronization_buildflags", "tot_cronet_base_sys_utils_jni__action", "tot_cronet_base_tasks_jni__action", "tot_cronet_base_tracing_buildflags", "tot_cronet_build_blink_buildflags", "tot_cronet_build_branding_buildflags", "tot_cronet_build_chromecast_buildflags", "tot_cronet_build_chromeos_buildflags", "tot_cronet_build_config_compiler_compiler_buildflags", "tot_cronet_build_ios_buildflags", "tot_cronet_build_robolectric_buildflags", "tot_cronet_crypto_buildflags", "tot_cronet_third_party_jni_zero_generate_jni__action", "tot_cronet_third_party_jni_zero_system_jni__action", "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen_header", ], defaults: [ "tot_cronet_cc_defaults", ], cflags: [ "-DANDROID", "-DANDROID_NDK_VERSION_ROLL=r27_1", "-DCRYPTO_IMPLEMENTATION", "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"", "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", "-DDYNAMIC_ANNOTATIONS_ENABLED=0", "-DHAVE_SYS_UIO_H", "-DNDEBUG", "-DNVALGRIND", "-DOFFICIAL_BUILD", "-DTMP_REBUILD_HACK", "-D_GNU_SOURCE", "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", "-D__STDC_CONSTANT_MACROS", "-D__STDC_FORMAT_MACROS", "-fdata-sections", "-ffunction-sections", "-fstack-protector", "-fvisibility-inlines-hidden", "-fvisibility=hidden", "-g1", ], include_dirs: [ "external/cronet/tot/", "external/cronet/tot/base/allocator/partition_allocator/src/", "external/cronet/tot/buildtools/third_party/libc++/", "external/cronet/tot/third_party/abseil-cpp/", "external/cronet/tot/third_party/boringssl/src/include/", "external/cronet/tot/third_party/libc++/src/include", "external/cronet/tot/third_party/libc++abi/src/include", ], cpp_std: "c++20", ldflags: [ "-Wl,--as-needed", "-Wl,--gc-sections", "-Wl,--icf=all", "-Wl,--script,external/cronet/tot/base/android/library_loader/anchor_functions.lds", ], visibility: [ "//external/cronet:__subpackages__", ], target: { android_arm: { cflags: [ "-D_FORTIFY_SOURCE=2", ], }, android_arm64: { cflags: [ "-D_FORTIFY_SOURCE=2", "-D__ARM_NEON__=1", "-O2", "-mno-outline", ], }, android_x86: { cflags: [ "-D_FORTIFY_SOURCE=2", "-msse3", ], }, android_x86_64: { cflags: [ "-D_FORTIFY_SOURCE=2", "-O2", "-msse3", ], }, }, } // GN: //crypto:crypto__testing cc_library_static { name: "tot_cronet_crypto_crypto__testing", srcs: [ "aead.cc", "aes_cbc.cc", "aes_ctr.cc", "ec_private_key.cc", "ec_signature_creator.cc", "ec_signature_creator_impl.cc", "encryptor.cc", "features.cc", "hash.cc", "hkdf.cc", "hmac.cc", "kdf.cc", "openssl_util.cc", "process_bound_string.cc", "random.cc", "rsa_private_key.cc", "secure_hash.cc", "secure_util.cc", "sha2.cc", "signature_creator.cc", "signature_verifier.cc", "subtle_passkey.cc", "symmetric_key.cc", "unexportable_key.cc", "unexportable_key_metrics.cc", "unexportable_key_software_unsecure.cc", "user_verifying_key.cc", ], shared_libs: [ "libz", ], host_supported: true, host_cross_supported: false, generated_headers: [ "tot_cronet_base_allocator_buildflags__testing", "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing", "tot_cronet_base_anchor_functions_buildflags__testing", "tot_cronet_base_build_date__testing", "tot_cronet_base_cfi_buildflags__testing", "tot_cronet_base_check_version_internal_action__testing", "tot_cronet_base_clang_profiling_buildflags__testing", "tot_cronet_base_debugging_buildflags__testing", "tot_cronet_base_feature_list_buildflags__testing", "tot_cronet_base_fuzzing_buildflags__testing", "tot_cronet_base_ios_cronet_buildflags__testing", "tot_cronet_base_orderfile_buildflags__testing", "tot_cronet_base_power_monitor_buildflags__testing", "tot_cronet_base_profiler_buildflags__testing", "tot_cronet_base_protected_memory_buildflags__testing", "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header", "tot_cronet_base_sanitizer_buildflags__testing", "tot_cronet_base_synchronization_buildflags__testing", "tot_cronet_base_tracing_buildflags__testing", "tot_cronet_build_blink_buildflags__testing", "tot_cronet_build_branding_buildflags__testing", "tot_cronet_build_chromecast_buildflags__testing", "tot_cronet_build_chromeos_buildflags__testing", "tot_cronet_build_config_compiler_compiler_buildflags__testing", "tot_cronet_build_ios_buildflags__testing", "tot_cronet_crypto_buildflags__testing", "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header", ], export_generated_headers: [ "tot_cronet_base_allocator_buildflags__testing", "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing", "tot_cronet_base_anchor_functions_buildflags__testing", "tot_cronet_base_build_date__testing", "tot_cronet_base_cfi_buildflags__testing", "tot_cronet_base_check_version_internal_action__testing", "tot_cronet_base_clang_profiling_buildflags__testing", "tot_cronet_base_debugging_buildflags__testing", "tot_cronet_base_feature_list_buildflags__testing", "tot_cronet_base_fuzzing_buildflags__testing", "tot_cronet_base_ios_cronet_buildflags__testing", "tot_cronet_base_orderfile_buildflags__testing", "tot_cronet_base_power_monitor_buildflags__testing", "tot_cronet_base_profiler_buildflags__testing", "tot_cronet_base_protected_memory_buildflags__testing", "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header", "tot_cronet_base_sanitizer_buildflags__testing", "tot_cronet_base_synchronization_buildflags__testing", "tot_cronet_base_tracing_buildflags__testing", "tot_cronet_build_blink_buildflags__testing", "tot_cronet_build_branding_buildflags__testing", "tot_cronet_build_chromecast_buildflags__testing", "tot_cronet_build_chromeos_buildflags__testing", "tot_cronet_build_config_compiler_compiler_buildflags__testing", "tot_cronet_build_ios_buildflags__testing", "tot_cronet_crypto_buildflags__testing", "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header", ], defaults: [ "tot_cronet_cc_defaults", ], cflags: [ "-DCRYPTO_IMPLEMENTATION", "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"", "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", "-DDYNAMIC_ANNOTATIONS_ENABLED=0", "-DNDEBUG", "-DNVALGRIND", "-DOFFICIAL_BUILD", "-DTMP_REBUILD_HACK", "-D_GNU_SOURCE", "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", "-D__STDC_CONSTANT_MACROS", "-D__STDC_FORMAT_MACROS", "-fdata-sections", "-ffunction-sections", "-fstack-protector", "-fvisibility-inlines-hidden", "-fvisibility=hidden", "-g1", ], include_dirs: [ "external/cronet/tot/", "external/cronet/tot/base/allocator/partition_allocator/src/", "external/cronet/tot/buildtools/third_party/libc++/", "external/cronet/tot/third_party/abseil-cpp/", "external/cronet/tot/third_party/boringssl/src/include/", "external/cronet/tot/third_party/libc++/src/include", "external/cronet/tot/third_party/libc++abi/src/include", ], cpp_std: "c++20", ldflags: [ "-Wl,--as-needed", "-Wl,--gc-sections", "-Wl,--icf=all", "-Wl,--script,external/cronet/tot/base/android/library_loader/anchor_functions.lds", ], visibility: [ "//external/cronet:__subpackages__", ], target: { android: { shared_libs: [ "libandroid", "liblog", ], }, android_arm: { shared_libs: [ "liblog", ], cflags: [ "-DANDROID", "-DANDROID_NDK_VERSION_ROLL=r27_1", "-DHAVE_SYS_UIO_H", "-D_FORTIFY_SOURCE=2", "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", ], generated_headers: [ "tot_cronet_third_party_jni_zero_generate_jni__action__testing", "tot_cronet_third_party_jni_zero_system_jni__action__testing", ], }, android_arm64: { shared_libs: [ "liblog", ], cflags: [ "-DANDROID", "-DANDROID_NDK_VERSION_ROLL=r27_1", "-DHAVE_SYS_UIO_H", "-D_FORTIFY_SOURCE=2", "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", "-D__ARM_NEON__=1", "-O2", "-mno-outline", ], generated_headers: [ "tot_cronet_third_party_jni_zero_generate_jni__action__testing", "tot_cronet_third_party_jni_zero_system_jni__action__testing", ], }, android_riscv64: { shared_libs: [ "liblog", ], cflags: [ "-DANDROID", "-DANDROID_NDK_VERSION_ROLL=r27_1", "-DHAVE_SYS_UIO_H", "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", ], generated_headers: [ "tot_cronet_third_party_jni_zero_generate_jni__action__testing", "tot_cronet_third_party_jni_zero_system_jni__action__testing", ], }, android_x86: { shared_libs: [ "liblog", ], cflags: [ "-DANDROID", "-DANDROID_NDK_VERSION_ROLL=r27_1", "-DHAVE_SYS_UIO_H", "-D_FORTIFY_SOURCE=2", "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", "-msse3", ], generated_headers: [ "tot_cronet_third_party_jni_zero_generate_jni__action__testing", "tot_cronet_third_party_jni_zero_system_jni__action__testing", ], }, android_x86_64: { shared_libs: [ "liblog", ], cflags: [ "-DANDROID", "-DANDROID_NDK_VERSION_ROLL=r27_1", "-DHAVE_SYS_UIO_H", "-D_FORTIFY_SOURCE=2", "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", "-O2", "-msse3", ], generated_headers: [ "tot_cronet_third_party_jni_zero_generate_jni__action__testing", "tot_cronet_third_party_jni_zero_system_jni__action__testing", ], }, host: { cflags: [ "-DCR_SYSROOT_KEY=20230611T210420Z-2", "-DNO_UNWIND_TABLES", "-DUSE_AURA=1", "-DUSE_OZONE=1", "-DUSE_UDEV", "-D_FILE_OFFSET_BITS=64", "-D_FORTIFY_SOURCE=2", "-D_LARGEFILE64_SOURCE", "-D_LARGEFILE_SOURCE", "-O2", "-fno-asynchronous-unwind-tables", "-fno-unwind-tables", "-msse3", ], }, }, } // GN: //crypto:test_support__testing cc_library_static { name: "tot_cronet_crypto_test_support__testing", srcs: [ "scoped_fake_user_verifying_key_provider.cc", "scoped_mock_unexportable_key_provider.cc", ], shared_libs: [ "libandroid", "liblog", "libz", ], host_cross_supported: false, generated_headers: [ "tot_cronet_base_allocator_buildflags__testing", "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing", "tot_cronet_base_anchor_functions_buildflags__testing", "tot_cronet_base_build_date__testing", "tot_cronet_base_cfi_buildflags__testing", "tot_cronet_base_check_version_internal_action__testing", "tot_cronet_base_clang_profiling_buildflags__testing", "tot_cronet_base_debugging_buildflags__testing", "tot_cronet_base_feature_list_buildflags__testing", "tot_cronet_base_fuzzing_buildflags__testing", "tot_cronet_base_ios_cronet_buildflags__testing", "tot_cronet_base_orderfile_buildflags__testing", "tot_cronet_base_power_monitor_buildflags__testing", "tot_cronet_base_profiler_buildflags__testing", "tot_cronet_base_protected_memory_buildflags__testing", "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header", "tot_cronet_base_sanitizer_buildflags__testing", "tot_cronet_base_synchronization_buildflags__testing", "tot_cronet_base_tracing_buildflags__testing", "tot_cronet_build_blink_buildflags__testing", "tot_cronet_build_branding_buildflags__testing", "tot_cronet_build_chromecast_buildflags__testing", "tot_cronet_build_chromeos_buildflags__testing", "tot_cronet_build_config_compiler_compiler_buildflags__testing", "tot_cronet_build_ios_buildflags__testing", "tot_cronet_crypto_buildflags__testing", "tot_cronet_third_party_jni_zero_generate_jni__action__testing", "tot_cronet_third_party_jni_zero_system_jni__action__testing", "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header", ], export_generated_headers: [ "tot_cronet_base_allocator_buildflags__testing", "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing", "tot_cronet_base_anchor_functions_buildflags__testing", "tot_cronet_base_build_date__testing", "tot_cronet_base_cfi_buildflags__testing", "tot_cronet_base_check_version_internal_action__testing", "tot_cronet_base_clang_profiling_buildflags__testing", "tot_cronet_base_debugging_buildflags__testing", "tot_cronet_base_feature_list_buildflags__testing", "tot_cronet_base_fuzzing_buildflags__testing", "tot_cronet_base_ios_cronet_buildflags__testing", "tot_cronet_base_orderfile_buildflags__testing", "tot_cronet_base_power_monitor_buildflags__testing", "tot_cronet_base_profiler_buildflags__testing", "tot_cronet_base_protected_memory_buildflags__testing", "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header", "tot_cronet_base_sanitizer_buildflags__testing", "tot_cronet_base_synchronization_buildflags__testing", "tot_cronet_base_tracing_buildflags__testing", "tot_cronet_build_blink_buildflags__testing", "tot_cronet_build_branding_buildflags__testing", "tot_cronet_build_chromecast_buildflags__testing", "tot_cronet_build_chromeos_buildflags__testing", "tot_cronet_build_config_compiler_compiler_buildflags__testing", "tot_cronet_build_ios_buildflags__testing", "tot_cronet_crypto_buildflags__testing", "tot_cronet_third_party_jni_zero_generate_jni__action__testing", "tot_cronet_third_party_jni_zero_system_jni__action__testing", "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header", ], defaults: [ "tot_cronet_cc_defaults", ], cflags: [ "-DANDROID", "-DANDROID_NDK_VERSION_ROLL=r27_1", "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"", "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", "-DDYNAMIC_ANNOTATIONS_ENABLED=0", "-DHAVE_SYS_UIO_H", "-DNDEBUG", "-DNVALGRIND", "-DOFFICIAL_BUILD", "-DTMP_REBUILD_HACK", "-D_GNU_SOURCE", "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", "-D__STDC_CONSTANT_MACROS", "-D__STDC_FORMAT_MACROS", "-fdata-sections", "-ffunction-sections", "-fstack-protector", "-fvisibility-inlines-hidden", "-fvisibility=hidden", "-g1", ], include_dirs: [ "external/cronet/tot/", "external/cronet/tot/base/allocator/partition_allocator/src/", "external/cronet/tot/buildtools/third_party/libc++/", "external/cronet/tot/third_party/abseil-cpp/", "external/cronet/tot/third_party/boringssl/src/include/", "external/cronet/tot/third_party/libc++/src/include", "external/cronet/tot/third_party/libc++abi/src/include", ], cpp_std: "c++20", ldflags: [ "-Wl,--as-needed", "-Wl,--gc-sections", "-Wl,--icf=all", "-Wl,--script,external/cronet/tot/base/android/library_loader/anchor_functions.lds", ], visibility: [ "//external/cronet:__subpackages__", ], target: { android_arm: { cflags: [ "-D_FORTIFY_SOURCE=2", ], }, android_arm64: { cflags: [ "-D_FORTIFY_SOURCE=2", "-D__ARM_NEON__=1", "-O2", "-mno-outline", ], }, android_x86: { cflags: [ "-D_FORTIFY_SOURCE=2", "-msse3", ], }, android_x86_64: { cflags: [ "-D_FORTIFY_SOURCE=2", "-O2", "-msse3", ], }, }, }