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 16cc_library { 17 name: "pixelatoms-cpp", 18 vendor: true, 19 proto: { 20 type: "lite", 21 export_proto_headers: true, 22 }, 23 srcs: [ 24 "pixelatoms.proto", 25 ], 26} 27 28java_library { 29 name: "pixelatoms-java", 30 vendor: true, 31 proto: { 32 type: "lite", 33 }, 34 srcs: [ 35 "pixelatoms.proto", 36 ], 37 sdk_version: "current", 38} 39 40cc_library { 41 name: "libpixelstats", 42 vendor: true, 43 export_include_dirs: ["include"], 44 45 srcs: [ 46 "DropDetect.cpp", 47 "OrientationCollector.cpp", 48 "SysfsCollector.cpp", 49 "UeventListener.cpp", 50 "WlcReporter.cpp", 51 "BatteryCapacityReporter.cpp", 52 "BatteryEEPROMReporter.cpp", 53 ], 54 cflags: [ 55 "-Wall", 56 "-Werror", 57 ], 58 shared_libs: [ 59 "android.frameworks.stats@1.0", 60 "libbase", 61 "libbinder", 62 "libcutils", 63 "libhidlbase", 64 "liblog", 65 "libutils", 66 "libsensorndkbridge", 67 "pixelatoms-cpp", 68 ], 69 export_shared_lib_headers: [ 70 "android.frameworks.stats@1.0", 71 ], 72 static_libs: [ 73 "chre_client", 74 ], 75 header_libs: ["chre_api"], 76} 77 78