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
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20cc_library {
21    name: "libdisppower-pixel",
22    proprietary: true,
23    srcs: [
24        "disp-power/DisplayLowPower.cpp",
25        "disp-power/InteractionHandler.cpp",
26    ],
27     shared_libs: [
28        "libbase",
29        "libcutils",
30        "liblog",
31        "libperfmgr",
32        "libutils",
33    ],
34}
35
36// Deprecated, do not use
37// Use pixel-power-ext for vendor extension
38cc_library_headers {
39    name: "pixel_power_headers",
40    vendor: true,
41    export_include_dirs: ["hidl"],
42}
43
44cc_binary {
45    name: "android.hardware.power-service.pixel-libperfmgr",
46    relative_install_path: "hw",
47    init_rc: ["aidl/android.hardware.power-service.pixel-libperfmgr.rc"],
48    vintf_fragments: ["aidl/android.hardware.power-service.pixel.xml"],
49    vendor: true,
50    shared_libs: [
51        "android.hardware.power-V2-ndk_platform",
52        "libbase",
53        "libcutils",
54        "liblog",
55        "libutils",
56        "libbinder_ndk",
57        "libdisppower-pixel",
58        "libperfmgr",
59        "libprocessgroup",
60        "pixel-power-ext-V1-ndk_platform",
61    ],
62    srcs: [
63        "aidl/service.cpp",
64        "aidl/Power.cpp",
65        "aidl/PowerExt.cpp",
66        "aidl/PowerHintSession.cpp",
67        "aidl/PowerSessionManager.cpp",
68    ],
69}
70