• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
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
18cc_library_shared {
19    name: "libnetutils",
20    vendor_available: true,
21    vndk: {
22        enabled: true,
23    },
24
25    srcs: [
26        "dhcpclient.c",
27        "dhcpmsg.c",
28        "ifc_utils.c",
29        "packet.c",
30    ],
31
32    shared_libs: [
33        "libcutils",
34        "liblog",
35    ],
36
37    static_libs: [
38        "libip_checksum",
39    ],
40
41    cflags: ["-Werror"],
42
43    export_include_dirs: ["include"],
44    // TODO: remove connectivity module dependency, or have this lib build against the ndk
45    apex_available: [
46        "//apex_available:platform",
47        "com.android.tethering",
48    ],
49}
50
51cc_binary {
52    name: "dhcpdbg",
53
54    srcs: [
55        "dhcptool.c",
56    ],
57
58    shared_libs: [
59        "libnetutils",
60    ],
61
62    cflags: ["-Werror"],
63}
64