huangcm
2025-02-24 69ed55dec4b2116a19e4cca4393cbc014fce5fb2
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
cc_library {
    name: "libtinyxml2",
    host_supported: true,
    vendor_available: true,
    recovery_available: true,
    vndk: {
        enabled: 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",
            ],
        },
    },
 
    export_include_dirs: ["."],
}
 
cc_test {
    name: "tinyxml2-tests",
    srcs: ["xmltest.cpp"],
    shared_libs: ["libtinyxml2"],
    data: [
        "resources/**/*",
    ],
}