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 "stable_cronet_third_party_netty-tcnative_license", 21 ], 22} 23 24// GN: License-Artificial 25license { 26 name: "stable_cronet_third_party_netty-tcnative_license", 27 visibility: [ 28 ":__subpackages__", 29 ], 30 license_text: [ 31 "LICENSE", 32 ], 33 license_kinds: [ 34 "SPDX-license-identifier-Apache-2.0", 35 ], 36} 37 38// GN: //third_party/netty-tcnative:netty-tcnative-so__testing 39cc_library_shared { 40 name: "stable_cronet_third_party_netty_tcnative_netty_tcnative_so__testing", 41 srcs: [ 42 "src/c/bb.c", 43 "src/c/error.c", 44 "src/c/jnilib.c", 45 "src/c/native_constants.c", 46 "src/c/ssl.c", 47 "src/c/sslcontext.c", 48 "src/c/sslutils.c", 49 ], 50 whole_static_libs: [ 51 "stable_cronet_buildtools_third_party_libc___libc____testing", 52 "stable_cronet_buildtools_third_party_libc__abi_libc__abi__testing", 53 "stable_cronet_third_party_apache_portable_runtime_apr__testing", 54 "stable_cronet_third_party_boringssl_boringssl__testing", 55 "stable_cronet_third_party_boringssl_boringssl_asm__testing", 56 ], 57 defaults: [ 58 "stable_cronet_cc_defaults", 59 ], 60 cflags: [ 61 "-DANDROID", 62 "-DANDROID_NDK_VERSION_ROLL=r27_1", 63 "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", 64 "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", 65 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 66 "-DHAVE_OPENSSL", 67 "-DHAVE_SYS_UIO_H", 68 "-DNDEBUG", 69 "-DNVALGRIND", 70 "-DOFFICIAL_BUILD", 71 "-DTMP_REBUILD_HACK", 72 "-D_GNU_SOURCE", 73 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 74 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 75 "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", 76 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 77 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 78 "-D__STDC_CONSTANT_MACROS", 79 "-D__STDC_FORMAT_MACROS", 80 "-Wno-error=pointer-bool-conversion", 81 "-fdata-sections", 82 "-ffunction-sections", 83 "-fstack-protector", 84 "-fvisibility-inlines-hidden", 85 "-fvisibility=hidden", 86 "-g1", 87 ], 88 include_dirs: [ 89 "external/cronet/stable/", 90 "external/cronet/stable/buildtools/third_party/libc++/", 91 "external/cronet/stable/third_party/apache-portable-runtime/src/include/", 92 "external/cronet/stable/third_party/boringssl/src/include/", 93 "external/cronet/stable/third_party/libc++/src/include", 94 "external/cronet/stable/third_party/libc++abi/src/include", 95 ], 96 cpp_std: "c++20", 97 ldflags: [ 98 "-Wl,--as-needed", 99 "-Wl,--gc-sections", 100 "-Wl,--icf=all", 101 ], 102 stem: "libnetty-tcnative", 103 visibility: [ 104 "//external/cronet:__subpackages__", 105 "//packages/modules/Connectivity:__subpackages__", 106 ], 107 target: { 108 android_arm: { 109 cflags: [ 110 "-D_FORTIFY_SOURCE=2", 111 ], 112 }, 113 android_arm64: { 114 cflags: [ 115 "-D_FORTIFY_SOURCE=2", 116 "-D__ARM_NEON__=1", 117 "-O2", 118 "-mno-outline", 119 ], 120 }, 121 android_x86: { 122 cflags: [ 123 "-D_FORTIFY_SOURCE=2", 124 "-msse3", 125 ], 126 }, 127 android_x86_64: { 128 cflags: [ 129 "-D_FORTIFY_SOURCE=2", 130 "-O2", 131 "-msse3", 132 ], 133 }, 134 }, 135} 136