blob: eadd8a96f819d939e5a8cf747e964ed0a8e94a9e [file] [log] [blame]
Maggie White26a621f2018-10-26 12:19:41 -07001//
2// Copyright (C) 2017 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
Bob Badour0c82fe12021-03-11 17:38:34 -080016package {
17 default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
Maggie White26a621f2018-10-26 12:19:41 -070020cc_library {
Maggie White5cf0fda2019-04-09 16:52:07 -070021 name: "pixelatoms-cpp",
22 vendor: true,
23 proto: {
24 type: "lite",
25 export_proto_headers: true,
26 },
27 srcs: [
28 "pixelatoms.proto",
29 ],
30}
31
32java_library {
33 name: "pixelatoms-java",
34 vendor: true,
35 proto: {
36 type: "lite",
37 },
38 srcs: [
39 "pixelatoms.proto",
40 ],
Jeongik Cha17362292019-11-06 19:39:40 +090041 sdk_version: "current",
Maggie White5cf0fda2019-04-09 16:52:07 -070042}
43
Jeffrey Huang578e03f2021-04-14 15:03:43 -070044java_library_host {
45 name: "pixelatoms-java_host",
46 proto: {
47 type: "full",
48 },
49 srcs: [
50 "pixelatoms.proto",
51 ],
52}
53
Maggie White5cf0fda2019-04-09 16:52:07 -070054cc_library {
Maggie White26a621f2018-10-26 12:19:41 -070055 name: "libpixelstats",
56 vendor: true,
57 export_include_dirs: ["include"],
58
Chih-Hung Hsieh7f6b5b92022-01-31 17:18:18 -080059 tidy_disabled_srcs: [
60 "MmMetricsReporter.cpp", // b/215238264
61 "WlcReporter.cpp", // b/215238264
62 ],
Maggie White26a621f2018-10-26 12:19:41 -070063 srcs: [
Vova Sharaienkoecf4e772021-03-16 16:56:41 +000064 "BatteryCapacityReporter.cpp",
65 "BatteryEEPROMReporter.cpp",
Stephane Lee747d01f2022-04-27 13:19:31 -070066 "BatteryHealthReporter.cpp",
Stephane Lee43870b42021-09-07 14:18:52 -070067 "ChargeStatsReporter.cpp",
Maggie White26a621f2018-10-26 12:19:41 -070068 "DropDetect.cpp",
Chiawei Wang5db67e62021-03-18 21:11:56 +080069 "MmMetricsReporter.cpp",
George Lee73506ac2021-06-09 10:14:26 -070070 "MitigationStatsReporter.cpp",
Denny cy Leea2653ed2020-01-10 09:36:06 +080071 "OrientationCollector.cpp",
Jack Wu024f2f52021-07-23 13:20:03 +080072 "PcaChargeStats.cpp",
Vova Sharaienkoecf4e772021-03-16 16:56:41 +000073 "StatsHelper.cpp",
Maggie White26a621f2018-10-26 12:19:41 -070074 "SysfsCollector.cpp",
Sayanna Chandula9e3b9452022-08-17 15:01:06 -070075 "ThermalStatsReporter.cpp",
Maggie White26a621f2018-10-26 12:19:41 -070076 "UeventListener.cpp",
Jack Wu58d98952021-05-27 14:34:55 +080077 "WirelessChargeStats.cpp",
Denny cy Leea2653ed2020-01-10 09:36:06 +080078 "WlcReporter.cpp",
Maggie White26a621f2018-10-26 12:19:41 -070079 ],
80 cflags: [
81 "-Wall",
82 "-Werror",
83 ],
84 shared_libs: [
Jiyong Park1122f542021-08-04 12:48:07 +090085 "android.frameworks.stats-V1-ndk",
Maggie White26a621f2018-10-26 12:19:41 -070086 "libbase",
Vova Sharaienkod0045422021-02-03 02:43:59 +000087 "libbinder_ndk",
Maggie White26a621f2018-10-26 12:19:41 -070088 "libcutils",
89 "libhidlbase",
Maggie White26a621f2018-10-26 12:19:41 -070090 "liblog",
Krzysztof KosiƄskib2a08b62021-10-27 23:59:03 +000091 "libprotobuf-cpp-lite",
Maggie White26a621f2018-10-26 12:19:41 -070092 "libutils",
Denny cy Leea2653ed2020-01-10 09:36:06 +080093 "libsensorndkbridge",
Maggie White244e5132019-03-14 15:33:01 -070094 "pixelatoms-cpp",
Maggie White26a621f2018-10-26 12:19:41 -070095 ],
Maggie Whiteeb2b7cf2018-12-05 15:48:09 -080096 export_shared_lib_headers: [
Jiyong Park1122f542021-08-04 12:48:07 +090097 "android.frameworks.stats-V1-ndk",
Vova Sharaienkoecf4e772021-03-16 16:56:41 +000098 "pixelatoms-cpp",
Maggie Whiteeb2b7cf2018-12-05 15:48:09 -080099 ],
Maggie White5cf0fda2019-04-09 16:52:07 -0700100 static_libs: [
101 "chre_client",
102 ],
Maggie White26a621f2018-10-26 12:19:41 -0700103 header_libs: ["chre_api"],
104}