xref: /aosp_15_r20/external/iptables/Android.bp (revision a71a954618bbadd4a345637e5edcf36eec826889)
1package {
2    default_applicable_licenses: ["external_iptables_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_iptables_license",
21    visibility: [":__subpackages__"],
22    license_kinds: [
23        "SPDX-license-identifier-Artistic",
24        "SPDX-license-identifier-Artistic-2.0",
25        "SPDX-license-identifier-GPL",
26        "SPDX-license-identifier-GPL-2.0",
27        "SPDX-license-identifier-LGPL",
28        "SPDX-license-identifier-MIT",
29    ],
30    license_text: [
31        "COPYING",
32    ],
33}
34
35cc_library_headers {
36    name: "iptables_headers",
37    export_include_dirs: ["include"],
38}
39
40cc_library_headers {
41    name: "iptables_config_header",
42    export_include_dirs: ["."],
43}
44
45cc_library_headers {
46    name: "iptables_iptables_headers",
47    export_include_dirs: ["iptables"],
48}
49
50cc_defaults {
51    name: "iptables_defaults",
52
53    cflags: [
54        "-D_LARGEFILE_SOURCE=1",
55        "-D_LARGE_FILES",
56        "-D_FILE_OFFSET_BITS=64",
57        "-D_REENTRANT",
58
59        "-DENABLE_IPV4",
60        "-DENABLE_IPV6",
61
62        "-Wall",
63        "-Werror",
64        "-Wno-pointer-arith",
65        "-Wno-sign-compare",
66        "-Wno-unused-parameter",
67    ],
68
69    header_libs: ["iptables_headers"],
70}
71