3b56a0226b
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
53 lines
721 B
Text
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"],
|
|
}
|