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_modp_b64_license", 21 ], 22} 23 24// GN: License-Artificial 25license { 26 name: "stable_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-3-Clause", 35 ], 36} 37 38// GN: //third_party/modp_b64:modp_b64 39cc_library_static { 40 name: "stable_cronet_third_party_modp_b64_modp_b64", 41 srcs: [ 42 "modp_b64.cc", 43 ], 44 host_cross_supported: false, 45 defaults: [ 46 "stable_cronet_cc_defaults", 47 ], 48 cflags: [ 49 "-DANDROID", 50 "-DANDROID_NDK_VERSION_ROLL=r27_1", 51 "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", 52 "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", 53 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 54 "-DHAVE_SYS_UIO_H", 55 "-DNDEBUG", 56 "-DNVALGRIND", 57 "-DOFFICIAL_BUILD", 58 "-DTMP_REBUILD_HACK", 59 "-D_GNU_SOURCE", 60 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 61 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 62 "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", 63 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 64 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 65 "-D__STDC_CONSTANT_MACROS", 66 "-D__STDC_FORMAT_MACROS", 67 "-fdata-sections", 68 "-ffunction-sections", 69 "-fstack-protector", 70 "-fvisibility-inlines-hidden", 71 "-fvisibility=hidden", 72 "-g1", 73 ], 74 include_dirs: [ 75 "external/cronet/stable/", 76 "external/cronet/stable/buildtools/third_party/libc++/", 77 "external/cronet/stable/third_party/libc++/src/include", 78 "external/cronet/stable/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 "-D__ARM_NEON__=1", 99 "-O2", 100 "-mno-outline", 101 ], 102 }, 103 android_x86: { 104 cflags: [ 105 "-D_FORTIFY_SOURCE=2", 106 "-msse3", 107 ], 108 }, 109 android_x86_64: { 110 cflags: [ 111 "-D_FORTIFY_SOURCE=2", 112 "-O2", 113 "-msse3", 114 ], 115 }, 116 }, 117} 118 119// GN: //third_party/modp_b64:modp_b64__testing 120cc_library_static { 121 name: "stable_cronet_third_party_modp_b64_modp_b64__testing", 122 srcs: [ 123 "modp_b64.cc", 124 ], 125 host_supported: true, 126 host_cross_supported: false, 127 defaults: [ 128 "stable_cronet_cc_defaults", 129 ], 130 cflags: [ 131 "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", 132 "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", 133 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 134 "-DNDEBUG", 135 "-DNVALGRIND", 136 "-DOFFICIAL_BUILD", 137 "-DTMP_REBUILD_HACK", 138 "-D_GNU_SOURCE", 139 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 140 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 141 "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", 142 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 143 "-D__STDC_CONSTANT_MACROS", 144 "-D__STDC_FORMAT_MACROS", 145 "-fdata-sections", 146 "-ffunction-sections", 147 "-fstack-protector", 148 "-fvisibility-inlines-hidden", 149 "-fvisibility=hidden", 150 "-g1", 151 ], 152 include_dirs: [ 153 "external/cronet/stable/", 154 "external/cronet/stable/buildtools/third_party/libc++/", 155 "external/cronet/stable/third_party/libc++/src/include", 156 "external/cronet/stable/third_party/libc++abi/src/include", 157 ], 158 cpp_std: "c++20", 159 ldflags: [ 160 "-Wl,--as-needed", 161 "-Wl,--gc-sections", 162 "-Wl,--icf=all", 163 ], 164 visibility: [ 165 "//external/cronet:__subpackages__", 166 ], 167 target: { 168 android_arm: { 169 cflags: [ 170 "-DANDROID", 171 "-DANDROID_NDK_VERSION_ROLL=r27_1", 172 "-DHAVE_SYS_UIO_H", 173 "-D_FORTIFY_SOURCE=2", 174 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 175 ], 176 }, 177 android_arm64: { 178 cflags: [ 179 "-DANDROID", 180 "-DANDROID_NDK_VERSION_ROLL=r27_1", 181 "-DHAVE_SYS_UIO_H", 182 "-D_FORTIFY_SOURCE=2", 183 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 184 "-D__ARM_NEON__=1", 185 "-O2", 186 "-mno-outline", 187 ], 188 }, 189 android_riscv64: { 190 cflags: [ 191 "-DANDROID", 192 "-DANDROID_NDK_VERSION_ROLL=r27_1", 193 "-DHAVE_SYS_UIO_H", 194 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 195 ], 196 }, 197 android_x86: { 198 cflags: [ 199 "-DANDROID", 200 "-DANDROID_NDK_VERSION_ROLL=r27_1", 201 "-DHAVE_SYS_UIO_H", 202 "-D_FORTIFY_SOURCE=2", 203 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 204 "-msse3", 205 ], 206 }, 207 android_x86_64: { 208 cflags: [ 209 "-DANDROID", 210 "-DANDROID_NDK_VERSION_ROLL=r27_1", 211 "-DHAVE_SYS_UIO_H", 212 "-D_FORTIFY_SOURCE=2", 213 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 214 "-O2", 215 "-msse3", 216 ], 217 }, 218 host: { 219 cflags: [ 220 "-DCR_SYSROOT_KEY=20230611T210420Z-2", 221 "-DNO_UNWIND_TABLES", 222 "-DUSE_AURA=1", 223 "-DUSE_OZONE=1", 224 "-DUSE_UDEV", 225 "-D_FILE_OFFSET_BITS=64", 226 "-D_FORTIFY_SOURCE=2", 227 "-D_LARGEFILE64_SOURCE", 228 "-D_LARGEFILE_SOURCE", 229 "-O2", 230 "-fno-asynchronous-unwind-tables", 231 "-fno-unwind-tables", 232 "-msse3", 233 ], 234 }, 235 }, 236} 237