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: [ |
Elliott Hughes | 7247294 | 2018-01-10 08:36:10 -0800 | [diff] [blame] | 16 | "lib/loadlibrary.c", |
Dan Willemsen | 83b10fc | 2016-07-26 15:29:22 -0700 | [diff] [blame] | 17 | "lib/xmlparse.c", |
| 18 | "lib/xmlrole.c", |
| 19 | "lib/xmltok.c", |
| 20 | ], |
| 21 | cflags: [ |
| 22 | "-Wall", |
Chih-Hung Hsieh | 702000b | 2017-09-27 12:42:56 -0700 | [diff] [blame] | 23 | "-Werror", |
Dan Willemsen | 83b10fc | 2016-07-26 15:29:22 -0700 | [diff] [blame] | 24 | "-Wmissing-prototypes", |
| 25 | "-Wstrict-prototypes", |
Elliott Hughes | 7247294 | 2018-01-10 08:36:10 -0800 | [diff] [blame] | 26 | "-Wno-unused-function", |
Dan Willemsen | 83b10fc | 2016-07-26 15:29:22 -0700 | [diff] [blame] | 27 | "-Wno-unused-parameter", |
| 28 | "-Wno-missing-field-initializers", |
| 29 | "-fexceptions", |
| 30 | "-DHAVE_EXPAT_CONFIG_H", |
Elliott Hughes | 7247294 | 2018-01-10 08:36:10 -0800 | [diff] [blame] | 31 | "-UWIN32_LEAN_AND_MEAN", |
Dan Willemsen | 83b10fc | 2016-07-26 15:29:22 -0700 | [diff] [blame] | 32 | ], |
| 33 | |
| 34 | target: { |
| 35 | darwin: { |
| 36 | cflags: ["-fno-common"], |
| 37 | }, |
| 38 | |
| 39 | windows: { |
| 40 | enabled: true, |
| 41 | }, |
| 42 | }, |
| 43 | |
| 44 | local_include_dirs: ["lib"], |
| 45 | export_include_dirs: ["lib"], |
| 46 | } |