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 16package { 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20cc_library { 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 32java_library { 33 name: "pixelatoms-java", 34 vendor: true, 35 proto: { 36 type: "lite", 37 }, 38 srcs: [ 39 "pixelatoms.proto", 40 ], 41 sdk_version: "current", 42} 43 44java_library_host { 45 name: "pixelatoms-java_host", 46 proto: { 47 type: "full", 48 }, 49 srcs: [ 50 "pixelatoms.proto", 51 ], 52} 53 54cc_library { 55 name: "libpixelstats", 56 vendor: true, 57 export_include_dirs: ["include"], 58 59 srcs: [ 60 "BatteryCapacityReporter.cpp", 61 "BatteryEEPROMReporter.cpp", 62 "DropDetect.cpp", 63 "MmMetricsReporter.cpp", 64 "MitigationStatsReporter.cpp", 65 "OrientationCollector.cpp", 66 "PcaChargeStats.cpp", 67 "StatsHelper.cpp", 68 "SysfsCollector.cpp", 69 "UeventListener.cpp", 70 "WirelessChargeStats.cpp", 71 "WlcReporter.cpp", 72 ], 73 cflags: [ 74 "-Wall", 75 "-Werror", 76 ], 77 shared_libs: [ 78 "android.frameworks.stats-V1-ndk_platform", 79 "libbase", 80 "libbinder_ndk", 81 "libcutils", 82 "libhidlbase", 83 "liblog", 84 "libutils", 85 "libsensorndkbridge", 86 "pixelatoms-cpp", 87 ], 88 export_shared_lib_headers: [ 89 "android.frameworks.stats-V1-ndk_platform", 90 "pixelatoms-cpp", 91 ], 92 static_libs: [ 93 "chre_client", 94 ], 95 header_libs: ["chre_api"], 96} 97