blob: b3bef06cc34d0a5317790522900b5f49372c54d4 [file] [log] [blame]
Dan Willemsen83b10fc2016-07-26 15:29:22 -07001// 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
4cc_library {
5 name: "libexpat",
Vijay Venkatramanc4fc4e22017-05-15 12:52:35 -07006 vendor_available: true,
Justin Yunebe39312017-07-24 15:19:43 +09007 vndk: {
8 enabled: true,
9 },
Dan Willemsen83b10fc2016-07-26 15:29:22 -070010 host_supported: true,
11 unique_host_soname: true,
12 sdk_version: "9",
13
14 srcs: [
Elliott Hughes72472942018-01-10 08:36:10 -080015 "lib/loadlibrary.c",
Dan Willemsen83b10fc2016-07-26 15:29:22 -070016 "lib/xmlparse.c",
17 "lib/xmlrole.c",
18 "lib/xmltok.c",
19 ],
20 cflags: [
21 "-Wall",
Chih-Hung Hsieh702000b2017-09-27 12:42:56 -070022 "-Werror",
Dan Willemsen83b10fc2016-07-26 15:29:22 -070023 "-Wmissing-prototypes",
24 "-Wstrict-prototypes",
Elliott Hughes72472942018-01-10 08:36:10 -080025 "-Wno-unused-function",
Dan Willemsen83b10fc2016-07-26 15:29:22 -070026 "-Wno-unused-parameter",
27 "-Wno-missing-field-initializers",
28 "-fexceptions",
29 "-DHAVE_EXPAT_CONFIG_H",
Elliott Hughes72472942018-01-10 08:36:10 -080030 "-UWIN32_LEAN_AND_MEAN",
Dan Willemsen83b10fc2016-07-26 15:29:22 -070031 ],
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}