lin
2025-08-14 dae8bad597b6607a449b32bf76c523423f7720ed
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
// We need to build this for both the device (as a shared library)
// and the host (as a static library for tools to use).
 
cc_library {
    name: "libexpat",
    vendor_available: true,
    vndk: {
        enabled: true,
    },
    double_loadable: true,
    host_supported: true,
    unique_host_soname: true,
    sdk_version: "9",
 
    srcs: [
        "lib/loadlibrary.c",
        "lib/xmlparse.c",
        "lib/xmlrole.c",
        "lib/xmltok.c",
    ],
    cflags: [
        "-Wall",
        "-Werror",
        "-Wmissing-prototypes",
        "-Wstrict-prototypes",
        "-Wno-unused-function",
        "-Wno-unused-parameter",
        "-Wno-missing-field-initializers",
        "-fexceptions",
        "-DHAVE_EXPAT_CONFIG_H",
        "-UWIN32_LEAN_AND_MEAN",
    ],
 
    target: {
        darwin: {
            cflags: ["-fno-common"],
        },
 
        windows: {
            enabled: true,
        },
    },
 
    local_include_dirs: ["lib"],
    export_include_dirs: ["lib"],
}