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"], |
Luke Huang | 3b56e5c | 2020-05-26 17:21:28 +0800 | [diff] [blame] | 4 | } |
| 5 | |
| 6 | cc_library_headers { |
| 7 | name: "libnetdbinder_utils_headers", |
| 8 | export_include_dirs: ["include/binder_utils"], |
Jiyong Park | 965a1ed | 2020-04-08 23:40:11 +0900 | [diff] [blame] | 9 | apex_available: [ |
| 10 | "//apex_available:platform", |
| 11 | "com.android.resolv", |
| 12 | ], |
Jooyung Han | 4696979 | 2020-04-16 18:48:35 +0900 | [diff] [blame] | 13 | min_sdk_version: "29", |
Robin Lee | 4fd4d39 | 2017-03-14 14:03:05 +0000 | [diff] [blame] | 14 | } |
| 15 | |
Bernie Innocenti | 0c53274 | 2018-06-11 14:12:08 +0900 | [diff] [blame] | 16 | cc_defaults { |
| 17 | name: "netd_defaults", |
Bernie Innocenti | 9895179 | 2018-06-26 17:13:44 +0900 | [diff] [blame] | 18 | cflags: [ |
| 19 | "-Wall", |
| 20 | "-Werror", |
Bernie Innocenti | 11cd020 | 2018-10-12 21:27:45 +0900 | [diff] [blame] | 21 | // Override -Wno-error=implicit-fallthrough from soong |
| 22 | "-Werror=implicit-fallthrough", |
Bernie Innocenti | e630555 | 2019-10-30 17:26:00 +0900 | [diff] [blame] | 23 | "-Werror=sometimes-uninitialized", |
| 24 | "-Werror=conditional-uninitialized", |
Bernie Innocenti | 9895179 | 2018-06-26 17:13:44 +0900 | [diff] [blame] | 25 | "-Wnullable-to-nonnull-conversion", |
Bernie Innocenti | 45238a1 | 2018-12-04 14:57:48 +0900 | [diff] [blame] | 26 | "-Wsign-compare", |
Bernie Innocenti | 9895179 | 2018-06-26 17:13:44 +0900 | [diff] [blame] | 27 | "-Wthread-safety", |
| 28 | "-Wunused-parameter", |
waynema | 71a0b59 | 2018-11-21 13:31:34 +0800 | [diff] [blame] | 29 | "-Wuninitialized", |
Bernie Innocenti | 9895179 | 2018-06-26 17:13:44 +0900 | [diff] [blame] | 30 | ], |
Bernie Innocenti | 0c53274 | 2018-06-11 14:12:08 +0900 | [diff] [blame] | 31 | tidy: true, |
Bernie Innocenti | df2640a | 2019-11-07 16:42:58 +0900 | [diff] [blame] | 32 | cpp_std: "experimental", |
Bernie Innocenti | 0c53274 | 2018-06-11 14:12:08 +0900 | [diff] [blame] | 33 | tidy_checks: [ |
| 34 | "android-*", |
Maciej Żenczykowski | 053eaef | 2020-04-26 13:33:07 +0000 | [diff] [blame] | 35 | "bugprone-*", |
Bernie Innocenti | 0c53274 | 2018-06-11 14:12:08 +0900 | [diff] [blame] | 36 | "cert-*", |
Bernie Innocenti | 2a008c5 | 2018-10-12 22:30:22 +0900 | [diff] [blame] | 37 | "clang-analyzer-security*", |
Bernie Innocenti | a5161a0 | 2019-01-30 22:40:53 +0900 | [diff] [blame] | 38 | "google-*", |
| 39 | "misc-*", |
| 40 | "performance-*", |
Maciej Żenczykowski | 053eaef | 2020-04-26 13:33:07 +0000 | [diff] [blame] | 41 | "-bugprone-narrowing-conversions", // lots of unsigned -> int conversions |
Bernie Innocenti | a5161a0 | 2019-01-30 22:40:53 +0900 | [diff] [blame] | 42 | "-cert-err34-c", // TODO: re-enable after removing atoi() and sscanf() calls |
| 43 | "-google-readability-*", // Too pedantic |
| 44 | "-google-runtime-int", // Too many unavoidable warnings due to strtol() |
| 45 | "-google-runtime-references", // Grandfathered usage of pass by non-const reference |
| 46 | "-misc-non-private-member-variables-in-classes", // Also complains about structs |
Bernie Innocenti | 2a008c5 | 2018-10-12 22:30:22 +0900 | [diff] [blame] | 47 | ], |
| 48 | tidy_flags: [ |
Maciej Żenczykowski | 59f1893 | 2020-04-30 21:21:53 +0000 | [diff] [blame] | 49 | "-warnings-as-errors=" |
| 50 | + "android-*," |
| 51 | + "bugprone-*," |
| 52 | + "cert-*," |
| 53 | + "clang-analyzer-security*," |
| 54 | + "google-*," |
| 55 | + "misc-*," |
| 56 | + "performance-*" |
Bernie Innocenti | 0c53274 | 2018-06-11 14:12:08 +0900 | [diff] [blame] | 57 | ], |
| 58 | } |