Steven Moreland | b7f0bfb | 2017-04-13 13:55:46 -0700 | [diff] [blame] | 1 | |
| 2 | cc_library { |
| 3 | name: "libnl", |
Tomasz Wiszkowski | 7b3e651 | 2017-11-06 12:37:52 -0800 | [diff] [blame] | 4 | host_supported: true, |
Steven Moreland | ed86cb7 | 2017-04-13 14:00:54 -0700 | [diff] [blame] | 5 | vendor_available: true, |
Justin Yun | 9ee55f7 | 2017-07-24 15:19:44 +0900 | [diff] [blame] | 6 | vndk: { |
| 7 | enabled: true, |
| 8 | }, |
Steven Moreland | b7f0bfb | 2017-04-13 13:55:46 -0700 | [diff] [blame] | 9 | |
Greg Hartman | c0d2fea | 2017-11-30 18:18:27 -0800 | [diff] [blame] | 10 | target: { |
| 11 | darwin: { |
| 12 | enabled: false, |
| 13 | }, |
| 14 | }, |
| 15 | |
Steven Moreland | b7f0bfb | 2017-04-13 13:55:46 -0700 | [diff] [blame] | 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", |
Chih-Hung Hsieh | 6822e39 | 2017-09-29 10:17:10 -0700 | [diff] [blame] | 51 | "-Wall", |
| 52 | "-Werror", |
Steven Moreland | b7f0bfb | 2017-04-13 13:55:46 -0700 | [diff] [blame] | 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 | ], |
Ivan Lozano | d1792ee | 2017-09-26 11:08:08 -0700 | [diff] [blame] | 62 | |
| 63 | sanitize: { |
| 64 | integer_overflow: true, |
| 65 | }, |
Steven Moreland | b7f0bfb | 2017-04-13 13:55:46 -0700 | [diff] [blame] | 66 | } |
| 67 | |