summaryrefslogtreecommitdiff
path: root/Android.bp
blob: 0f6aec689e7e992c1c691c58e08c78d41ce79dab (plain)
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

cc_library {
    name: "libnl",
    host_supported: true,
    vendor_available: true,
    vndk: {
        enabled: true,
    },

    target: {
        darwin: {
            enabled: false,
        },
    },

    srcs: [
        "lib/cache.c",
        "lib/data.c",
        "lib/nl.c",
        "lib/cache_mngr.c",
        "lib/addr.c",
        "lib/socket.c",
        "lib/fib_lookup/lookup.c",
        "lib/fib_lookup/request.c",
        "lib/msg.c",
        "lib/object.c",
        "lib/attr.c",
        "lib/utils.c",
        "lib/cache_mngt.c",
        "lib/handlers.c",
        "lib/genl/ctrl.c",
        "lib/genl/mngt.c",
        "lib/genl/family.c",
        "lib/genl/genl.c",
        "lib/route/rtnl.c",
        "lib/route/route_utils.c",
        "lib/netfilter/nfnl.c",
        "lib/error.c",
        "lib/version.c",
        "lib/hash.c",
        "lib/hashtable.c",
    ],

    local_include_dirs: [
        "include",
        "include/linux-private",
    ],
    export_include_dirs: ["include"],
    cflags: [
        "-D_BSD_SOURCE",
        "-Wall",
        "-Werror",
        "-Wno-unused-parameter",
        "-Wno-sign-compare",
        "-Wno-missing-field-initializers",
        "-Wno-tautological-compare",
        "-Wno-pointer-arith",
        "-UNDEBUG",
        "-D_GNU_SOURCE",
        "-DSYSCONFDIR=\"\\\"/etc/libnl\\\"\"",
    ],

    sanitize: {
        integer_overflow: true,
    },
}