blob: 2864ad050745f5cd3c7a6625be25f8739b513f53 [file] [log] [blame]
package {
default_applicable_licenses: ["system_core_libnetutils_license"],
}
// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "system_core_libnetutils_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"NOTICE",
],
}
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"],
// TODO: remove connectivity module dependency, or have this lib build against the ndk
apex_available: [
"//apex_available:platform",
"com.android.tethering",
],
}
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"],
}