Vishnu Nair | df6a4f6 | 2020-11-11 20:25:34 -0800 | [diff] [blame] | 1 | cc_library { |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 2 | name: "libtimestats_proto", |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 3 | export_include_dirs: ["include"], |
| 4 | |
| 5 | srcs: [ |
| 6 | "TimeStatsHelper.cpp", |
| 7 | "timestats.proto", |
| 8 | ], |
| 9 | |
| 10 | shared_libs: [ |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 11 | "libbase", |
Yiwei Zhang | 289fdbc | 2018-05-08 15:14:29 -0700 | [diff] [blame] | 12 | "libprotobuf-cpp-lite", |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 13 | ], |
| 14 | |
| 15 | proto: { |
| 16 | export_proto_headers: true, |
| 17 | }, |
| 18 | |
| 19 | cppflags: [ |
| 20 | "-Werror", |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 21 | "-Wno-c++98-compat-pedantic", |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 22 | "-Wno-disabled-macro-expansion", |
Yiwei Zhang | 289fdbc | 2018-05-08 15:14:29 -0700 | [diff] [blame] | 23 | "-Wno-float-conversion", |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 24 | "-Wno-float-equal", |
Yiwei Zhang | 289fdbc | 2018-05-08 15:14:29 -0700 | [diff] [blame] | 25 | "-Wno-format", |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 26 | "-Wno-old-style-cast", |
Yiwei Zhang | 289fdbc | 2018-05-08 15:14:29 -0700 | [diff] [blame] | 27 | "-Wno-padded", |
| 28 | "-Wno-sign-conversion", |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 29 | "-Wno-undef", |
Yiwei Zhang | 289fdbc | 2018-05-08 15:14:29 -0700 | [diff] [blame] | 30 | "-Wno-unused-parameter", |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 31 | ], |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 32 | } |
Jim Long | 8c0f131 | 2020-11-09 15:37:05 -0800 | [diff] [blame] | 33 | |
| 34 | // ==== java host library for timestats proto =========================== |
| 35 | // Note timestats is deprecated and is only used for legacy tests |
| 36 | java_library_host { |
| 37 | name: "host-timestats-proto", |
| 38 | srcs: [ |
| 39 | "timestats.proto", |
| 40 | ], |
| 41 | proto: { |
| 42 | type: "full", |
| 43 | }, |
| 44 | } |
Johanne Demetria | 1ef750b | 2020-12-15 23:24:25 +0000 | [diff] [blame^] | 45 | |
| 46 | // ==== java device library for timestats proto =========================== |
| 47 | // Note timestats is deprecated and is only used for legacy tests |
| 48 | java_library { |
| 49 | name: "timestats-proto", |
| 50 | srcs: [ |
| 51 | "timestats.proto", |
| 52 | ], |
| 53 | proto: { |
| 54 | type: "lite", |
| 55 | }, |
| 56 | sdk_version: "current", |
| 57 | } |