2021-02-17 04:02:14 +01:00
|
|
|
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",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2017-04-20 01:46:46 +02:00
|
|
|
cc_library_shared {
|
|
|
|
name: "libnetutils",
|
2017-05-17 20:44:29 +02:00
|
|
|
vendor_available: true,
|
2017-07-24 08:19:45 +02:00
|
|
|
vndk: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
2017-04-20 01:46:46 +02:00
|
|
|
|
|
|
|
srcs: [
|
|
|
|
"dhcpclient.c",
|
|
|
|
"dhcpmsg.c",
|
|
|
|
"ifc_utils.c",
|
|
|
|
"packet.c",
|
|
|
|
],
|
|
|
|
|
|
|
|
shared_libs: [
|
|
|
|
"libcutils",
|
|
|
|
"liblog",
|
|
|
|
],
|
|
|
|
|
2021-12-09 06:16:19 +01:00
|
|
|
static_libs: [
|
|
|
|
"libip_checksum",
|
|
|
|
],
|
|
|
|
|
2017-04-20 01:46:46 +02:00
|
|
|
cflags: ["-Werror"],
|
|
|
|
|
|
|
|
export_include_dirs: ["include"],
|
2020-10-27 10:01:12 +01:00
|
|
|
// TODO: remove connectivity module dependency, or have this lib build against the ndk
|
|
|
|
apex_available: [
|
|
|
|
"//apex_available:platform",
|
|
|
|
"com.android.tethering",
|
|
|
|
],
|
2017-04-20 01:46:46 +02:00
|
|
|
}
|
2017-05-16 23:20:15 +02:00
|
|
|
|
|
|
|
cc_binary {
|
2017-05-17 19:47:28 +02:00
|
|
|
name: "dhcpdbg",
|
2017-05-16 23:20:15 +02:00
|
|
|
|
|
|
|
srcs: [
|
|
|
|
"dhcptool.c",
|
|
|
|
],
|
|
|
|
|
|
|
|
shared_libs: [
|
|
|
|
"libnetutils",
|
|
|
|
],
|
|
|
|
|
|
|
|
cflags: ["-Werror"],
|
|
|
|
}
|