blob: e6cb0b3694c76b59a53418b1fda4ca3dc660c609 [file] [log] [blame]
Bob Badour4114d1a2021-02-12 15:38:42 -08001package {
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
Bernie Innocenti0c532742018-06-11 14:12:08 +090010cc_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 ],
Ken Chen2e413c32020-01-13 11:59:53 +080033 sanitize: {
34 cfi: true,
Ken Chen2e413c32020-01-13 11:59:53 +080035 },
Bernie Innocenti0c532742018-06-11 14:12:08 +090036}
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}