blob: b4c5cf5e8f095217de23221cd57719b23fb755c1 [file] [log] [blame]
Bob Badour8fa4c072021-02-12 15:14:11 -08001package {
2 default_applicable_licenses: ["external_iproute2_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//
19// large-scale-change included anything that looked like it might be a license
20// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
21//
22// Please consider removing redundant or irrelevant files from 'license_text:'.
23// See: http://go/android-license-faq
24license {
25 name: "external_iproute2_license",
26 visibility: [":__subpackages__"],
27 license_kinds: [
28 "SPDX-license-identifier-BSD",
29 "SPDX-license-identifier-GPL",
30 "SPDX-license-identifier-GPL-2.0",
31 "SPDX-license-identifier-GPL-3.0",
32 "SPDX-license-identifier-LGPL",
33 "legacy_unencumbered",
34 ],
35 license_text: [
36 "COPYING",
37 "NOTICE",
38 ],
39}
40
Dan Willemsenf2c876e2018-11-16 13:41:25 -080041NETNS_RUN_DIR = "/mnt/run"
42
43cc_library_headers {
44 name: "iproute2_headers",
45 export_include_dirs: ["include"],
46}
47
48cc_defaults {
49 name: "iproute2_defaults",
50
51 header_libs: ["iproute2_headers"],
52
53 cflags: [
54 "-O2",
55 "-g",
56 "-W",
57 "-Wall",
58 "-Wno-pointer-arith",
59 "-Wno-sign-compare",
60 "-Wno-unused-parameter",
61 "-Werror",
62
63 "-DHAVE_ERRNO_H",
64 "-DHAVE_EXT2_IOCTLS",
65 "-DHAVE_GETPAGESIZE",
66 "-DHAVE_LINUX_FD_H",
67 "-DHAVE_LSEEK64",
68 "-DHAVE_LSEEK64_PROTOTYPE",
69 "-DHAVE_MMAP",
70 "-DHAVE_NETINET_IN_H",
71 "-DHAVE_SELINUX",
72 "-DHAVE_SETNS",
73 "-DHAVE_STDLIB_H",
74 "-DHAVE_STRDUP",
75 "-DHAVE_SYS_IOCTL_H",
76 "-DHAVE_SYS_MMAN_H",
77 "-DHAVE_SYS_MOUNT_H",
78 "-DHAVE_SYS_PRCTL_H",
79 "-DHAVE_SYS_RESOURCE_H",
80 "-DHAVE_SYS_SELECT_H",
81 "-DHAVE_SYS_STAT_H",
82 "-DHAVE_SYS_TYPES_H",
83 "-DHAVE_TYPE_SSIZE_T",
84 "-DHAVE_UNISTD_H",
85 "-DHAVE_UTIME_H",
Maciej Żenczykowski8c0b1d02019-01-16 17:41:10 -080086
87 "-DNO_SHARED_LIBS",
Dan Willemsenf2c876e2018-11-16 13:41:25 -080088 ],
89}