1// 2// Copyright (C) 2018 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_headers { 17 name: "pixel_power_headers", 18 vendor_available: true, 19 export_include_dirs: ["."], 20} 21 22cc_binary { 23 name: "android.hardware.power@1.3-service.pixel-libperfmgr", 24 relative_install_path: "hw", 25 vintf_fragments: ["android.hardware.power@1.3-service.pixel.xml"], 26 init_rc: ["android.hardware.power@1.3-service.pixel-libperfmgr.rc"], 27 srcs: ["service.cpp", "Power.cpp", "InteractionHandler.cpp", 28 "display-helper.cpp"], 29 cflags: [ 30 "-Wall", 31 "-Werror", 32 ], 33 shared_libs: [ 34 "libbase", 35 "libhidlbase", 36 "liblog", 37 "libutils", 38 "libcutils", 39 "android.hardware.power@1.0", 40 "android.hardware.power@1.1", 41 "android.hardware.power@1.2", 42 "android.hardware.power@1.3", 43 "libperfmgr", 44 ], 45 proprietary: true, 46} 47