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 gn2bp/gen_android_bp.py. Do not edit. 16 17// GN: Package-Artificial 18package { 19 default_applicable_licenses: [ 20 "external_cronet_third_party_modp_b64_license", 21 ], 22} 23 24// GN: License-Artificial 25license { 26 name: "external_cronet_third_party_modp_b64_license", 27 visibility: [ 28 ":__subpackages__", 29 ], 30 license_text: [ 31 "LICENSE", 32 ], 33 license_kinds: [ 34 "SPDX-license-identifier-BSD", 35 ], 36} 37 38// GN: //third_party/modp_b64:modp_b64 39cc_library_static { 40 name: "cronet_aml_third_party_modp_b64_modp_b64", 41 srcs: [ 42 "modp_b64.cc", 43 ], 44 defaults: [ 45 "cronet_aml_cc_defaults", 46 ], 47 cflags: [ 48 "-DANDROID", 49 "-DANDROID_NDK_VERSION_ROLL=r26b_1", 50 "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"", 51 "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b", 52 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 53 "-DHAVE_SYS_UIO_H", 54 "-DNDEBUG", 55 "-DNO_UNWIND_TABLES", 56 "-DNVALGRIND", 57 "-DOFFICIAL_BUILD", 58 "-D_GNU_SOURCE", 59 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 60 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 61 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 62 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 63 "-D__STDC_CONSTANT_MACROS", 64 "-D__STDC_FORMAT_MACROS", 65 "-fdata-sections", 66 "-ffunction-sections", 67 "-fno-asynchronous-unwind-tables", 68 "-fno-unwind-tables", 69 "-fstack-protector", 70 "-fvisibility-inlines-hidden", 71 "-fvisibility=hidden", 72 "-g1", 73 ], 74 include_dirs: [ 75 "external/cronet/", 76 "external/cronet/buildtools/third_party/libc++/", 77 "external/cronet/third_party/libc++/src/include", 78 "external/cronet/third_party/libc++abi/src/include", 79 ], 80 cpp_std: "c++20", 81 ldflags: [ 82 "-Wl,--as-needed", 83 "-Wl,--gc-sections", 84 "-Wl,--icf=all", 85 ], 86 visibility: [ 87 "//external/cronet:__subpackages__", 88 ], 89 target: { 90 android_arm: { 91 cflags: [ 92 "-D_FORTIFY_SOURCE=2", 93 ], 94 }, 95 android_arm64: { 96 cflags: [ 97 "-D_FORTIFY_SOURCE=2", 98 "-O2", 99 "-mno-outline", 100 ], 101 }, 102 android_x86: { 103 cflags: [ 104 "-D_FORTIFY_SOURCE=2", 105 "-msse3", 106 ], 107 }, 108 android_x86_64: { 109 cflags: [ 110 "-D_FORTIFY_SOURCE=2", 111 "-msse3", 112 ], 113 }, 114 }, 115} 116 117// GN: //third_party/modp_b64:modp_b64__testing 118cc_library_static { 119 name: "cronet_aml_third_party_modp_b64_modp_b64__testing", 120 srcs: [ 121 "modp_b64.cc", 122 ], 123 host_supported: true, 124 defaults: [ 125 "cronet_aml_cc_defaults", 126 ], 127 cflags: [ 128 "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"", 129 "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b", 130 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 131 "-DNDEBUG", 132 "-DNO_UNWIND_TABLES", 133 "-DNVALGRIND", 134 "-DOFFICIAL_BUILD", 135 "-D_GNU_SOURCE", 136 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 137 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 138 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 139 "-D__STDC_CONSTANT_MACROS", 140 "-D__STDC_FORMAT_MACROS", 141 "-fdata-sections", 142 "-ffunction-sections", 143 "-fno-asynchronous-unwind-tables", 144 "-fno-unwind-tables", 145 "-fstack-protector", 146 "-fvisibility-inlines-hidden", 147 "-fvisibility=hidden", 148 "-g1", 149 ], 150 include_dirs: [ 151 "external/cronet/", 152 "external/cronet/buildtools/third_party/libc++/", 153 "external/cronet/third_party/libc++/src/include", 154 "external/cronet/third_party/libc++abi/src/include", 155 ], 156 cpp_std: "c++20", 157 ldflags: [ 158 "-Wl,--as-needed", 159 "-Wl,--gc-sections", 160 "-Wl,--icf=all", 161 ], 162 visibility: [ 163 "//external/cronet:__subpackages__", 164 ], 165 target: { 166 android_arm: { 167 cflags: [ 168 "-DANDROID", 169 "-DANDROID_NDK_VERSION_ROLL=r26b_1", 170 "-DHAVE_SYS_UIO_H", 171 "-D_FORTIFY_SOURCE=2", 172 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 173 ], 174 }, 175 android_arm64: { 176 cflags: [ 177 "-DANDROID", 178 "-DANDROID_NDK_VERSION_ROLL=r26b_1", 179 "-DHAVE_SYS_UIO_H", 180 "-D_FORTIFY_SOURCE=2", 181 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 182 "-O2", 183 "-mno-outline", 184 ], 185 }, 186 android_riscv64: { 187 cflags: [ 188 "-DANDROID", 189 "-DANDROID_NDK_VERSION_ROLL=r26b_1", 190 "-DHAVE_SYS_UIO_H", 191 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 192 ], 193 }, 194 android_x86: { 195 cflags: [ 196 "-DANDROID", 197 "-DANDROID_NDK_VERSION_ROLL=r26b_1", 198 "-DHAVE_SYS_UIO_H", 199 "-D_FORTIFY_SOURCE=2", 200 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 201 "-msse3", 202 ], 203 }, 204 android_x86_64: { 205 cflags: [ 206 "-DANDROID", 207 "-DANDROID_NDK_VERSION_ROLL=r26b_1", 208 "-DHAVE_SYS_UIO_H", 209 "-D_FORTIFY_SOURCE=2", 210 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 211 "-msse3", 212 ], 213 }, 214 host: { 215 cflags: [ 216 "-DCR_SYSROOT_KEY=20230611T210420Z-2", 217 "-DUSE_AURA=1", 218 "-DUSE_OZONE=1", 219 "-DUSE_UDEV", 220 "-D_FILE_OFFSET_BITS=64", 221 "-D_FORTIFY_SOURCE=2", 222 "-D_LARGEFILE64_SOURCE", 223 "-D_LARGEFILE_SOURCE", 224 "-O2", 225 "-msse3", 226 ], 227 compile_multilib: "64", 228 }, 229 }, 230} 231