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_ashmem_license", 21 ], 22} 23 24// GN: License-Artificial 25license { 26 name: "stable_cronet_third_party_ashmem_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/ashmem:ashmem 39cc_library_static { 40 name: "stable_cronet_third_party_ashmem_ashmem", 41 srcs: [ 42 "ashmem-dev.c", 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/ashmem:ashmem__testing 120cc_library_static { 121 name: "stable_cronet_third_party_ashmem_ashmem__testing", 122 srcs: [ 123 "ashmem-dev.c", 124 ], 125 host_cross_supported: false, 126 defaults: [ 127 "stable_cronet_cc_defaults", 128 ], 129 cflags: [ 130 "-DANDROID", 131 "-DANDROID_NDK_VERSION_ROLL=r27_1", 132 "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", 133 "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", 134 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 135 "-DHAVE_SYS_UIO_H", 136 "-DNDEBUG", 137 "-DNVALGRIND", 138 "-DOFFICIAL_BUILD", 139 "-DTMP_REBUILD_HACK", 140 "-D_GNU_SOURCE", 141 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 142 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 143 "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", 144 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 145 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 146 "-D__STDC_CONSTANT_MACROS", 147 "-D__STDC_FORMAT_MACROS", 148 "-fdata-sections", 149 "-ffunction-sections", 150 "-fstack-protector", 151 "-fvisibility-inlines-hidden", 152 "-fvisibility=hidden", 153 "-g1", 154 ], 155 include_dirs: [ 156 "external/cronet/stable/", 157 "external/cronet/stable/buildtools/third_party/libc++/", 158 "external/cronet/stable/third_party/libc++/src/include", 159 "external/cronet/stable/third_party/libc++abi/src/include", 160 ], 161 cpp_std: "c++20", 162 ldflags: [ 163 "-Wl,--as-needed", 164 "-Wl,--gc-sections", 165 "-Wl,--icf=all", 166 ], 167 visibility: [ 168 "//external/cronet:__subpackages__", 169 ], 170 target: { 171 android_arm: { 172 cflags: [ 173 "-D_FORTIFY_SOURCE=2", 174 ], 175 }, 176 android_arm64: { 177 cflags: [ 178 "-D_FORTIFY_SOURCE=2", 179 "-D__ARM_NEON__=1", 180 "-O2", 181 "-mno-outline", 182 ], 183 }, 184 android_x86: { 185 cflags: [ 186 "-D_FORTIFY_SOURCE=2", 187 "-msse3", 188 ], 189 }, 190 android_x86_64: { 191 cflags: [ 192 "-D_FORTIFY_SOURCE=2", 193 "-O2", 194 "-msse3", 195 ], 196 }, 197 }, 198} 199