blob: 610796c2cab1e965d8ecdc4725b572962f7a58fa [file] [log] [blame]
Bob Badour0b149192021-02-12 17:57:38 -08001package {
2 default_applicable_licenses: ["external_libnetfilter_conntrack_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_libnetfilter_conntrack_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
Niranjan Pendharkarc19b7e82017-04-05 22:06:40 -070041sub_srcs = [
Colin Cross844d50a2017-05-03 22:44:02 -070042 "src/main.c",
43 "src/callback.c",
44 "src/conntrack/api.c",
45 "src/conntrack/bsf.c",
46 "src/conntrack/compare.c",
47 "src/conntrack/copy.c",
48 "src/conntrack/filter.c",
49 "src/conntrack/filter_dump.c",
50 "src/conntrack/getter.c",
51 "src/conntrack/grp.c",
52 "src/conntrack/grp_getter.c",
53 "src/conntrack/grp_setter.c",
54 "src/conntrack/setter.c",
55 "src/conntrack/snprintf.c",
56 "src/conntrack/snprintf_default.c",
57 "src/conntrack/snprintf_xml.c",
58 "src/conntrack/stack.c",
59 "src/conntrack/parse.c",
60 "src/conntrack/objopt.c",
61 "src/conntrack/build.c",
62 "src/conntrack/labels.c",
63 "src/expect/api.c",
64 "src/expect/build.c",
65 "src/expect/compare.c",
66 "src/expect/getter.c",
67 "src/expect/parse.c",
68 "src/expect/setter.c",
69 "src/expect/snprintf.c",
70 "src/expect/snprintf_default.c",
71 "src/expect/snprintf_xml.c",
Niranjan Pendharkarc19b7e82017-04-05 22:06:40 -070072]
73
74cc_library_shared {
75 name: "libnetfilter_conntrack",
76 export_include_dirs: ["include"],
Niranjan Pendharkar436dd292017-04-27 13:19:08 -070077 vendor:true,
Niranjan Pendharkarc19b7e82017-04-05 22:06:40 -070078 srcs: sub_srcs,
Colin Cross844d50a2017-05-03 22:44:02 -070079 cflags: [
Colin Cross08a13c12017-05-03 22:45:32 -070080 "-Wno-unused-parameter",
81 "-Wno-sign-compare",
82 "-Wno-pointer-arith",
83 "-Wall",
84 "-Werror",
Colin Cross844d50a2017-05-03 22:44:02 -070085 ],
Niranjan Pendharkarc19b7e82017-04-05 22:06:40 -070086 shared_libs: ["libnfnetlink"],
87}