Maggie White | 26a621f | 2018-10-26 12:19:41 -0700 | [diff] [blame] | 1 | // |
| 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 Badour | 0c82fe1 | 2021-03-11 17:38:34 -0800 | [diff] [blame] | 16 | package { |
| 17 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 18 | } |
| 19 | |
Maggie White | 26a621f | 2018-10-26 12:19:41 -0700 | [diff] [blame] | 20 | cc_library { |
Maggie White | 5cf0fda | 2019-04-09 16:52:07 -0700 | [diff] [blame] | 21 | 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 | |
| 32 | java_library { |
| 33 | name: "pixelatoms-java", |
| 34 | vendor: true, |
| 35 | proto: { |
| 36 | type: "lite", |
| 37 | }, |
| 38 | srcs: [ |
| 39 | "pixelatoms.proto", |
| 40 | ], |
Jeongik Cha | 1736229 | 2019-11-06 19:39:40 +0900 | [diff] [blame] | 41 | sdk_version: "current", |
Maggie White | 5cf0fda | 2019-04-09 16:52:07 -0700 | [diff] [blame] | 42 | } |
| 43 | |
Jeffrey Huang | 578e03f | 2021-04-14 15:03:43 -0700 | [diff] [blame] | 44 | java_library_host { |
| 45 | name: "pixelatoms-java_host", |
| 46 | proto: { |
| 47 | type: "full", |
| 48 | }, |
| 49 | srcs: [ |
| 50 | "pixelatoms.proto", |
| 51 | ], |
| 52 | } |
| 53 | |
Maggie White | 5cf0fda | 2019-04-09 16:52:07 -0700 | [diff] [blame] | 54 | cc_library { |
Maggie White | 26a621f | 2018-10-26 12:19:41 -0700 | [diff] [blame] | 55 | name: "libpixelstats", |
| 56 | vendor: true, |
| 57 | export_include_dirs: ["include"], |
| 58 | |
Chih-Hung Hsieh | 7f6b5b9 | 2022-01-31 17:18:18 -0800 | [diff] [blame] | 59 | tidy_disabled_srcs: [ |
| 60 | "MmMetricsReporter.cpp", // b/215238264 |
| 61 | "WlcReporter.cpp", // b/215238264 |
| 62 | ], |
Maggie White | 26a621f | 2018-10-26 12:19:41 -0700 | [diff] [blame] | 63 | srcs: [ |
Vova Sharaienko | ecf4e77 | 2021-03-16 16:56:41 +0000 | [diff] [blame] | 64 | "BatteryCapacityReporter.cpp", |
| 65 | "BatteryEEPROMReporter.cpp", |
Stephane Lee | 747d01f | 2022-04-27 13:19:31 -0700 | [diff] [blame] | 66 | "BatteryHealthReporter.cpp", |
Stephane Lee | 43870b4 | 2021-09-07 14:18:52 -0700 | [diff] [blame] | 67 | "ChargeStatsReporter.cpp", |
Maggie White | 26a621f | 2018-10-26 12:19:41 -0700 | [diff] [blame] | 68 | "DropDetect.cpp", |
Chiawei Wang | 5db67e6 | 2021-03-18 21:11:56 +0800 | [diff] [blame] | 69 | "MmMetricsReporter.cpp", |
George Lee | 73506ac | 2021-06-09 10:14:26 -0700 | [diff] [blame] | 70 | "MitigationStatsReporter.cpp", |
Denny cy Lee | a2653ed | 2020-01-10 09:36:06 +0800 | [diff] [blame] | 71 | "OrientationCollector.cpp", |
Jack Wu | 024f2f5 | 2021-07-23 13:20:03 +0800 | [diff] [blame] | 72 | "PcaChargeStats.cpp", |
Vova Sharaienko | ecf4e77 | 2021-03-16 16:56:41 +0000 | [diff] [blame] | 73 | "StatsHelper.cpp", |
Maggie White | 26a621f | 2018-10-26 12:19:41 -0700 | [diff] [blame] | 74 | "SysfsCollector.cpp", |
Sayanna Chandula | 9e3b945 | 2022-08-17 15:01:06 -0700 | [diff] [blame] | 75 | "ThermalStatsReporter.cpp", |
Maggie White | 26a621f | 2018-10-26 12:19:41 -0700 | [diff] [blame] | 76 | "UeventListener.cpp", |
Jack Wu | 58d9895 | 2021-05-27 14:34:55 +0800 | [diff] [blame] | 77 | "WirelessChargeStats.cpp", |
Denny cy Lee | a2653ed | 2020-01-10 09:36:06 +0800 | [diff] [blame] | 78 | "WlcReporter.cpp", |
Maggie White | 26a621f | 2018-10-26 12:19:41 -0700 | [diff] [blame] | 79 | ], |
| 80 | cflags: [ |
| 81 | "-Wall", |
| 82 | "-Werror", |
| 83 | ], |
| 84 | shared_libs: [ |
Jiyong Park | 1122f54 | 2021-08-04 12:48:07 +0900 | [diff] [blame] | 85 | "android.frameworks.stats-V1-ndk", |
Maggie White | 26a621f | 2018-10-26 12:19:41 -0700 | [diff] [blame] | 86 | "libbase", |
Vova Sharaienko | d004542 | 2021-02-03 02:43:59 +0000 | [diff] [blame] | 87 | "libbinder_ndk", |
Maggie White | 26a621f | 2018-10-26 12:19:41 -0700 | [diff] [blame] | 88 | "libcutils", |
| 89 | "libhidlbase", |
Maggie White | 26a621f | 2018-10-26 12:19:41 -0700 | [diff] [blame] | 90 | "liblog", |
Krzysztof KosiĆski | b2a08b6 | 2021-10-27 23:59:03 +0000 | [diff] [blame] | 91 | "libprotobuf-cpp-lite", |
Maggie White | 26a621f | 2018-10-26 12:19:41 -0700 | [diff] [blame] | 92 | "libutils", |
Denny cy Lee | a2653ed | 2020-01-10 09:36:06 +0800 | [diff] [blame] | 93 | "libsensorndkbridge", |
Maggie White | 244e513 | 2019-03-14 15:33:01 -0700 | [diff] [blame] | 94 | "pixelatoms-cpp", |
Maggie White | 26a621f | 2018-10-26 12:19:41 -0700 | [diff] [blame] | 95 | ], |
Maggie White | eb2b7cf | 2018-12-05 15:48:09 -0800 | [diff] [blame] | 96 | export_shared_lib_headers: [ |
Jiyong Park | 1122f54 | 2021-08-04 12:48:07 +0900 | [diff] [blame] | 97 | "android.frameworks.stats-V1-ndk", |
Vova Sharaienko | ecf4e77 | 2021-03-16 16:56:41 +0000 | [diff] [blame] | 98 | "pixelatoms-cpp", |
Maggie White | eb2b7cf | 2018-12-05 15:48:09 -0800 | [diff] [blame] | 99 | ], |
Maggie White | 5cf0fda | 2019-04-09 16:52:07 -0700 | [diff] [blame] | 100 | static_libs: [ |
| 101 | "chre_client", |
| 102 | ], |
Maggie White | 26a621f | 2018-10-26 12:19:41 -0700 | [diff] [blame] | 103 | header_libs: ["chre_api"], |
| 104 | } |