blob: 1a7842d82d77d180f01c2bcb29313aa1532c4efd [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 },
Jooyung Han5ce2a592019-01-18 15:38:44 +090010 double_loadable: true,
Dan Willemsen83b10fc2016-07-26 15:29:22 -070011 host_supported: true,
12 unique_host_soname: true,
13 sdk_version: "9",
14
15 srcs: [
Elliott Hughes72472942018-01-10 08:36:10 -080016 "lib/loadlibrary.c",
Dan Willemsen83b10fc2016-07-26 15:29:22 -070017 "lib/xmlparse.c",
18 "lib/xmlrole.c",
19 "lib/xmltok.c",
20 ],
21 cflags: [
22 "-Wall",
Chih-Hung Hsieh702000b2017-09-27 12:42:56 -070023 "-Werror",
Dan Willemsen83b10fc2016-07-26 15:29:22 -070024 "-Wmissing-prototypes",
25 "-Wstrict-prototypes",
Elliott Hughes72472942018-01-10 08:36:10 -080026 "-Wno-unused-function",
Dan Willemsen83b10fc2016-07-26 15:29:22 -070027 "-Wno-unused-parameter",
28 "-Wno-missing-field-initializers",
29 "-fexceptions",
30 "-DHAVE_EXPAT_CONFIG_H",
Elliott Hughes72472942018-01-10 08:36:10 -080031 "-UWIN32_LEAN_AND_MEAN",
Dan Willemsen83b10fc2016-07-26 15:29:22 -070032 ],
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}