1package {
2    default_applicable_licenses: ["external_libcap-ng_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_libcap-ng_license",
21    visibility: [":__subpackages__"],
22    license_kinds: [
23        "SPDX-license-identifier-FSFAP",
24        "SPDX-license-identifier-GPL",
25        "SPDX-license-identifier-GPL-2.0",
26        "SPDX-license-identifier-LGPL",
27        "SPDX-license-identifier-LGPL-2.1",
28        "SPDX-license-identifier-LGPL-3.0",
29        "SPDX-license-identifier-MIT",
30        "legacy_notice",
31        "legacy_unencumbered",
32    ],
33    license_text: [
34        "NOTICE",
35    ],
36}
37
38cc_library_static {
39
40    srcs: [
41        "libcap-ng-0.7/src/cap-ng.c",
42        "libcap-ng-0.7/src/lookup_table.c",
43    ],
44
45    export_include_dirs: ["libcap-ng-0.7/src"],
46    name: "libcap-ng",
47    cflags: [
48        "-Wall",
49        "-Werror",
50        "-Wno-enum-conversion",
51        "-Wno-unused-parameter",
52    ],
53}
54