Jaekyun Seok | 4aef71b | 2016-11-29 06:50:26 +0900 | [diff] [blame] | 1 | cc_library { |
Colin Cross | da559c7 | 2016-07-12 11:12:29 -0700 | [diff] [blame] | 2 | name: "libtinyxml2", |
| 3 | host_supported: true, |
Jayant Chowdhary | 5c495c4 | 2017-05-16 14:22:14 -0700 | [diff] [blame] | 4 | vendor_available: true, |
Yifan Hong | a350384 | 2018-07-16 15:20:06 -0700 | [diff] [blame] | 5 | recovery_available: true, |
Justin Yun | d3ab274 | 2017-07-24 15:19:44 +0900 | [diff] [blame] | 6 | vndk: { |
| 7 | enabled: true, |
| 8 | }, |
Colin Cross | da559c7 | 2016-07-12 11:12:29 -0700 | [diff] [blame] | 9 | |
| 10 | srcs: ["tinyxml2.cpp"], |
| 11 | |
Elliott Hughes | 5e6f75e | 2018-01-12 13:01:08 -0800 | [diff] [blame] | 12 | cflags: [ |
| 13 | "-Wall", |
| 14 | "-Werror", |
Chih-Hung Hsieh | f6dd7be | 2018-09-04 14:33:39 -0700 | [diff] [blame] | 15 | "-Wno-implicit-fallthrough", |
| 16 | // tinyxml2.cpp line 436, 441, 446 have -Wimplicit-fallthrough. |
Elliott Hughes | 5e6f75e | 2018-01-12 13:01:08 -0800 | [diff] [blame] | 17 | ], |
Chih-Hung Hsieh | 664df7a | 2017-09-29 11:31:57 -0700 | [diff] [blame] | 18 | |
Steven Moreland | e5ae299 | 2017-07-14 11:54:16 -0700 | [diff] [blame] | 19 | shared_libs: ["liblog"], |
| 20 | |
Colin Cross | da559c7 | 2016-07-12 11:12:29 -0700 | [diff] [blame] | 21 | target: { |
| 22 | android: { |
| 23 | cflags: [ |
| 24 | // LOG_TO_ANDROID_LOGCAT |
| 25 | "-DDEBUG", |
| 26 | "-DANDROID_NDK", |
| 27 | ], |
| 28 | }, |
| 29 | }, |
Elliott Hughes | 657af2b | 2016-09-12 15:34:42 -0700 | [diff] [blame] | 30 | |
| 31 | export_include_dirs: ["."], |
Colin Cross | da559c7 | 2016-07-12 11:12:29 -0700 | [diff] [blame] | 32 | } |
Elliott Hughes | 5e6f75e | 2018-01-12 13:01:08 -0800 | [diff] [blame] | 33 | |
| 34 | cc_test { |
| 35 | name: "tinyxml2-tests", |
| 36 | srcs: ["xmltest.cpp"], |
| 37 | shared_libs: ["libtinyxml2"], |
Elliott Hughes | 5e6f75e | 2018-01-12 13:01:08 -0800 | [diff] [blame] | 38 | data: [ |
Elliott Hughes | fc1d724 | 2018-04-25 12:19:39 -0700 | [diff] [blame] | 39 | "resources/**/*", |
Elliott Hughes | 5e6f75e | 2018-01-12 13:01:08 -0800 | [diff] [blame] | 40 | ], |
| 41 | } |