blob: d4afc1e7e6edfcfe69f001a35181b3d5bace6233 [file] [log] [blame]
Robin Lee4fd4d392017-03-14 14:03:05 +00001cc_library_headers {
2 name: "libnetd_client_headers",
3 export_include_dirs: ["include"],
Jiyong Park965a1ed2020-04-08 23:40:11 +09004 apex_available: [
5 "//apex_available:platform",
6 "com.android.resolv",
7 ],
Robin Lee4fd4d392017-03-14 14:03:05 +00008}
9
Bernie Innocenti0c532742018-06-11 14:12:08 +090010cc_defaults {
11 name: "netd_defaults",
Bernie Innocenti98951792018-06-26 17:13:44 +090012 cflags: [
13 "-Wall",
14 "-Werror",
Bernie Innocenti11cd0202018-10-12 21:27:45 +090015 // Override -Wno-error=implicit-fallthrough from soong
16 "-Werror=implicit-fallthrough",
Bernie Innocentie6305552019-10-30 17:26:00 +090017 "-Werror=sometimes-uninitialized",
18 "-Werror=conditional-uninitialized",
Bernie Innocenti98951792018-06-26 17:13:44 +090019 "-Wnullable-to-nonnull-conversion",
Bernie Innocenti45238a12018-12-04 14:57:48 +090020 "-Wsign-compare",
Bernie Innocenti98951792018-06-26 17:13:44 +090021 "-Wthread-safety",
22 "-Wunused-parameter",
waynema71a0b592018-11-21 13:31:34 +080023 "-Wuninitialized",
Bernie Innocenti98951792018-06-26 17:13:44 +090024 ],
Bernie Innocenti0c532742018-06-11 14:12:08 +090025 tidy: true,
Bernie Innocentidf2640a2019-11-07 16:42:58 +090026 cpp_std: "experimental",
Bernie Innocenti0c532742018-06-11 14:12:08 +090027 tidy_checks: [
28 "android-*",
29 "cert-*",
Bernie Innocenti2a008c52018-10-12 22:30:22 +090030 "clang-analyzer-security*",
Bernie Innocentia5161a02019-01-30 22:40:53 +090031 "google-*",
32 "misc-*",
33 "performance-*",
34 "-cert-err34-c", // TODO: re-enable after removing atoi() and sscanf() calls
35 "-google-readability-*", // Too pedantic
36 "-google-runtime-int", // Too many unavoidable warnings due to strtol()
37 "-google-runtime-references", // Grandfathered usage of pass by non-const reference
38 "-misc-non-private-member-variables-in-classes", // Also complains about structs
Bernie Innocenti2a008c52018-10-12 22:30:22 +090039 ],
40 tidy_flags: [
Bernie Innocentia5161a02019-01-30 22:40:53 +090041 "-warnings-as-errors="
42 + "'android-*'"
43 + ",'clang-analyzer-security*'"
44 + ",'cert-*'"
45 + ",'google-*'"
46 + ",'performance-*'"
47 + ",'misc-*'"
Bernie Innocenti0c532742018-06-11 14:12:08 +090048 ],
49}