xref: /aosp_15_r20/external/libnfnetlink/Android.bp (revision a376eb3279f225b393114c4820c780cbda860a6c)
1*a376eb32SXin Lipackage {
2*a376eb32SXin Li    default_applicable_licenses: ["external_libnfnetlink_license"],
3*a376eb32SXin Li}
4*a376eb32SXin Li
5*a376eb32SXin Li// Added automatically by a large-scale-change that took the approach of
6*a376eb32SXin Li// 'apply every license found to every target'. While this makes sure we respect
7*a376eb32SXin Li// every license restriction, it may not be entirely correct.
8*a376eb32SXin Li//
9*a376eb32SXin Li// e.g. GPL in an MIT project might only apply to the contrib/ directory.
10*a376eb32SXin Li//
11*a376eb32SXin Li// Please consider splitting the single license below into multiple licenses,
12*a376eb32SXin Li// taking care not to lose any license_kind information, and overriding the
13*a376eb32SXin Li// default license using the 'licenses: [...]' property on targets as needed.
14*a376eb32SXin Li//
15*a376eb32SXin Li// For unused files, consider creating a 'fileGroup' with "//visibility:private"
16*a376eb32SXin Li// to attach the license to, and including a comment whether the files may be
17*a376eb32SXin Li// used in the current project.
18*a376eb32SXin Li//
19*a376eb32SXin Li// large-scale-change included anything that looked like it might be a license
20*a376eb32SXin Li// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
21*a376eb32SXin Li//
22*a376eb32SXin Li// Please consider removing redundant or irrelevant files from 'license_text:'.
23*a376eb32SXin Li// See: http://go/android-license-faq
24*a376eb32SXin Lilicense {
25*a376eb32SXin Li    name: "external_libnfnetlink_license",
26*a376eb32SXin Li    visibility: [":__subpackages__"],
27*a376eb32SXin Li    license_kinds: [
28*a376eb32SXin Li        "SPDX-license-identifier-GPL",
29*a376eb32SXin Li        "SPDX-license-identifier-GPL-2.0",
30*a376eb32SXin Li        "SPDX-license-identifier-LGPL",
31*a376eb32SXin Li        "SPDX-license-identifier-MIT",
32*a376eb32SXin Li        "legacy_notice",
33*a376eb32SXin Li        "legacy_unencumbered",
34*a376eb32SXin Li    ],
35*a376eb32SXin Li    license_text: [
36*a376eb32SXin Li        "COPYING",
37*a376eb32SXin Li        "NOTICE",
38*a376eb32SXin Li    ],
39*a376eb32SXin Li}
40*a376eb32SXin Li
41*a376eb32SXin Licc_library_shared {
42*a376eb32SXin Li    name: "libnfnetlink",
43*a376eb32SXin Li    export_include_dirs: ["include"],
44*a376eb32SXin Li    vendor: true,
45*a376eb32SXin Li    srcs: [
46*a376eb32SXin Li        "src/iftable.c",
47*a376eb32SXin Li        "src/libnfnetlink.c",
48*a376eb32SXin Li        "src/rtnl.c",
49*a376eb32SXin Li    ],
50*a376eb32SXin Li    cflags: [
51*a376eb32SXin Li        "-Wall",
52*a376eb32SXin Li        "-Werror",
53*a376eb32SXin Li        "-Wno-error=pointer-sign",
54*a376eb32SXin Li        "-Wno-sign-compare",
55*a376eb32SXin Li        "-Wno-unused-parameter",
56*a376eb32SXin Li        "-Wno-pointer-arith",
57*a376eb32SXin Li    ],
58*a376eb32SXin Li}
59