blob: d3f313beebafc090efd47707e6d07eb1c18fda37 [file] [log] [blame]
Colin Crossf7889322017-04-20 13:43:31 -07001//
2// Copyright (C) 2014 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17//
18// To update:
19//
20
21// git merge aosp/upstream-master
22// mma -j
23// # (Make any necessary Android.bp changes and test the new libxml2.)
24// git push aosp HEAD:master # Push directly, avoiding gerrit.
25// git push aosp HEAD:refs/for/master # Push to gerrit.
26//
27// # Now commit any necessary Android.bp changes like normal:
28// repo start post-sync .
29// git commit -a
30//
31
32// This comes from the automake-generated Makefile.
33// We deliberately exclude nanoftp.c and nanohttp.c, the trio library, and zlib.
34cc_library {
35 name: "libxml2",
36 host_supported: true,
37 srcs: [
38 "SAX.c",
39 "entities.c",
40 "encoding.c",
41 "error.c",
42 "parserInternals.c",
43 "parser.c",
44 "tree.c",
45 "hash.c",
46 "list.c",
47 "xmlIO.c",
48 "xmlmemory.c",
49 "uri.c",
50 "valid.c",
51 "xlink.c",
52 "debugXML.c",
53 "xpath.c",
54 "xpointer.c",
55 "xinclude.c",
56 "DOCBparser.c",
57 "catalog.c",
58 "globals.c",
59 "threads.c",
60 "c14n.c",
61 "xmlstring.c",
62 "buf.c",
63 "xmlregexp.c",
64 "xmlschemas.c",
65 "xmlschemastypes.c",
66 "xmlunicode.c",
67 "xmlreader.c",
68 "relaxng.c",
69 "dict.c",
70 "SAX2.c",
71 "xmlwriter.c",
72 "legacy.c",
73 "chvalid.c",
74 "pattern.c",
75 "xmlsave.c",
76 "xmlmodule.c",
77 "schematron.c",
78 ],
79 export_include_dirs: ["include"],
80 cflags: [
81 "-DLIBXML_THREAD_ENABLED=1",
82
83 "-Wno-missing-field-initializers",
84 "-Wno-self-assign",
85 "-Wno-sign-compare",
86 "-Wno-tautological-pointer-compare",
87 "-Wno-unused-parameter",
88 ],
89 static: {
90 cflags: ["-fvisibility=hidden"],
91 },
92 target: {
93 host: {
94 host_ldlibs: ["-ldl"],
95 },
96 },
97 shared_libs: ["libicuuc"],
98}