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 | }, |
Dan Willemsen | 83b10fc | 2016-07-26 15:29:22 -0700 | [diff] [blame] | 10 | host_supported: true, |
| 11 | unique_host_soname: true, |
| 12 | sdk_version: "9", |
| 13 | |
| 14 | srcs: [ |
Elliott Hughes | 7247294 | 2018-01-10 08:36:10 -0800 | [diff] [blame] | 15 | "lib/loadlibrary.c", |
Dan Willemsen | 83b10fc | 2016-07-26 15:29:22 -0700 | [diff] [blame] | 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", |
| 28 | "-fexceptions", |
| 29 | "-DHAVE_EXPAT_CONFIG_H", |
Elliott Hughes | 7247294 | 2018-01-10 08:36:10 -0800 | [diff] [blame] | 30 | "-UWIN32_LEAN_AND_MEAN", |
Dan Willemsen | 83b10fc | 2016-07-26 15:29:22 -0700 | [diff] [blame] | 31 | ], |
| 32 | |
| 33 | target: { |
| 34 | darwin: { |
| 35 | cflags: ["-fno-common"], |
| 36 | }, |
| 37 | |
| 38 | windows: { |
| 39 | enabled: true, |
| 40 | }, |
| 41 | }, |
| 42 | |
| 43 | local_include_dirs: ["lib"], |
| 44 | export_include_dirs: ["lib"], |
| 45 | } |