1// Copyright (C) 2016 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15cc_library_shared { 16 name: "android.hardware.power@1.0-impl", 17 defaults: ["hidl_defaults"], 18 proprietary: true, 19 relative_install_path: "hw", 20 srcs: ["Power.cpp"], 21 22 cflags: [ 23 "-Wall", 24 "-Werror", 25 ], 26 27 shared_libs: [ 28 "liblog", 29 "libhardware", 30 "libhidlbase", 31 "libhidltransport", 32 "libutils", 33 "android.hardware.power@1.0", 34 ], 35 36} 37 38cc_binary { 39 proprietary: true, 40 defaults: ["hidl_defaults"], 41 relative_install_path: "hw", 42 name: "android.hardware.power@1.0-service", 43 init_rc: ["android.hardware.power@1.0-service.rc"], 44 srcs: ["service.cpp"], 45 46 cflags: [ 47 "-Wall", 48 "-Werror", 49 ], 50 51 shared_libs: [ 52 "liblog", 53 "libdl", 54 "libutils", 55 "libhardware", 56 "libhidlbase", 57 "libhidltransport", 58 "android.hardware.power@1.0", 59 ], 60 61} 62