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: [ |
Lorenzo Colitti | 2e4280d | 2019-01-20 11:47:12 +0900 | [diff] [blame] | 26 | "checksum.c", |
Colin Cross | cafe889 | 2017-04-19 16:46:46 -0700 | [diff] [blame] | 27 | "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 VAN | 6297b73 | 2020-10-27 18:01:12 +0900 | [diff] [blame] | 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 | ], |
Colin Cross | cafe889 | 2017-04-19 16:46:46 -0700 | [diff] [blame] | 46 | } |
Dmitry Shmidt | bc59276 | 2017-05-16 14:20:15 -0700 | [diff] [blame] | 47 | |
Lorenzo Colitti | 3b56a02 | 2020-07-09 16:35:47 +0900 | [diff] [blame] | 48 | cc_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 Shmidt | bc59276 | 2017-05-16 14:20:15 -0700 | [diff] [blame] | 63 | cc_binary { |
Dmitry Shmidt | d3b2d4f | 2017-05-17 10:47:28 -0700 | [diff] [blame] | 64 | name: "dhcpdbg", |
Dmitry Shmidt | bc59276 | 2017-05-16 14:20:15 -0700 | [diff] [blame] | 65 | |
| 66 | srcs: [ |
| 67 | "dhcptool.c", |
| 68 | ], |
| 69 | |
| 70 | shared_libs: [ |
| 71 | "libnetutils", |
| 72 | ], |
| 73 | |
| 74 | cflags: ["-Werror"], |
| 75 | } |