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_libxml_license", 21 ], 22} 23 24// GN: License-Artificial 25license { 26 name: "external_cronet_third_party_libxml_license", 27 visibility: [ 28 ":__subpackages__", 29 ], 30 license_text: [ 31 "LICENSE", 32 ], 33 license_kinds: [ 34 "SPDX-license-identifier-MIT", 35 ], 36} 37 38// GN: //third_party/libxml:libxml__testing 39cc_library_static { 40 name: "cronet_aml_third_party_libxml_libxml__testing", 41 srcs: [ 42 "chromium/disabled_libxml_features.cc", 43 "src/HTMLparser.c", 44 "src/HTMLtree.c", 45 "src/SAX2.c", 46 "src/buf.c", 47 "src/chvalid.c", 48 "src/dict.c", 49 "src/encoding.c", 50 "src/entities.c", 51 "src/error.c", 52 "src/globals.c", 53 "src/hash.c", 54 "src/list.c", 55 "src/parser.c", 56 "src/parserInternals.c", 57 "src/pattern.c", 58 "src/threads.c", 59 "src/tree.c", 60 "src/uri.c", 61 "src/valid.c", 62 "src/xmlIO.c", 63 "src/xmlmemory.c", 64 "src/xmlreader.c", 65 "src/xmlsave.c", 66 "src/xmlstring.c", 67 "src/xmlunicode.c", 68 "src/xmlwriter.c", 69 "src/xpath.c", 70 ], 71 shared_libs: [ 72 "libz", 73 ], 74 defaults: [ 75 "cronet_aml_cc_defaults", 76 ], 77 cflags: [ 78 "-DANDROID", 79 "-DANDROID_NDK_VERSION_ROLL=r26b_1", 80 "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"", 81 "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b", 82 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 83 "-DHAVE_SYS_UIO_H", 84 "-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE", 85 "-DNDEBUG", 86 "-DNO_UNWIND_TABLES", 87 "-DNVALGRIND", 88 "-DOFFICIAL_BUILD", 89 "-DUSE_CHROMIUM_ICU=1", 90 "-DU_ENABLE_DYLOAD=0", 91 "-DU_ENABLE_RESOURCE_TRACING=0", 92 "-DU_ENABLE_TRACING=1", 93 "-DU_STATIC_IMPLEMENTATION", 94 "-DU_USING_ICU_NAMESPACE=0", 95 "-D_GNU_SOURCE", 96 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 97 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 98 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 99 "-D_REENTRANT", 100 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 101 "-fdata-sections", 102 "-ffunction-sections", 103 "-fno-asynchronous-unwind-tables", 104 "-fno-unwind-tables", 105 "-fstack-protector", 106 "-fvisibility-inlines-hidden", 107 "-fvisibility=hidden", 108 "-g1", 109 ], 110 include_dirs: [ 111 "external/cronet/", 112 "external/cronet/buildtools/third_party/libc++/", 113 "external/cronet/third_party/icu/source/common/", 114 "external/cronet/third_party/icu/source/i18n/", 115 "external/cronet/third_party/libc++/src/include", 116 "external/cronet/third_party/libc++abi/src/include", 117 "external/cronet/third_party/libxml/linux/", 118 "external/cronet/third_party/libxml/linux/include/", 119 "external/cronet/third_party/libxml/src/include/", 120 ], 121 cpp_std: "c++20", 122 ldflags: [ 123 "-Wl,--as-needed", 124 "-Wl,--gc-sections", 125 "-Wl,--icf=all", 126 ], 127 visibility: [ 128 "//external/cronet:__subpackages__", 129 ], 130 target: { 131 android_arm64: { 132 cflags: [ 133 "-O2", 134 "-mno-outline", 135 ], 136 }, 137 android_x86: { 138 cflags: [ 139 "-msse3", 140 ], 141 }, 142 android_x86_64: { 143 cflags: [ 144 "-msse3", 145 ], 146 }, 147 }, 148} 149 150// GN: //third_party/libxml:libxml_utils__testing 151cc_library_static { 152 name: "cronet_aml_third_party_libxml_libxml_utils__testing", 153 srcs: [ 154 "chromium/libxml_utils.cc", 155 ], 156 shared_libs: [ 157 "libz", 158 ], 159 defaults: [ 160 "cronet_aml_cc_defaults", 161 ], 162 cflags: [ 163 "-DANDROID", 164 "-DANDROID_NDK_VERSION_ROLL=r26b_1", 165 "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"", 166 "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b", 167 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 168 "-DHAVE_SYS_UIO_H", 169 "-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE", 170 "-DNDEBUG", 171 "-DNO_UNWIND_TABLES", 172 "-DNVALGRIND", 173 "-DOFFICIAL_BUILD", 174 "-DUSE_CHROMIUM_ICU=1", 175 "-DU_ENABLE_DYLOAD=0", 176 "-DU_ENABLE_RESOURCE_TRACING=0", 177 "-DU_ENABLE_TRACING=1", 178 "-DU_STATIC_IMPLEMENTATION", 179 "-DU_USING_ICU_NAMESPACE=0", 180 "-D_GNU_SOURCE", 181 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 182 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 183 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 184 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 185 "-D__STDC_CONSTANT_MACROS", 186 "-D__STDC_FORMAT_MACROS", 187 "-fdata-sections", 188 "-ffunction-sections", 189 "-fno-asynchronous-unwind-tables", 190 "-fno-unwind-tables", 191 "-fstack-protector", 192 "-fvisibility-inlines-hidden", 193 "-fvisibility=hidden", 194 "-g1", 195 ], 196 include_dirs: [ 197 "external/cronet/", 198 "external/cronet/buildtools/third_party/libc++/", 199 "external/cronet/third_party/icu/source/common/", 200 "external/cronet/third_party/icu/source/i18n/", 201 "external/cronet/third_party/libc++/src/include", 202 "external/cronet/third_party/libc++abi/src/include", 203 "external/cronet/third_party/libxml/linux/include/", 204 "external/cronet/third_party/libxml/src/include/", 205 ], 206 cpp_std: "c++20", 207 ldflags: [ 208 "-Wl,--as-needed", 209 "-Wl,--gc-sections", 210 "-Wl,--icf=all", 211 ], 212 visibility: [ 213 "//external/cronet:__subpackages__", 214 ], 215 target: { 216 android_arm: { 217 cflags: [ 218 "-D_FORTIFY_SOURCE=2", 219 ], 220 }, 221 android_arm64: { 222 cflags: [ 223 "-D_FORTIFY_SOURCE=2", 224 "-O2", 225 "-mno-outline", 226 ], 227 }, 228 android_x86: { 229 cflags: [ 230 "-D_FORTIFY_SOURCE=2", 231 "-msse3", 232 ], 233 }, 234 android_x86_64: { 235 cflags: [ 236 "-D_FORTIFY_SOURCE=2", 237 "-msse3", 238 ], 239 }, 240 }, 241} 242 243// GN: //third_party/libxml:xml_reader__testing 244cc_library_static { 245 name: "cronet_aml_third_party_libxml_xml_reader__testing", 246 srcs: [ 247 "chromium/xml_reader.cc", 248 ], 249 shared_libs: [ 250 "libz", 251 ], 252 defaults: [ 253 "cronet_aml_cc_defaults", 254 ], 255 cflags: [ 256 "-DANDROID", 257 "-DANDROID_NDK_VERSION_ROLL=r26b_1", 258 "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"", 259 "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b", 260 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 261 "-DHAVE_SYS_UIO_H", 262 "-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE", 263 "-DNDEBUG", 264 "-DNO_UNWIND_TABLES", 265 "-DNVALGRIND", 266 "-DOFFICIAL_BUILD", 267 "-DUSE_CHROMIUM_ICU=1", 268 "-DU_ENABLE_DYLOAD=0", 269 "-DU_ENABLE_RESOURCE_TRACING=0", 270 "-DU_ENABLE_TRACING=1", 271 "-DU_STATIC_IMPLEMENTATION", 272 "-DU_USING_ICU_NAMESPACE=0", 273 "-D_GNU_SOURCE", 274 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 275 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 276 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 277 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 278 "-D__STDC_CONSTANT_MACROS", 279 "-D__STDC_FORMAT_MACROS", 280 "-fdata-sections", 281 "-ffunction-sections", 282 "-fno-asynchronous-unwind-tables", 283 "-fno-unwind-tables", 284 "-fstack-protector", 285 "-fvisibility-inlines-hidden", 286 "-fvisibility=hidden", 287 "-g1", 288 ], 289 include_dirs: [ 290 "external/cronet/", 291 "external/cronet/buildtools/third_party/libc++/", 292 "external/cronet/third_party/icu/source/common/", 293 "external/cronet/third_party/icu/source/i18n/", 294 "external/cronet/third_party/libc++/src/include", 295 "external/cronet/third_party/libc++abi/src/include", 296 "external/cronet/third_party/libxml/linux/include/", 297 "external/cronet/third_party/libxml/src/include/", 298 ], 299 cpp_std: "c++20", 300 ldflags: [ 301 "-Wl,--as-needed", 302 "-Wl,--gc-sections", 303 "-Wl,--icf=all", 304 ], 305 visibility: [ 306 "//external/cronet:__subpackages__", 307 ], 308 target: { 309 android_arm: { 310 cflags: [ 311 "-D_FORTIFY_SOURCE=2", 312 ], 313 }, 314 android_arm64: { 315 cflags: [ 316 "-D_FORTIFY_SOURCE=2", 317 "-O2", 318 "-mno-outline", 319 ], 320 }, 321 android_x86: { 322 cflags: [ 323 "-D_FORTIFY_SOURCE=2", 324 "-msse3", 325 ], 326 }, 327 android_x86_64: { 328 cflags: [ 329 "-D_FORTIFY_SOURCE=2", 330 "-msse3", 331 ], 332 }, 333 }, 334} 335