// 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_apache-portable-runtime_license", ], } // GN: License-Artificial license { name: "external_cronet_third_party_apache-portable-runtime_license", visibility: [ ":__subpackages__", ], license_text: [ "LICENSE", ], license_kinds: [ "SPDX-license-identifier-Apache-2.0", ], } // GN: //third_party/apache-portable-runtime:apr__testing cc_library_static { name: "cronet_aml_third_party_apache_portable_runtime_apr__testing", srcs: [ "src/atomic/unix/builtins.c", "src/atomic/unix/ia32.c", "src/atomic/unix/mutex.c", "src/atomic/unix/ppc.c", "src/atomic/unix/s390.c", "src/atomic/unix/solaris.c", "src/dso/unix/dso.c", "src/file_io/unix/buffer.c", "src/file_io/unix/copy.c", "src/file_io/unix/dir.c", "src/file_io/unix/fileacc.c", "src/file_io/unix/filedup.c", "src/file_io/unix/filepath.c", "src/file_io/unix/filepath_util.c", "src/file_io/unix/filestat.c", "src/file_io/unix/flock.c", "src/file_io/unix/fullrw.c", "src/file_io/unix/mktemp.c", "src/file_io/unix/open.c", "src/file_io/unix/pipe.c", "src/file_io/unix/readwrite.c", "src/file_io/unix/seek.c", "src/file_io/unix/tempdir.c", "src/locks/unix/global_mutex.c", "src/locks/unix/proc_mutex.c", "src/locks/unix/thread_cond.c", "src/locks/unix/thread_mutex.c", "src/locks/unix/thread_rwlock.c", "src/memory/unix/apr_pools.c", "src/misc/unix/charset.c", "src/misc/unix/env.c", "src/misc/unix/errorcodes.c", "src/misc/unix/getopt.c", "src/misc/unix/otherchild.c", "src/misc/unix/rand.c", "src/misc/unix/start.c", "src/misc/unix/version.c", "src/mmap/unix/common.c", "src/mmap/unix/mmap.c", "src/network_io/unix/inet_ntop.c", "src/network_io/unix/inet_pton.c", "src/network_io/unix/multicast.c", "src/network_io/unix/sendrecv.c", "src/network_io/unix/sockaddr.c", "src/network_io/unix/sockets.c", "src/network_io/unix/sockopt.c", "src/passwd/apr_getpass.c", "src/poll/unix/epoll.c", "src/poll/unix/kqueue.c", "src/poll/unix/poll.c", "src/poll/unix/pollcb.c", "src/poll/unix/pollset.c", "src/poll/unix/port.c", "src/poll/unix/select.c", "src/random/unix/apr_random.c", "src/random/unix/sha2.c", "src/random/unix/sha2_glue.c", "src/shmem/unix/shm.c", "src/strings/apr_cpystrn.c", "src/strings/apr_fnmatch.c", "src/strings/apr_snprintf.c", "src/strings/apr_strings.c", "src/strings/apr_strnatcmp.c", "src/strings/apr_strtok.c", "src/support/unix/waitio.c", "src/tables/apr_hash.c", "src/tables/apr_skiplist.c", "src/tables/apr_tables.c", "src/threadproc/unix/proc.c", "src/threadproc/unix/procsup.c", "src/threadproc/unix/signals.c", "src/threadproc/unix/thread.c", "src/threadproc/unix/threadpriv.c", "src/time/unix/time.c", "src/time/unix/timestr.c", "src/user/unix/groupinfo.c", "src/user/unix/userinfo.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_SYS_UIO_H", "-DNDEBUG", "-DNO_UNWIND_TABLES", "-DNVALGRIND", "-DOFFICIAL_BUILD", "-DSTRERROR_R_RC_INT", "-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__", "-Wno-incompatible-pointer-types-discards-qualifiers", "-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/apache-portable-runtime/src/include/", "external/cronet/third_party/apache-portable-runtime/src/include/arch/unix/", "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_arm64: { cflags: [ "-O2", "-mno-outline", ], }, android_x86: { cflags: [ "-msse3", ], }, android_x86_64: { cflags: [ "-msse3", ], }, }, }