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