• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    default_applicable_licenses: ["external_iputils_license"],
3}
4
5// Added automatically by a large-scale-change that took the approach of
6// 'apply every license found to every target'. While this makes sure we respect
7// every license restriction, it may not be entirely correct.
8//
9// e.g. GPL in an MIT project might only apply to the contrib/ directory.
10//
11// Please consider splitting the single license below into multiple licenses,
12// taking care not to lose any license_kind information, and overriding the
13// default license using the 'licenses: [...]' property on targets as needed.
14//
15// For unused files, consider creating a 'fileGroup' with "//visibility:private"
16// to attach the license to, and including a comment whether the files may be
17// used in the current project.
18// See: http://go/android-license-faq
19license {
20    name: "external_iputils_license",
21    visibility: [":__subpackages__"],
22    license_kinds: [
23        "SPDX-license-identifier-BSD",
24        "SPDX-license-identifier-GPL-2.0",
25        "SPDX-license-identifier-ISC",
26        "legacy_unencumbered",
27    ],
28    license_text: [
29        "NOTICE",
30    ],
31}
32
33cc_defaults {
34    name: "iputils_defaults",
35    cflags: [
36        "-D_GNU_SOURCE",
37        "-Wall",
38        "-Werror",
39        "-Wno-constant-conversion",
40        "-Wno-missing-field-initializers",
41        "-Wno-sign-compare",
42        "-Wno-unused-parameter",
43    ],
44}
45
46cc_binary {
47    name: "ping",
48    defaults: ["iputils_defaults"],
49    srcs: [
50        "ping.c",
51        "ping_common.c",
52    ],
53}
54
55cc_binary {
56    name: "ping6",
57    defaults: ["iputils_defaults"],
58    shared_libs: ["libcrypto"],
59    srcs: [
60        "ping6.c",
61        "ping_common.c",
62    ],
63}
64
65cc_binary {
66    name: "tracepath",
67    defaults: ["iputils_defaults"],
68    srcs: ["tracepath.c"],
69}
70
71cc_binary {
72    name: "tracepath6",
73    defaults: ["iputils_defaults"],
74    srcs: ["tracepath6.c"],
75}
76
77cc_binary {
78    name: "traceroute6",
79    defaults: ["iputils_defaults"],
80    srcs: ["traceroute6.c"],
81}
82
83cc_binary {
84    name: "arping",
85    defaults: ["iputils_defaults"],
86    srcs: ["arping.c"],
87}
88