• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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        memtag_heap: true,
36    },
37}
38
39cc_test {
40    name: "netutils_wrapper_test",
41    defaults: ["netd_defaults"],
42    srcs: [
43        "NetUtilsWrapper-1.0.cpp",
44        "NetUtilsWrapperTest-1.0.cpp",
45    ],
46    shared_libs: [
47        "libbase",
48        "liblog",
49    ],
50}
51