blob: 01a8e77ee31df9e75d4aabd4ffa652a6850f65ef [file] [log] [blame]
Robin Lee4fd4d392017-03-14 14:03:05 +00001cc_library_headers {
2 name: "libnetd_client_headers",
3 export_include_dirs: ["include"],
Luke Huang3b56e5c2020-05-26 17:21:28 +08004}
5
6cc_library_headers {
7 name: "libnetdbinder_utils_headers",
8 export_include_dirs: ["include/binder_utils"],
Jiyong Park965a1ed2020-04-08 23:40:11 +09009 apex_available: [
10 "//apex_available:platform",
11 "com.android.resolv",
12 ],
Jooyung Han46969792020-04-16 18:48:35 +090013 min_sdk_version: "29",
Robin Lee4fd4d392017-03-14 14:03:05 +000014}
15
Bernie Innocenti0c532742018-06-11 14:12:08 +090016cc_defaults {
17 name: "netd_defaults",
Bernie Innocenti98951792018-06-26 17:13:44 +090018 cflags: [
19 "-Wall",
20 "-Werror",
Bernie Innocenti11cd0202018-10-12 21:27:45 +090021 // Override -Wno-error=implicit-fallthrough from soong
22 "-Werror=implicit-fallthrough",
Bernie Innocentie6305552019-10-30 17:26:00 +090023 "-Werror=sometimes-uninitialized",
24 "-Werror=conditional-uninitialized",
Bernie Innocenti98951792018-06-26 17:13:44 +090025 "-Wnullable-to-nonnull-conversion",
Bernie Innocenti45238a12018-12-04 14:57:48 +090026 "-Wsign-compare",
Bernie Innocenti98951792018-06-26 17:13:44 +090027 "-Wthread-safety",
28 "-Wunused-parameter",
waynema71a0b592018-11-21 13:31:34 +080029 "-Wuninitialized",
Bernie Innocenti98951792018-06-26 17:13:44 +090030 ],
Bernie Innocenti0c532742018-06-11 14:12:08 +090031 tidy: true,
Bernie Innocentidf2640a2019-11-07 16:42:58 +090032 cpp_std: "experimental",
Bernie Innocenti0c532742018-06-11 14:12:08 +090033 tidy_checks: [
34 "android-*",
Maciej Żenczykowski053eaef2020-04-26 13:33:07 +000035 "bugprone-*",
Bernie Innocenti0c532742018-06-11 14:12:08 +090036 "cert-*",
Bernie Innocenti2a008c52018-10-12 22:30:22 +090037 "clang-analyzer-security*",
Bernie Innocentia5161a02019-01-30 22:40:53 +090038 "google-*",
39 "misc-*",
40 "performance-*",
Maciej Żenczykowski053eaef2020-04-26 13:33:07 +000041 "-bugprone-narrowing-conversions", // lots of unsigned -> int conversions
Bernie Innocentia5161a02019-01-30 22:40:53 +090042 "-cert-err34-c", // TODO: re-enable after removing atoi() and sscanf() calls
43 "-google-readability-*", // Too pedantic
44 "-google-runtime-int", // Too many unavoidable warnings due to strtol()
45 "-google-runtime-references", // Grandfathered usage of pass by non-const reference
46 "-misc-non-private-member-variables-in-classes", // Also complains about structs
Bernie Innocenti2a008c52018-10-12 22:30:22 +090047 ],
48 tidy_flags: [
Maciej Żenczykowski59f18932020-04-30 21:21:53 +000049 "-warnings-as-errors="
50 + "android-*,"
51 + "bugprone-*,"
52 + "cert-*,"
53 + "clang-analyzer-security*,"
54 + "google-*,"
55 + "misc-*,"
56 + "performance-*"
Bernie Innocenti0c532742018-06-11 14:12:08 +090057 ],
58}