blob: 02a8c9536fe6438f08b45d4111890cde12202b34 [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",
Erik Klineab999f12018-07-04 11:29:31 +09008 cpp_std: "c++17",
Bernie Innocenti98951792018-06-26 17:13:44 +09009 cflags: [
10 "-Wall",
11 "-Werror",
Bernie Innocenti11cd0202018-10-12 21:27:45 +090012 // Override -Wno-error=implicit-fallthrough from soong
13 "-Werror=implicit-fallthrough",
Bernie Innocenti98951792018-06-26 17:13:44 +090014 "-Wnullable-to-nonnull-conversion",
15 "-Wthread-safety",
16 "-Wunused-parameter",
17 ],
Bernie Innocenti0c532742018-06-11 14:12:08 +090018 tidy: true,
19 tidy_checks: [
20 "android-*",
21 "cert-*",
Bernie Innocenti98951792018-06-26 17:13:44 +090022 // Disabling cert-err34-c for now because it complains about each use
23 // of atoi() and sscanf() in protocol parsers.
24 // TODO: re-aneble cert-err34-c once we move to Binder.
Bernie Innocenti2a008c52018-10-12 22:30:22 +090025 "-cert-err34-c",
26 "clang-analyzer-security*",
27 // Disabling due to many unavoidable warnings from strtol() usage.
28 "-google-runtime-int",
29 ],
30 tidy_flags: [
31 "-warnings-as-errors=android-*,clang-analyzer-security*,cert-*"
Bernie Innocenti0c532742018-06-11 14:12:08 +090032 ],
33}