Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_native_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_native_license"], |
| 8 | } |
| 9 | |
Vishnu Nair | df6a4f6 | 2020-11-11 20:25:34 -0800 | [diff] [blame] | 10 | cc_library { |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 11 | name: "libtimestats_proto", |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 12 | export_include_dirs: ["include"], |
| 13 | |
| 14 | srcs: [ |
| 15 | "TimeStatsHelper.cpp", |
| 16 | "timestats.proto", |
| 17 | ], |
| 18 | |
| 19 | shared_libs: [ |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 20 | "libbase", |
Yiwei Zhang | 289fdbc | 2018-05-08 15:14:29 -0700 | [diff] [blame] | 21 | "libprotobuf-cpp-lite", |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 22 | ], |
| 23 | |
| 24 | proto: { |
| 25 | export_proto_headers: true, |
| 26 | }, |
| 27 | |
| 28 | cppflags: [ |
| 29 | "-Werror", |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 30 | "-Wno-c++98-compat-pedantic", |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 31 | "-Wno-disabled-macro-expansion", |
Yiwei Zhang | 289fdbc | 2018-05-08 15:14:29 -0700 | [diff] [blame] | 32 | "-Wno-float-conversion", |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 33 | "-Wno-float-equal", |
Yiwei Zhang | 289fdbc | 2018-05-08 15:14:29 -0700 | [diff] [blame] | 34 | "-Wno-format", |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 35 | "-Wno-old-style-cast", |
Yiwei Zhang | 289fdbc | 2018-05-08 15:14:29 -0700 | [diff] [blame] | 36 | "-Wno-padded", |
| 37 | "-Wno-sign-conversion", |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 38 | "-Wno-undef", |
Yiwei Zhang | 289fdbc | 2018-05-08 15:14:29 -0700 | [diff] [blame] | 39 | "-Wno-unused-parameter", |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 40 | ], |
Yiwei Zhang | 0102ad2 | 2018-05-02 17:37:17 -0700 | [diff] [blame] | 41 | } |
Jim Long | 8c0f131 | 2020-11-09 15:37:05 -0800 | [diff] [blame] | 42 | |
| 43 | // ==== java host library for timestats proto =========================== |
| 44 | // Note timestats is deprecated and is only used for legacy tests |
| 45 | java_library_host { |
| 46 | name: "host-timestats-proto", |
| 47 | srcs: [ |
| 48 | "timestats.proto", |
| 49 | ], |
| 50 | proto: { |
| 51 | type: "full", |
| 52 | }, |
| 53 | } |
Johanne Demetria | 1ef750b | 2020-12-15 23:24:25 +0000 | [diff] [blame] | 54 | |
| 55 | // ==== java device library for timestats proto =========================== |
| 56 | // Note timestats is deprecated and is only used for legacy tests |
| 57 | java_library { |
| 58 | name: "timestats-proto", |
| 59 | srcs: [ |
| 60 | "timestats.proto", |
| 61 | ], |
| 62 | proto: { |
| 63 | type: "lite", |
| 64 | }, |
| 65 | sdk_version: "current", |
| 66 | } |