diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2020-07-09 16:35:47 +0900 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2020-07-09 16:35:47 +0900 |
commit | 3b56a0226bd1cddbb89b76df17980c624659eb43 (patch) | |
tree | 56d3b10406d2f583599fa6a9e2bbe7b5e87e08b9 | |
parent | 1e03ef5ac9c43f424b63367b7ab2db8a4e7448ae (diff) |
Add a libipchecksum that contains the C IP checksum code.
This is useful for test code that wants to statically link the IP
checksum code. This is not currently possible because libnetutils
is vendor_available and making it available for static linking is
discouraged.
Test: m libnetutils libipchecksum
Change-Id: Ic7f1864902581b8a5e3626860565b78c168bdb7f
-rw-r--r-- | libnetutils/Android.bp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libnetutils/Android.bp b/libnetutils/Android.bp index 268496f7c..65371fa63 100644 --- a/libnetutils/Android.bp +++ b/libnetutils/Android.bp @@ -23,6 +23,21 @@ cc_library_shared { export_include_dirs: ["include"], } +cc_library_static { + name: "libipchecksum", + + srcs: [ + "checksum.c", + ], + + cflags: [ + "-Wall", + "-Werror", + ], + + export_include_dirs: ["include"], +} + cc_binary { name: "dhcpdbg", |