1cc_library { 2 name: "libtinyxml2", 3 host_supported: true, 4 vendor_available: true, 5 vndk: { 6 enabled: true, 7 }, 8 9 srcs: ["tinyxml2.cpp"], 10 11 cflags: [ 12 "-Wall", 13 "-Werror", 14 ], 15 16 shared_libs: ["liblog"], 17 18 target: { 19 android: { 20 cflags: [ 21 // LOG_TO_ANDROID_LOGCAT 22 "-DDEBUG", 23 "-DANDROID_NDK", 24 ], 25 }, 26 }, 27 28 export_include_dirs: ["."], 29} 30 31cc_test { 32 name: "tinyxml2-tests", 33 srcs: ["xmltest.cpp"], 34 shared_libs: ["libtinyxml2"], 35 // "resources/*" doesn't work: http://b/71906438 36 data: [ 37 "resources/dream.xml", 38 "resources/empty.xml", 39 "resources/out/readme.txt", 40 "resources/utf8testverify.xml", 41 "resources/utf8test.xml", 42 ], 43} 44