blob: 872dcf5796a02a3bd5beadfca69c365695df6788 [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",
12 "-Wnullable-to-nonnull-conversion",
13 "-Wthread-safety",
14 "-Wunused-parameter",
15 ],
Bernie Innocenti0c532742018-06-11 14:12:08 +090016 tidy: true,
17 tidy_checks: [
18 "android-*",
19 "cert-*",
20 "clang-analyzer-security*",
21 ],
22 tidy_flags: [
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.
26 "-warnings-as-errors=android-*,clang-analyzer-security*,cert-*,-cert-err34-c"
Bernie Innocenti0c532742018-06-11 14:12:08 +090027 ],
28}