• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_libxml_license",
21    ],
22}
23
24// GN: License-Artificial
25license {
26    name: "stable_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: "stable_cronet_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    host_cross_supported: false,
75    defaults: [
76        "stable_cronet_cc_defaults",
77    ],
78    cflags: [
79        "-DANDROID",
80        "-DANDROID_NDK_VERSION_ROLL=r27_1",
81        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
82        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
83        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
84        "-DHAVE_SYS_UIO_H",
85        "-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE",
86        "-DNDEBUG",
87        "-DNVALGRIND",
88        "-DOFFICIAL_BUILD",
89        "-DTMP_REBUILD_HACK",
90        "-DUSE_CHROMIUM_ICU=1",
91        "-DU_ENABLE_DYLOAD=0",
92        "-DU_ENABLE_RESOURCE_TRACING=0",
93        "-DU_ENABLE_TRACING=1",
94        "-DU_STATIC_IMPLEMENTATION",
95        "-DU_USING_ICU_NAMESPACE=0",
96        "-D_GNU_SOURCE",
97        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
98        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
99        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
100        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
101        "-D_REENTRANT",
102        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
103        "-fdata-sections",
104        "-ffunction-sections",
105        "-fstack-protector",
106        "-fvisibility-inlines-hidden",
107        "-fvisibility=hidden",
108        "-g1",
109    ],
110    include_dirs: [
111        "external/cronet/stable/",
112        "external/cronet/stable/buildtools/third_party/libc++/",
113        "external/cronet/stable/third_party/icu/source/common/",
114        "external/cronet/stable/third_party/icu/source/i18n/",
115        "external/cronet/stable/third_party/libc++/src/include",
116        "external/cronet/stable/third_party/libc++abi/src/include",
117        "external/cronet/stable/third_party/libxml/linux/",
118        "external/cronet/stable/third_party/libxml/linux/include/",
119        "external/cronet/stable/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                "-D__ARM_NEON__=1",
134                "-O2",
135                "-mno-outline",
136            ],
137        },
138        android_x86: {
139            cflags: [
140                "-msse3",
141            ],
142        },
143        android_x86_64: {
144            cflags: [
145                "-O2",
146                "-msse3",
147            ],
148        },
149    },
150}
151
152// GN: //third_party/libxml:libxml_utils__testing
153cc_library_static {
154    name: "stable_cronet_third_party_libxml_libxml_utils__testing",
155    srcs: [
156        "chromium/libxml_utils.cc",
157    ],
158    shared_libs: [
159        "libz",
160    ],
161    host_cross_supported: false,
162    defaults: [
163        "stable_cronet_cc_defaults",
164    ],
165    cflags: [
166        "-DANDROID",
167        "-DANDROID_NDK_VERSION_ROLL=r27_1",
168        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
169        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
170        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
171        "-DHAVE_SYS_UIO_H",
172        "-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE",
173        "-DNDEBUG",
174        "-DNVALGRIND",
175        "-DOFFICIAL_BUILD",
176        "-DTMP_REBUILD_HACK",
177        "-DUSE_CHROMIUM_ICU=1",
178        "-DU_ENABLE_DYLOAD=0",
179        "-DU_ENABLE_RESOURCE_TRACING=0",
180        "-DU_ENABLE_TRACING=1",
181        "-DU_STATIC_IMPLEMENTATION",
182        "-DU_USING_ICU_NAMESPACE=0",
183        "-D_GNU_SOURCE",
184        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
185        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
186        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
187        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
188        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
189        "-D__STDC_CONSTANT_MACROS",
190        "-D__STDC_FORMAT_MACROS",
191        "-fdata-sections",
192        "-ffunction-sections",
193        "-fstack-protector",
194        "-fvisibility-inlines-hidden",
195        "-fvisibility=hidden",
196        "-g1",
197    ],
198    include_dirs: [
199        "external/cronet/stable/",
200        "external/cronet/stable/buildtools/third_party/libc++/",
201        "external/cronet/stable/third_party/icu/source/common/",
202        "external/cronet/stable/third_party/icu/source/i18n/",
203        "external/cronet/stable/third_party/libc++/src/include",
204        "external/cronet/stable/third_party/libc++abi/src/include",
205        "external/cronet/stable/third_party/libxml/linux/include/",
206        "external/cronet/stable/third_party/libxml/src/include/",
207    ],
208    cpp_std: "c++20",
209    ldflags: [
210        "-Wl,--as-needed",
211        "-Wl,--gc-sections",
212        "-Wl,--icf=all",
213    ],
214    visibility: [
215        "//external/cronet:__subpackages__",
216    ],
217    target: {
218        android_arm: {
219            cflags: [
220                "-D_FORTIFY_SOURCE=2",
221            ],
222        },
223        android_arm64: {
224            cflags: [
225                "-D_FORTIFY_SOURCE=2",
226                "-D__ARM_NEON__=1",
227                "-O2",
228                "-mno-outline",
229            ],
230        },
231        android_x86: {
232            cflags: [
233                "-D_FORTIFY_SOURCE=2",
234                "-msse3",
235            ],
236        },
237        android_x86_64: {
238            cflags: [
239                "-D_FORTIFY_SOURCE=2",
240                "-O2",
241                "-msse3",
242            ],
243        },
244    },
245}
246
247// GN: //third_party/libxml:xml_reader__testing
248cc_library_static {
249    name: "stable_cronet_third_party_libxml_xml_reader__testing",
250    srcs: [
251        "chromium/xml_reader.cc",
252    ],
253    shared_libs: [
254        "libz",
255    ],
256    host_cross_supported: false,
257    defaults: [
258        "stable_cronet_cc_defaults",
259    ],
260    cflags: [
261        "-DANDROID",
262        "-DANDROID_NDK_VERSION_ROLL=r27_1",
263        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
264        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
265        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
266        "-DHAVE_SYS_UIO_H",
267        "-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE",
268        "-DNDEBUG",
269        "-DNVALGRIND",
270        "-DOFFICIAL_BUILD",
271        "-DTMP_REBUILD_HACK",
272        "-DUSE_CHROMIUM_ICU=1",
273        "-DU_ENABLE_DYLOAD=0",
274        "-DU_ENABLE_RESOURCE_TRACING=0",
275        "-DU_ENABLE_TRACING=1",
276        "-DU_STATIC_IMPLEMENTATION",
277        "-DU_USING_ICU_NAMESPACE=0",
278        "-D_GNU_SOURCE",
279        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
280        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
281        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
282        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
283        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
284        "-D__STDC_CONSTANT_MACROS",
285        "-D__STDC_FORMAT_MACROS",
286        "-fdata-sections",
287        "-ffunction-sections",
288        "-fstack-protector",
289        "-fvisibility-inlines-hidden",
290        "-fvisibility=hidden",
291        "-g1",
292    ],
293    include_dirs: [
294        "external/cronet/stable/",
295        "external/cronet/stable/buildtools/third_party/libc++/",
296        "external/cronet/stable/third_party/icu/source/common/",
297        "external/cronet/stable/third_party/icu/source/i18n/",
298        "external/cronet/stable/third_party/libc++/src/include",
299        "external/cronet/stable/third_party/libc++abi/src/include",
300        "external/cronet/stable/third_party/libxml/linux/include/",
301        "external/cronet/stable/third_party/libxml/src/include/",
302    ],
303    cpp_std: "c++20",
304    ldflags: [
305        "-Wl,--as-needed",
306        "-Wl,--gc-sections",
307        "-Wl,--icf=all",
308    ],
309    visibility: [
310        "//external/cronet:__subpackages__",
311    ],
312    target: {
313        android_arm: {
314            cflags: [
315                "-D_FORTIFY_SOURCE=2",
316            ],
317        },
318        android_arm64: {
319            cflags: [
320                "-D_FORTIFY_SOURCE=2",
321                "-D__ARM_NEON__=1",
322                "-O2",
323                "-mno-outline",
324            ],
325        },
326        android_x86: {
327            cflags: [
328                "-D_FORTIFY_SOURCE=2",
329                "-msse3",
330            ],
331        },
332        android_x86_64: {
333            cflags: [
334                "-D_FORTIFY_SOURCE=2",
335                "-O2",
336                "-msse3",
337            ],
338        },
339    },
340}
341