Colin Cross | f788932 | 2017-04-20 13:43:31 -0700 | [diff] [blame] | 1 | // |
| 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. |
| 34 | cc_library { |
| 35 | name: "libxml2", |
Jiyong Park | 378d152 | 2017-06-26 15:36:29 +0900 | [diff] [blame] | 36 | vendor_available: true, |
Jiyong Park | 10be88e | 2017-08-09 20:13:58 +0900 | [diff] [blame] | 37 | vndk: { |
| 38 | enabled: true, |
| 39 | }, |
Colin Cross | f788932 | 2017-04-20 13:43:31 -0700 | [diff] [blame] | 40 | host_supported: true, |
| 41 | srcs: [ |
| 42 | "SAX.c", |
| 43 | "entities.c", |
| 44 | "encoding.c", |
| 45 | "error.c", |
| 46 | "parserInternals.c", |
| 47 | "parser.c", |
| 48 | "tree.c", |
| 49 | "hash.c", |
| 50 | "list.c", |
| 51 | "xmlIO.c", |
| 52 | "xmlmemory.c", |
| 53 | "uri.c", |
| 54 | "valid.c", |
| 55 | "xlink.c", |
| 56 | "debugXML.c", |
| 57 | "xpath.c", |
| 58 | "xpointer.c", |
| 59 | "xinclude.c", |
| 60 | "DOCBparser.c", |
| 61 | "catalog.c", |
| 62 | "globals.c", |
| 63 | "threads.c", |
| 64 | "c14n.c", |
| 65 | "xmlstring.c", |
| 66 | "buf.c", |
| 67 | "xmlregexp.c", |
| 68 | "xmlschemas.c", |
| 69 | "xmlschemastypes.c", |
| 70 | "xmlunicode.c", |
| 71 | "xmlreader.c", |
| 72 | "relaxng.c", |
| 73 | "dict.c", |
| 74 | "SAX2.c", |
| 75 | "xmlwriter.c", |
| 76 | "legacy.c", |
| 77 | "chvalid.c", |
| 78 | "pattern.c", |
| 79 | "xmlsave.c", |
| 80 | "xmlmodule.c", |
| 81 | "schematron.c", |
| 82 | ], |
Vijay Venkatraman | cdef69c | 2017-04-24 21:51:06 +0000 | [diff] [blame] | 83 | export_include_dirs: ["include"], |
Colin Cross | f788932 | 2017-04-20 13:43:31 -0700 | [diff] [blame] | 84 | cflags: [ |
| 85 | "-DLIBXML_THREAD_ENABLED=1", |
| 86 | |
Chih-Hung Hsieh | 2e086d2 | 2017-09-28 15:01:29 -0700 | [diff] [blame] | 87 | "-Wall", |
| 88 | "-Werror", |
| 89 | "-Wno-error=ignored-attributes", |
Colin Cross | f788932 | 2017-04-20 13:43:31 -0700 | [diff] [blame] | 90 | "-Wno-missing-field-initializers", |
| 91 | "-Wno-self-assign", |
| 92 | "-Wno-sign-compare", |
| 93 | "-Wno-tautological-pointer-compare", |
Chih-Hung Hsieh | 2e086d2 | 2017-09-28 15:01:29 -0700 | [diff] [blame] | 94 | "-Wno-unused-function", |
Colin Cross | f788932 | 2017-04-20 13:43:31 -0700 | [diff] [blame] | 95 | "-Wno-unused-parameter", |
| 96 | ], |
| 97 | static: { |
| 98 | cflags: ["-fvisibility=hidden"], |
| 99 | }, |
| 100 | target: { |
Jiyong Park | 10be88e | 2017-08-09 20:13:58 +0900 | [diff] [blame] | 101 | vendor: { |
| 102 | exclude_shared_libs: ["libicuuc"], |
| 103 | }, |
Colin Cross | f788932 | 2017-04-20 13:43:31 -0700 | [diff] [blame] | 104 | }, |
| 105 | shared_libs: ["libicuuc"], |
Colin Cross | e86301b | 2017-04-24 14:22:40 -0700 | [diff] [blame] | 106 | export_shared_lib_headers: ["libicuuc"], |
Colin Cross | f788932 | 2017-04-20 13:43:31 -0700 | [diff] [blame] | 107 | } |