blob: 8c2f9c72be853db3735ac16876c676e365ba5837 [file] [log] [blame]
Jaekyun Seok4aef71b2016-11-29 06:50:26 +09001cc_library {
Colin Crossda559c72016-07-12 11:12:29 -07002 name: "libtinyxml2",
3 host_supported: true,
Jayant Chowdhary5c495c42017-05-16 14:22:14 -07004 vendor_available: true,
Yifan Honga3503842018-07-16 15:20:06 -07005 recovery_available: true,
Justin Yund3ab2742017-07-24 15:19:44 +09006 vndk: {
7 enabled: true,
8 },
Colin Crossda559c72016-07-12 11:12:29 -07009
10 srcs: ["tinyxml2.cpp"],
11
Elliott Hughes5e6f75e2018-01-12 13:01:08 -080012 cflags: [
13 "-Wall",
14 "-Werror",
Chih-Hung Hsiehf6dd7be2018-09-04 14:33:39 -070015 "-Wno-implicit-fallthrough",
16 // tinyxml2.cpp line 436, 441, 446 have -Wimplicit-fallthrough.
Elliott Hughes5e6f75e2018-01-12 13:01:08 -080017 ],
Chih-Hung Hsieh664df7a2017-09-29 11:31:57 -070018
Steven Morelande5ae2992017-07-14 11:54:16 -070019 shared_libs: ["liblog"],
20
Colin Crossda559c72016-07-12 11:12:29 -070021 target: {
22 android: {
23 cflags: [
24 // LOG_TO_ANDROID_LOGCAT
25 "-DDEBUG",
26 "-DANDROID_NDK",
27 ],
28 },
29 },
Elliott Hughes657af2b2016-09-12 15:34:42 -070030
31 export_include_dirs: ["."],
Colin Crossda559c72016-07-12 11:12:29 -070032}
Elliott Hughes5e6f75e2018-01-12 13:01:08 -080033
34cc_test {
35 name: "tinyxml2-tests",
36 srcs: ["xmltest.cpp"],
37 shared_libs: ["libtinyxml2"],
Elliott Hughes5e6f75e2018-01-12 13:01:08 -080038 data: [
Elliott Hughesfc1d7242018-04-25 12:19:39 -070039 "resources/**/*",
Elliott Hughes5e6f75e2018-01-12 13:01:08 -080040 ],
41}