Robin Lee | 4fd4d39 | 2017-03-14 14:03:05 +0000 | [diff] [blame] | 1 | cc_library_headers { |
| 2 | name: "libnetd_client_headers", |
| 3 | export_include_dirs: ["include"], |
| 4 | } |
| 5 | |
Bernie Innocenti | 0c53274 | 2018-06-11 14:12:08 +0900 | [diff] [blame] | 6 | cc_defaults { |
| 7 | name: "netd_defaults", |
Erik Kline | ab999f1 | 2018-07-04 11:29:31 +0900 | [diff] [blame] | 8 | cpp_std: "c++17", |
Bernie Innocenti | 9895179 | 2018-06-26 17:13:44 +0900 | [diff] [blame^] | 9 | cflags: [ |
| 10 | "-Wall", |
| 11 | "-Werror", |
| 12 | "-Wnullable-to-nonnull-conversion", |
| 13 | "-Wthread-safety", |
| 14 | "-Wunused-parameter", |
| 15 | ], |
Bernie Innocenti | 0c53274 | 2018-06-11 14:12:08 +0900 | [diff] [blame] | 16 | tidy: true, |
| 17 | tidy_checks: [ |
| 18 | "android-*", |
| 19 | "cert-*", |
| 20 | "clang-analyzer-security*", |
| 21 | ], |
| 22 | tidy_flags: [ |
Bernie Innocenti | 9895179 | 2018-06-26 17:13:44 +0900 | [diff] [blame^] | 23 | // 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 Innocenti | 0c53274 | 2018-06-11 14:12:08 +0900 | [diff] [blame] | 27 | ], |
| 28 | } |
| 29 | |
Robin Lee | 4fd4d39 | 2017-03-14 14:03:05 +0000 | [diff] [blame] | 30 | subdirs = ["*"] |