Dan Willemsen | 83b10fc | 2016-07-26 15:29:22 -0700 | [diff] [blame] | 1 | // We need to build this for both the device (as a shared library) |
| 2 | // and the host (as a static library for tools to use). |
| 3 | |
| 4 | cc_library { |
| 5 | name: "libexpat", |
Vijay Venkatraman | c4fc4e2 | 2017-05-15 12:52:35 -0700 | [diff] [blame] | 6 | vendor_available: true, |
Justin Yun | ebe3931 | 2017-07-24 15:19:43 +0900 | [diff] [blame] | 7 | vndk: { |
| 8 | enabled: true, |
| 9 | }, |
Jooyung Han | 5ce2a59 | 2019-01-18 15:38:44 +0900 | [diff] [blame] | 10 | double_loadable: true, |
Dan Willemsen | 83b10fc | 2016-07-26 15:29:22 -0700 | [diff] [blame] | 11 | host_supported: true, |
| 12 | unique_host_soname: true, |
| 13 | sdk_version: "9", |
| 14 | |
| 15 | srcs: [ |
| 16 | "lib/xmlparse.c", |
| 17 | "lib/xmlrole.c", |
| 18 | "lib/xmltok.c", |
| 19 | ], |
| 20 | cflags: [ |
| 21 | "-Wall", |
Chih-Hung Hsieh | 702000b | 2017-09-27 12:42:56 -0700 | [diff] [blame] | 22 | "-Werror", |
Dan Willemsen | 83b10fc | 2016-07-26 15:29:22 -0700 | [diff] [blame] | 23 | "-Wmissing-prototypes", |
| 24 | "-Wstrict-prototypes", |
Elliott Hughes | 7247294 | 2018-01-10 08:36:10 -0800 | [diff] [blame] | 25 | "-Wno-unused-function", |
Dan Willemsen | 83b10fc | 2016-07-26 15:29:22 -0700 | [diff] [blame] | 26 | "-Wno-unused-parameter", |
| 27 | "-Wno-missing-field-initializers", |
Dan Willemsen | 83b10fc | 2016-07-26 15:29:22 -0700 | [diff] [blame] | 28 | "-DHAVE_EXPAT_CONFIG_H", |
Elliott Hughes | 7247294 | 2018-01-10 08:36:10 -0800 | [diff] [blame] | 29 | "-UWIN32_LEAN_AND_MEAN", |
Dan Willemsen | 83b10fc | 2016-07-26 15:29:22 -0700 | [diff] [blame] | 30 | ], |
| 31 | |
| 32 | target: { |
| 33 | darwin: { |
| 34 | cflags: ["-fno-common"], |
| 35 | }, |
| 36 | |
| 37 | windows: { |
| 38 | enabled: true, |
| 39 | }, |
| 40 | }, |
| 41 | |
Jooyung Han | 8be8e35 | 2019-06-25 00:12:01 +0900 | [diff] [blame] | 42 | stl: "none", |
Dan Willemsen | 83b10fc | 2016-07-26 15:29:22 -0700 | [diff] [blame] | 43 | local_include_dirs: ["lib"], |
| 44 | export_include_dirs: ["lib"], |
Jiyong Park | a5c33ed | 2020-04-29 17:42:07 +0900 | [diff] [blame^] | 45 | |
| 46 | apex_available: [ |
| 47 | "//apex_available:platform", |
| 48 | "com.android.art.release", |
| 49 | "com.android.art.debug", |
| 50 | ], |
Dan Willemsen | 83b10fc | 2016-07-26 15:29:22 -0700 | [diff] [blame] | 51 | } |