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 double_loadable: true, 11 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", 22 "-Werror", 23 "-Wmissing-prototypes", 24 "-Wstrict-prototypes", 25 "-Wno-unused-function", 26 "-Wno-unused-parameter", 27 "-Wno-missing-field-initializers", 28 "-DHAVE_EXPAT_CONFIG_H", 29 "-UWIN32_LEAN_AND_MEAN", 30 ], 31 32 target: { 33 darwin: { 34 cflags: ["-fno-common"], 35 }, 36 37 windows: { 38 enabled: true, 39 }, 40 }, 41 42 stl: "none", 43 local_include_dirs: ["lib"], 44 export_include_dirs: ["lib"], 45 46 apex_available: [ 47 "//apex_available:platform", 48 "com.android.art.release", 49 "com.android.art.debug", 50 ], 51} 52