// 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 gn2bp/gen_android_bp.py. Do not edit. // GN: Package-Artificial package { default_applicable_licenses: [ "external_cronet_third_party_cpu_features_license", ], } // GN: License-Artificial license { name: "external_cronet_third_party_cpu_features_license", visibility: [ ":__subpackages__", ], license_text: [ "LICENSE", ], license_kinds: [ "SPDX-license-identifier-Apache-2.0", ], } // GN: //third_party/cpu_features:cpuinfo cc_library_static { name: "cronet_aml_third_party_cpu_features_cpuinfo", srcs: [ "src/src/filesystem.c", "src/src/hwcaps.c", "src/src/stack_line_reader.c", "src/src/string_view.c", ], defaults: [ "cronet_aml_cc_defaults", ], cflags: [ "-DANDROID", "-DANDROID_NDK_VERSION_ROLL=r26b_1", "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"", "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b", "-DDYNAMIC_ANNOTATIONS_ENABLED=0", "-DHAVE_STRONG_GETAUXVAL", "-DHAVE_SYS_UIO_H", "-DNDEBUG", "-DNO_UNWIND_TABLES", "-DNVALGRIND", "-DOFFICIAL_BUILD", "-DSTACK_LINE_READER_BUFFER_SIZE=1024", "-D_GNU_SOURCE", "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", "-D__STDC_CONSTANT_MACROS", "-D__STDC_FORMAT_MACROS", "-fdata-sections", "-ffunction-sections", "-fno-asynchronous-unwind-tables", "-fno-unwind-tables", "-fstack-protector", "-fvisibility-inlines-hidden", "-fvisibility=hidden", "-g1", ], include_dirs: [ "external/cronet/", "external/cronet/buildtools/third_party/libc++/", "external/cronet/third_party/cpu_features/src/include/", "external/cronet/third_party/libc++/src/include", "external/cronet/third_party/libc++abi/src/include", ], cpp_std: "c++20", ldflags: [ "-Wl,--as-needed", "-Wl,--gc-sections", "-Wl,--icf=all", ], visibility: [ "//external/cronet:__subpackages__", ], target: { android_arm: { srcs: [ "src/src/impl_arm_linux_or_android.c", ], cflags: [ "-D_FORTIFY_SOURCE=2", ], }, android_arm64: { srcs: [ "src/src/impl_aarch64_linux_or_android.c", ], cflags: [ "-D_FORTIFY_SOURCE=2", "-O2", "-mno-outline", ], }, android_riscv64: { srcs: [ "src/src/impl_riscv_linux.c", ], }, android_x86: { srcs: [ "src/src/impl_x86_freebsd.c", "src/src/impl_x86_linux_or_android.c", "src/src/impl_x86_macos.c", "src/src/impl_x86_windows.c", ], cflags: [ "-D_FORTIFY_SOURCE=2", "-msse3", ], }, android_x86_64: { srcs: [ "src/src/impl_x86_freebsd.c", "src/src/impl_x86_linux_or_android.c", "src/src/impl_x86_macos.c", "src/src/impl_x86_windows.c", ], cflags: [ "-D_FORTIFY_SOURCE=2", "-msse3", ], }, }, } // GN: //third_party/cpu_features:cpuinfo__testing cc_library_static { name: "cronet_aml_third_party_cpu_features_cpuinfo__testing", srcs: [ "src/src/filesystem.c", "src/src/hwcaps.c", "src/src/stack_line_reader.c", "src/src/string_view.c", ], defaults: [ "cronet_aml_cc_defaults", ], cflags: [ "-DANDROID", "-DANDROID_NDK_VERSION_ROLL=r26b_1", "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"", "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b", "-DDYNAMIC_ANNOTATIONS_ENABLED=0", "-DHAVE_STRONG_GETAUXVAL", "-DHAVE_SYS_UIO_H", "-DNDEBUG", "-DNO_UNWIND_TABLES", "-DNVALGRIND", "-DOFFICIAL_BUILD", "-DSTACK_LINE_READER_BUFFER_SIZE=1024", "-D_GNU_SOURCE", "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", "-D__STDC_CONSTANT_MACROS", "-D__STDC_FORMAT_MACROS", "-fdata-sections", "-ffunction-sections", "-fno-asynchronous-unwind-tables", "-fno-unwind-tables", "-fstack-protector", "-fvisibility-inlines-hidden", "-fvisibility=hidden", "-g1", ], include_dirs: [ "external/cronet/", "external/cronet/buildtools/third_party/libc++/", "external/cronet/third_party/cpu_features/src/include/", "external/cronet/third_party/libc++/src/include", "external/cronet/third_party/libc++abi/src/include", ], cpp_std: "c++20", ldflags: [ "-Wl,--as-needed", "-Wl,--gc-sections", "-Wl,--icf=all", ], visibility: [ "//external/cronet:__subpackages__", ], target: { android_arm: { srcs: [ "src/src/impl_arm_linux_or_android.c", ], cflags: [ "-D_FORTIFY_SOURCE=2", ], }, android_arm64: { srcs: [ "src/src/impl_aarch64_linux_or_android.c", ], cflags: [ "-D_FORTIFY_SOURCE=2", "-O2", "-mno-outline", ], }, android_riscv64: { srcs: [ "src/src/impl_riscv_linux.c", ], }, android_x86: { srcs: [ "src/src/impl_x86_freebsd.c", "src/src/impl_x86_linux_or_android.c", "src/src/impl_x86_macos.c", "src/src/impl_x86_windows.c", ], cflags: [ "-D_FORTIFY_SOURCE=2", "-msse3", ], }, android_x86_64: { srcs: [ "src/src/impl_x86_freebsd.c", "src/src/impl_x86_linux_or_android.c", "src/src/impl_x86_macos.c", "src/src/impl_x86_windows.c", ], cflags: [ "-D_FORTIFY_SOURCE=2", "-msse3", ], }, }, } // GN: //third_party/cpu_features:ndk_compat cc_library_static { name: "cronet_aml_third_party_cpu_features_ndk_compat", srcs: [ "src/ndk_compat/cpu-features.c", ], defaults: [ "cronet_aml_cc_defaults", ], cflags: [ "-DANDROID", "-DANDROID_NDK_VERSION_ROLL=r26b_1", "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"", "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b", "-DDYNAMIC_ANNOTATIONS_ENABLED=0", "-DHAVE_STRONG_GETAUXVAL", "-DHAVE_SYS_UIO_H", "-DNDEBUG", "-DNO_UNWIND_TABLES", "-DNVALGRIND", "-DOFFICIAL_BUILD", "-DSTACK_LINE_READER_BUFFER_SIZE=1024", "-D_GNU_SOURCE", "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", "-D__STDC_CONSTANT_MACROS", "-D__STDC_FORMAT_MACROS", "-fdata-sections", "-ffunction-sections", "-fno-asynchronous-unwind-tables", "-fno-unwind-tables", "-fstack-protector", "-fvisibility-inlines-hidden", "-fvisibility=hidden", "-g1", ], include_dirs: [ "external/cronet/", "external/cronet/buildtools/third_party/libc++/", "external/cronet/third_party/cpu_features/src/include/", "external/cronet/third_party/cpu_features/src/ndk_compat/", "external/cronet/third_party/libc++/src/include", "external/cronet/third_party/libc++abi/src/include", ], cpp_std: "c++20", ldflags: [ "-Wl,--as-needed", "-Wl,--gc-sections", "-Wl,--icf=all", ], visibility: [ "//external/cronet:__subpackages__", ], target: { android_arm: { cflags: [ "-D_FORTIFY_SOURCE=2", ], }, android_arm64: { cflags: [ "-D_FORTIFY_SOURCE=2", "-O2", "-mno-outline", ], }, android_x86: { cflags: [ "-D_FORTIFY_SOURCE=2", "-msse3", ], }, android_x86_64: { cflags: [ "-D_FORTIFY_SOURCE=2", "-msse3", ], }, }, } // GN: //third_party/cpu_features:ndk_compat__testing cc_library_static { name: "cronet_aml_third_party_cpu_features_ndk_compat__testing", srcs: [ "src/ndk_compat/cpu-features.c", ], defaults: [ "cronet_aml_cc_defaults", ], cflags: [ "-DANDROID", "-DANDROID_NDK_VERSION_ROLL=r26b_1", "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"", "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b", "-DDYNAMIC_ANNOTATIONS_ENABLED=0", "-DHAVE_STRONG_GETAUXVAL", "-DHAVE_SYS_UIO_H", "-DNDEBUG", "-DNO_UNWIND_TABLES", "-DNVALGRIND", "-DOFFICIAL_BUILD", "-DSTACK_LINE_READER_BUFFER_SIZE=1024", "-D_GNU_SOURCE", "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", "-D__STDC_CONSTANT_MACROS", "-D__STDC_FORMAT_MACROS", "-fdata-sections", "-ffunction-sections", "-fno-asynchronous-unwind-tables", "-fno-unwind-tables", "-fstack-protector", "-fvisibility-inlines-hidden", "-fvisibility=hidden", "-g1", ], include_dirs: [ "external/cronet/", "external/cronet/buildtools/third_party/libc++/", "external/cronet/third_party/cpu_features/src/include/", "external/cronet/third_party/cpu_features/src/ndk_compat/", "external/cronet/third_party/libc++/src/include", "external/cronet/third_party/libc++abi/src/include", ], cpp_std: "c++20", ldflags: [ "-Wl,--as-needed", "-Wl,--gc-sections", "-Wl,--icf=all", ], visibility: [ "//external/cronet:__subpackages__", ], target: { android_arm: { cflags: [ "-D_FORTIFY_SOURCE=2", ], }, android_arm64: { cflags: [ "-D_FORTIFY_SOURCE=2", "-O2", "-mno-outline", ], }, android_x86: { cflags: [ "-D_FORTIFY_SOURCE=2", "-msse3", ], }, android_x86_64: { cflags: [ "-D_FORTIFY_SOURCE=2", "-msse3", ], }, }, }