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 { 17 name: "libdisppower-pixel", 18 proprietary: true, 19 srcs: [ 20 "disp-power/DisplayLowPower.cpp", 21 "disp-power/InteractionHandler.cpp", 22 ], 23 shared_libs: [ 24 "libbase", 25 "libcutils", 26 "liblog", 27 "libperfmgr", 28 "libutils", 29 ], 30} 31 32cc_library_headers { 33 name: "pixel_power_headers", 34 vendor: true, 35 export_include_dirs: ["hidl"], 36} 37 38cc_binary { 39 name: "[email protected]", 40 relative_install_path: "hw", 41 vintf_fragments: ["hidl/android.hardware.power@1.3-service.pixel.xml"], 42 init_rc: ["hidl/android.hardware.power@1.3-service.pixel-libperfmgr.rc"], 43 srcs: ["hidl/service.cpp", "hidl/Power.cpp"], 44 cflags: [ 45 "-Wall", 46 "-Werror", 47 ], 48 shared_libs: [ 49 "libbase", 50 "libhidlbase", 51 "liblog", 52 "libutils", 53 "libcutils", 54 "[email protected]", 55 "[email protected]", 56 "[email protected]", 57 "[email protected]", 58 "libdisppower-pixel", 59 "libperfmgr", 60 ], 61 proprietary: true, 62} 63 64cc_binary { 65 name: "android.hardware.power-service.pixel-libperfmgr", 66 relative_install_path: "hw", 67 init_rc: ["aidl/android.hardware.power-service.pixel-libperfmgr.rc"], 68 vintf_fragments: ["aidl/android.hardware.power-service.pixel.xml"], 69 vendor: true, 70 shared_libs: [ 71 "android.hardware.power-ndk_platform", 72 "libbase", 73 "libcutils", 74 "liblog", 75 "libutils", 76 "libbinder_ndk", 77 "libdisppower-pixel", 78 "libperfmgr", 79 "pixel-power-ext-ndk_platform", 80 ], 81 srcs: [ 82 "aidl/service.cpp", 83 "aidl/Power.cpp", 84 "aidl/PowerExt.cpp", 85 ], 86} 87