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