blob: c2c39aec27f18709857f6a1502d82652be04847c [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: [
16 "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",
Dan Willemsen83b10fc2016-07-26 15:29:22 -070028 "-DHAVE_EXPAT_CONFIG_H",
Elliott Hughes72472942018-01-10 08:36:10 -080029 "-UWIN32_LEAN_AND_MEAN",
Dan Willemsen83b10fc2016-07-26 15:29:22 -070030 ],
31
32 target: {
33 darwin: {
34 cflags: ["-fno-common"],
35 },
36
37 windows: {
38 enabled: true,
39 },
40 },
41
Jooyung Han8be8e352019-06-25 00:12:01 +090042 stl: "none",
Dan Willemsen83b10fc2016-07-26 15:29:22 -070043 local_include_dirs: ["lib"],
44 export_include_dirs: ["lib"],
Jiyong Parka5c33ed2020-04-29 17:42:07 +090045
46 apex_available: [
47 "//apex_available:platform",
48 "com.android.art.release",
49 "com.android.art.debug",
50 ],
Dan Willemsen83b10fc2016-07-26 15:29:22 -070051}