blob: 2864ad050745f5cd3c7a6625be25f8739b513f53 [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,
Justin Yun6a7e8822017-07-24 15:19:45 +090021 vndk: {
22 enabled: true,
23 },
Colin Crosscafe8892017-04-19 16:46:46 -070024
25 srcs: [
Lorenzo Colitti2e4280d2019-01-20 11:47:12 +090026 "checksum.c",
Colin Crosscafe8892017-04-19 16:46:46 -070027 "dhcpclient.c",
28 "dhcpmsg.c",
29 "ifc_utils.c",
30 "packet.c",
31 ],
32
33 shared_libs: [
34 "libcutils",
35 "liblog",
36 ],
37
38 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
Lorenzo Colitti3b56a022020-07-09 16:35:47 +090048cc_library_static {
49 name: "libipchecksum",
50
51 srcs: [
52 "checksum.c",
53 ],
54
55 cflags: [
56 "-Wall",
57 "-Werror",
58 ],
59
60 export_include_dirs: ["include"],
61}
62
Dmitry Shmidtbc592762017-05-16 14:20:15 -070063cc_binary {
Dmitry Shmidtd3b2d4f2017-05-17 10:47:28 -070064 name: "dhcpdbg",
Dmitry Shmidtbc592762017-05-16 14:20:15 -070065
66 srcs: [
67 "dhcptool.c",
68 ],
69
70 shared_libs: [
71 "libnetutils",
72 ],
73
74 cflags: ["-Werror"],
75}