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