1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
package {
default_applicable_licenses: ["external_tinyxml2_license"],
}
license {
name: "external_tinyxml2_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-BSD",
"SPDX-license-identifier-MIT",
"SPDX-license-identifier-Zlib",
"legacy_unencumbered",
],
license_text: [
"LICENSE.txt",
],
}
// The jquery stuff in docs/ is a bit ambiguous with its use of and/or when talking about the GPL,
// so let's just make it clear that we don't use any of that stuff anyway...
license {
name: "external_tinyxml2_docs_license",
license_kinds: ["SPDX-license-identifier-GPL"],
license_text: [
"LICENSE.txt",
],
}
// ...and prevent anyone from trying to do so:
filegroup {
name: "external_tinyxml2_docs",
srcs: ["docs/**/*"],
visibility: ["//visibility:private"],
}
cc_library {
name: "libtinyxml2",
host_supported: true,
vendor_available: true,
product_available: true,
recovery_available: true,
srcs: ["tinyxml2.cpp"],
cflags: [
"-Wall",
"-Werror",
"-Wno-implicit-fallthrough",
// tinyxml2.cpp line 436, 441, 446 have -Wimplicit-fallthrough.
],
shared_libs: ["liblog"],
target: {
android: {
cflags: [
// LOG_TO_ANDROID_LOGCAT
"-DDEBUG",
"-DANDROID_NDK",
],
},
windows: {
enabled: true,
shared: {
enabled: false,
},
},
},
export_include_dirs: ["."],
min_sdk_version: "S",
apex_available: [
"com.android.art",
"com.android.art.debug",
"com.android.runtime", // used by linkerconfig
"//apex_available:platform", // For odsign.
],
}
cc_test {
name: "tinyxml2-xmltest",
srcs: ["xmltest.cpp"],
shared_libs: ["libtinyxml2"],
data: [
"resources/**/*",
],
}
sh_test {
name: "tinyxml2-tests",
src: "run-tinyxml2-tests-on-android.sh",
filename: "run-tinyxml2-tests-on-android.sh",
test_suites: ["general-tests"],
host_supported: true,
device_supported: false,
require_root: true,
target_required: ["tinyxml2-xmltest"],
}
|