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 4cc_library { 5 name: "libexpat", 6 vendor_available: true, 7 vndk: { 8 enabled: true, 9 }, 10 host_supported: true, 11 unique_host_soname: true, 12 sdk_version: "9", 13 14 srcs: [ 15 "lib/xmlparse.c", 16 "lib/xmlrole.c", 17 "lib/xmltok.c", 18 ], 19 cflags: [ 20 "-Wall", 21 "-Wmissing-prototypes", 22 "-Wstrict-prototypes", 23 "-Wno-unused-parameter", 24 "-Wno-missing-field-initializers", 25 "-fexceptions", 26 "-DHAVE_EXPAT_CONFIG_H", 27 ], 28 29 target: { 30 darwin: { 31 cflags: ["-fno-common"], 32 }, 33 34 windows: { 35 enabled: true, 36 }, 37 }, 38 39 local_include_dirs: ["lib"], 40 export_include_dirs: ["lib"], 41} 42