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 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 34 static_libs: [ 35 "libip_checksum", 36 ], 37 38 cflags: ["-Werror"], 39 40 export_include_dirs: ["include"], 41 // 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 ], 46} 47 48cc_binary { 49 name: "dhcpdbg", 50 51 srcs: [ 52 "dhcptool.c", 53 ], 54 55 shared_libs: [ 56 "libnetutils", 57 ], 58 59 cflags: ["-Werror"], 60} 61