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