platform_system_core/libnetutils/Android.bp
Lorenzo Colitti 3b56a0226b 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
2020-07-09 16:35:47 +09:00

53 lines
721 B
Text

cc_library_shared {
name: "libnetutils",
vendor_available: true,
vndk: {
enabled: true,
},
srcs: [
"checksum.c",
"dhcpclient.c",
"dhcpmsg.c",
"ifc_utils.c",
"packet.c",
],
shared_libs: [
"libcutils",
"liblog",
],
cflags: ["-Werror"],
export_include_dirs: ["include"],
}
cc_library_static {
name: "libipchecksum",
srcs: [
"checksum.c",
],
cflags: [
"-Wall",
"-Werror",
],
export_include_dirs: ["include"],
}
cc_binary {
name: "dhcpdbg",
srcs: [
"dhcptool.c",
],
shared_libs: [
"libnetutils",
],
cflags: ["-Werror"],
}