1//----------------------------------------------------------------
2// libxtables
3
4package {
5    // See: http://go/android-license-faq
6    // A large-scale-change added 'default_applicable_licenses' to import
7    // all of the 'license_kinds' from "external_iptables_license"
8    // to get the below license kinds:
9    //   SPDX-license-identifier-GPL-2.0
10    //   SPDX-license-identifier-LGPL
11    default_applicable_licenses: ["external_iptables_license"],
12}
13
14cc_library_static {
15    name: "libxtables",
16    defaults: ["iptables_defaults"],
17
18    header_libs: [
19        "iptables_iptables_headers",
20        "iptables_config_header",
21    ],
22    export_header_lib_headers: ["iptables_headers"],
23
24    cflags: [
25        "-DNO_SHARED_LIBS=1",
26        "-DXTABLES_INTERNAL",
27        "-DXTABLES_LIBDIR=\"xtables_libdir_not_used\"",
28
29        "-Wno-missing-field-initializers",
30    ],
31
32    srcs: [
33        "xtables.c",
34        "xtoptions.c",
35    ],
36}
37