blob: 972edaa30b81f5b5fd4dc9d4eba85cc2a3aeb58b [file] [log] [blame]
Bob Badour3306e492021-02-25 15:35:37 -08001package {
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 Nairdf6a4f62020-11-11 20:25:34 -080010cc_library {
Yiwei Zhang0102ad22018-05-02 17:37:17 -070011 name: "libtimestats_proto",
Yiwei Zhang0102ad22018-05-02 17:37:17 -070012 export_include_dirs: ["include"],
13
14 srcs: [
15 "TimeStatsHelper.cpp",
16 "timestats.proto",
17 ],
18
19 shared_libs: [
Yiwei Zhang0102ad22018-05-02 17:37:17 -070020 "libbase",
Yiwei Zhang289fdbc2018-05-08 15:14:29 -070021 "libprotobuf-cpp-lite",
Yiwei Zhang0102ad22018-05-02 17:37:17 -070022 ],
23
24 proto: {
25 export_proto_headers: true,
26 },
27
28 cppflags: [
29 "-Werror",
Yiwei Zhang0102ad22018-05-02 17:37:17 -070030 "-Wno-c++98-compat-pedantic",
Yiwei Zhang0102ad22018-05-02 17:37:17 -070031 "-Wno-disabled-macro-expansion",
Yiwei Zhang289fdbc2018-05-08 15:14:29 -070032 "-Wno-float-conversion",
Yiwei Zhang0102ad22018-05-02 17:37:17 -070033 "-Wno-float-equal",
Yiwei Zhang289fdbc2018-05-08 15:14:29 -070034 "-Wno-format",
Yiwei Zhang0102ad22018-05-02 17:37:17 -070035 "-Wno-old-style-cast",
Yiwei Zhang289fdbc2018-05-08 15:14:29 -070036 "-Wno-padded",
37 "-Wno-sign-conversion",
Yiwei Zhang0102ad22018-05-02 17:37:17 -070038 "-Wno-undef",
Yiwei Zhang289fdbc2018-05-08 15:14:29 -070039 "-Wno-unused-parameter",
Yiwei Zhang0102ad22018-05-02 17:37:17 -070040 ],
Yiwei Zhang0102ad22018-05-02 17:37:17 -070041}
Jim Long8c0f1312020-11-09 15:37:05 -080042
43// ==== java host library for timestats proto ===========================
44// Note timestats is deprecated and is only used for legacy tests
45java_library_host {
46 name: "host-timestats-proto",
47 srcs: [
48 "timestats.proto",
49 ],
50 proto: {
51 type: "full",
52 },
53}
Johanne Demetria1ef750b2020-12-15 23:24:25 +000054
55// ==== java device library for timestats proto ===========================
56// Note timestats is deprecated and is only used for legacy tests
57java_library {
58 name: "timestats-proto",
59 srcs: [
60 "timestats.proto",
61 ],
62 proto: {
63 type: "lite",
64 },
65 sdk_version: "current",
66}