Bob Badour | 0b14919 | 2021-02-12 17:57:38 -0800 | [diff] [blame] | 1 | package { |
| 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 |
| 24 | license { |
| 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 Pendharkar | c19b7e8 | 2017-04-05 22:06:40 -0700 | [diff] [blame] | 41 | sub_srcs = [ |
Colin Cross | 844d50a | 2017-05-03 22:44:02 -0700 | [diff] [blame] | 42 | "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 Pendharkar | c19b7e8 | 2017-04-05 22:06:40 -0700 | [diff] [blame] | 72 | ] |
| 73 | |
| 74 | cc_library_shared { |
| 75 | name: "libnetfilter_conntrack", |
| 76 | export_include_dirs: ["include"], |
Niranjan Pendharkar | 436dd29 | 2017-04-27 13:19:08 -0700 | [diff] [blame] | 77 | vendor:true, |
Niranjan Pendharkar | c19b7e8 | 2017-04-05 22:06:40 -0700 | [diff] [blame] | 78 | srcs: sub_srcs, |
Colin Cross | 844d50a | 2017-05-03 22:44:02 -0700 | [diff] [blame] | 79 | cflags: [ |
Colin Cross | 08a13c1 | 2017-05-03 22:45:32 -0700 | [diff] [blame] | 80 | "-Wno-unused-parameter", |
| 81 | "-Wno-sign-compare", |
| 82 | "-Wno-pointer-arith", |
| 83 | "-Wall", |
| 84 | "-Werror", |
Colin Cross | 844d50a | 2017-05-03 22:44:02 -0700 | [diff] [blame] | 85 | ], |
Niranjan Pendharkar | c19b7e8 | 2017-04-05 22:06:40 -0700 | [diff] [blame] | 86 | shared_libs: ["libnfnetlink"], |
| 87 | } |