1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "system_netd_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["system_netd_license"],
8}
9
10cc_binary {
11    name: "netutils-wrapper-1.0",
12    defaults: ["netd_defaults"],
13    srcs: [
14        "NetUtilsWrapper-1.0.cpp",
15        "main.cpp",
16    ],
17    shared_libs: [
18        "libbase",
19        "liblog",
20    ],
21    symlinks: [
22        "iptables-wrapper-1.0",
23        "ip6tables-wrapper-1.0",
24        "ndc-wrapper-1.0",
25        "tc-wrapper-1.0",
26        "ip-wrapper-1.0",
27    ],
28    cflags: [
29        "-Werror",
30        "-Wall",
31        "-Wextra",
32    ],
33    sanitize: {
34        cfi: true,
35    },
36}
37
38cc_test {
39    name: "netutils_wrapper_test",
40    defaults: ["netd_defaults"],
41    srcs: [
42        "NetUtilsWrapper-1.0.cpp",
43        "NetUtilsWrapperTest-1.0.cpp",
44    ],
45    shared_libs: [
46        "libbase",
47        "liblog",
48    ],
49}
50