blob: 0bca6620948ae9d36c57df61095e5aeef44e11ce [file] [log] [blame]
Bob Badourd69ad692021-02-16 19:02:14 -08001package {
2 default_applicable_licenses: ["system_core_libnetutils_license"],
3}
4
5// Added automatically by a large-scale-change
6// See: http://go/android-license-faq
7license {
8 name: "system_core_libnetutils_license",
9 visibility: [":__subpackages__"],
10 license_kinds: [
11 "SPDX-license-identifier-Apache-2.0",
12 ],
13 license_text: [
14 "NOTICE",
15 ],
16}
17
Colin Crosscafe8892017-04-19 16:46:46 -070018cc_library_shared {
19 name: "libnetutils",
Jayant Chowdhary409731e2017-05-17 11:44:29 -070020 vendor_available: true,
Colin Crosscafe8892017-04-19 16:46:46 -070021
22 srcs: [
23 "dhcpclient.c",
24 "dhcpmsg.c",
25 "ifc_utils.c",
26 "packet.c",
27 ],
28
29 shared_libs: [
30 "libcutils",
31 "liblog",
32 ],
33
Lorenzo Colittiee1e35c2021-12-09 14:16:19 +090034 static_libs: [
35 "libip_checksum",
36 ],
37
Colin Crosscafe8892017-04-19 16:46:46 -070038 cflags: ["-Werror"],
39
40 export_include_dirs: ["include"],
Remi NGUYEN VAN6297b732020-10-27 18:01:12 +090041 // TODO: remove connectivity module dependency, or have this lib build against the ndk
42 apex_available: [
43 "//apex_available:platform",
44 "com.android.tethering",
45 ],
Colin Crosscafe8892017-04-19 16:46:46 -070046}
Dmitry Shmidtbc592762017-05-16 14:20:15 -070047
48cc_binary {
Dmitry Shmidtd3b2d4f2017-05-17 10:47:28 -070049 name: "dhcpdbg",
Dmitry Shmidtbc592762017-05-16 14:20:15 -070050
51 srcs: [
52 "dhcptool.c",
53 ],
54
55 shared_libs: [
56 "libnetutils",
57 ],
58
59 cflags: ["-Werror"],
60}