• 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        "-fno-strict-aliasing",
37        "-D_GNU_SOURCE",
38        "-Wall",
39        "-Werror",
40        "-Wno-constant-conversion",
41        "-Wno-missing-field-initializers",
42        "-Wno-sign-compare",
43        "-Wno-unused-parameter",
44    ],
45}
46
47cc_binary {
48    name: "ping",
49    defaults: ["iputils_defaults"],
50    srcs: [
51        "ping.c",
52        "ping_common.c",
53    ],
54}
55
56cc_binary {
57    name: "ping6",
58    defaults: ["iputils_defaults"],
59    shared_libs: ["libcrypto"],
60    srcs: [
61        "ping6.c",
62        "ping_common.c",
63    ],
64}
65
66cc_binary {
67    name: "tracepath",
68    defaults: ["iputils_defaults"],
69    srcs: ["tracepath.c"],
70}
71
72cc_binary {
73    name: "tracepath6",
74    defaults: ["iputils_defaults"],
75    srcs: ["tracepath6.c"],
76}
77
78cc_binary {
79    name: "traceroute6",
80    defaults: ["iputils_defaults"],
81    srcs: ["traceroute6.c"],
82}
83
84cc_binary {
85    name: "arping",
86    defaults: ["iputils_defaults"],
87    srcs: ["arping.c"],
88}
89