blob: 4f08f67f5b59d568c96ca1b12176d4d1cd28ba96 [file] [log] [blame]
Robin Lee4fd4d392017-03-14 14:03:05 +00001cc_library_headers {
2 name: "libnetd_client_headers",
3 export_include_dirs: ["include"],
4}
5
Bernie Innocenti0c532742018-06-11 14:12:08 +09006cc_defaults {
7 name: "netd_defaults",
Bernie Innocenti98951792018-06-26 17:13:44 +09008 cflags: [
9 "-Wall",
10 "-Werror",
Bernie Innocenti11cd0202018-10-12 21:27:45 +090011 // Override -Wno-error=implicit-fallthrough from soong
12 "-Werror=implicit-fallthrough",
Bernie Innocenti98951792018-06-26 17:13:44 +090013 "-Wnullable-to-nonnull-conversion",
Bernie Innocenti45238a12018-12-04 14:57:48 +090014 "-Wsign-compare",
Bernie Innocenti98951792018-06-26 17:13:44 +090015 "-Wthread-safety",
16 "-Wunused-parameter",
waynema71a0b592018-11-21 13:31:34 +080017 "-Wuninitialized",
Bernie Innocenti98951792018-06-26 17:13:44 +090018 ],
Bernie Innocenti0c532742018-06-11 14:12:08 +090019 tidy: true,
20 tidy_checks: [
21 "android-*",
22 "cert-*",
Bernie Innocenti98951792018-06-26 17:13:44 +090023 // Disabling cert-err34-c for now because it complains about each use
24 // of atoi() and sscanf() in protocol parsers.
25 // TODO: re-aneble cert-err34-c once we move to Binder.
Bernie Innocenti2a008c52018-10-12 22:30:22 +090026 "-cert-err34-c",
27 "clang-analyzer-security*",
28 // Disabling due to many unavoidable warnings from strtol() usage.
29 "-google-runtime-int",
30 ],
31 tidy_flags: [
32 "-warnings-as-errors=android-*,clang-analyzer-security*,cert-*"
Bernie Innocenti0c532742018-06-11 14:12:08 +090033 ],
34}