1 2cc_library { 3 name: "libnl", 4 host_supported: true, 5 vendor_available: true, 6 vndk: { 7 enabled: true, 8 }, 9 10 target: { 11 darwin: { 12 enabled: false, 13 }, 14 }, 15 16 srcs: [ 17 "lib/cache.c", 18 "lib/data.c", 19 "lib/nl.c", 20 "lib/cache_mngr.c", 21 "lib/addr.c", 22 "lib/socket.c", 23 "lib/fib_lookup/lookup.c", 24 "lib/fib_lookup/request.c", 25 "lib/msg.c", 26 "lib/object.c", 27 "lib/attr.c", 28 "lib/utils.c", 29 "lib/cache_mngt.c", 30 "lib/handlers.c", 31 "lib/genl/ctrl.c", 32 "lib/genl/mngt.c", 33 "lib/genl/family.c", 34 "lib/genl/genl.c", 35 "lib/route/rtnl.c", 36 "lib/route/route_utils.c", 37 "lib/netfilter/nfnl.c", 38 "lib/error.c", 39 "lib/version.c", 40 "lib/hash.c", 41 "lib/hashtable.c", 42 ], 43 44 local_include_dirs: [ 45 "include", 46 "include/linux-private", 47 ], 48 export_include_dirs: ["include"], 49 cflags: [ 50 "-D_BSD_SOURCE", 51 "-Wall", 52 "-Werror", 53 "-Wno-unused-parameter", 54 "-Wno-sign-compare", 55 "-Wno-missing-field-initializers", 56 "-Wno-tautological-compare", 57 "-Wno-pointer-arith", 58 "-UNDEBUG", 59 "-D_GNU_SOURCE", 60 "-DSYSCONFDIR=\"\\\"/etc/libnl\\\"\"", 61 ], 62 63 sanitize: { 64 integer_overflow: true, 65 }, 66} 67 68