blob: 821311b3f69d0085f5d435af854b9d3d97cc1bb8 [file] [log] [blame]
Bob Badourc63b3be2021-02-12 15:28:07 -08001package {
2 default_applicable_licenses: ["external_libnfnetlink_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_libnfnetlink_license",
26 visibility: [":__subpackages__"],
27 license_kinds: [
28 "SPDX-license-identifier-GPL",
29 "SPDX-license-identifier-GPL-2.0",
30 "SPDX-license-identifier-LGPL",
31 "SPDX-license-identifier-MIT",
32 "legacy_notice",
33 "legacy_unencumbered",
34 ],
35 license_text: [
36 "COPYING",
37 "NOTICE",
38 ],
39}
40
pkanward3b7d1f2017-02-09 08:31:11 -080041cc_library_shared {
42 name: "libnfnetlink",
43 export_include_dirs: ["include"],
Niranjan Pendharkar6cd19f62017-04-27 13:13:25 -070044 vendor: true,
pkanward3b7d1f2017-02-09 08:31:11 -080045 srcs: [
46 "src/iftable.c",
47 "src/libnfnetlink.c",
48 "src/rtnl.c",
49 ],
50 cflags: [
Chih-Hung Hsieh4c345df2017-09-29 10:15:37 -070051 "-Wall",
52 "-Werror",
53 "-Wno-error=pointer-sign",
pkanward3b7d1f2017-02-09 08:31:11 -080054 "-Wno-sign-compare",
Chih-Hung Hsieh4c345df2017-09-29 10:15:37 -070055 "-Wno-unused-parameter",
56 "-Wno-pointer-arith",
pkanward3b7d1f2017-02-09 08:31:11 -080057 ],
58}