Bob Badour | d69ad69 | 2021-02-16 19:02:14 -0800 | [diff] [blame] | 1 | package { |
| 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 |
| 7 | license { |
| 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 Cross | cafe889 | 2017-04-19 16:46:46 -0700 | [diff] [blame] | 18 | cc_library_shared { |
| 19 | name: "libnetutils", |
Jayant Chowdhary | 409731e | 2017-05-17 11:44:29 -0700 | [diff] [blame] | 20 | vendor_available: true, |
Justin Yun | 6a7e882 | 2017-07-24 15:19:45 +0900 | [diff] [blame] | 21 | vndk: { |
| 22 | enabled: true, |
| 23 | }, |
Colin Cross | cafe889 | 2017-04-19 16:46:46 -0700 | [diff] [blame] | 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 | |
Lorenzo Colitti | ee1e35c | 2021-12-09 14:16:19 +0900 | [diff] [blame] | 37 | static_libs: [ |
| 38 | "libip_checksum", |
| 39 | ], |
| 40 | |
Colin Cross | cafe889 | 2017-04-19 16:46:46 -0700 | [diff] [blame] | 41 | cflags: ["-Werror"], |
| 42 | |
| 43 | export_include_dirs: ["include"], |
Remi NGUYEN VAN | 6297b73 | 2020-10-27 18:01:12 +0900 | [diff] [blame] | 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 | ], |
Colin Cross | cafe889 | 2017-04-19 16:46:46 -0700 | [diff] [blame] | 49 | } |
Dmitry Shmidt | bc59276 | 2017-05-16 14:20:15 -0700 | [diff] [blame] | 50 | |
| 51 | cc_binary { |
Dmitry Shmidt | d3b2d4f | 2017-05-17 10:47:28 -0700 | [diff] [blame] | 52 | name: "dhcpdbg", |
Dmitry Shmidt | bc59276 | 2017-05-16 14:20:15 -0700 | [diff] [blame] | 53 | |
| 54 | srcs: [ |
| 55 | "dhcptool.c", |
| 56 | ], |
| 57 | |
| 58 | shared_libs: [ |
| 59 | "libnetutils", |
| 60 | ], |
| 61 | |
| 62 | cflags: ["-Werror"], |
| 63 | } |