summaryrefslogtreecommitdiffstats
path: root/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp51
1 files changed, 51 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..53828f6
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,51 @@
+
+cc_library {
+ name: "libnl",
+ vendor_available: true,
+
+ 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",
+ "-Wno-unused-parameter",
+ "-Wno-sign-compare",
+ "-Wno-missing-field-initializers",
+ "-Wno-tautological-compare",
+ "-Wno-pointer-arith",
+ "-UNDEBUG",
+ "-D_GNU_SOURCE",
+ "-DSYSCONFDIR=\"\\\"/etc/libnl\\\"\"",
+ ],
+}
+