• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2017 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
15LOCAL_PATH := $(call my-dir)
16
17ifeq ($(call is-vendor-board-platform,QCOM),true)
18include $(CLEAR_VARS)
19
20LOCAL_MODULE_RELATIVE_PATH := hw
21LOCAL_PROPRIETARY_MODULE := true
22LOCAL_MODULE_OWNER := qcom
23LOCAL_MODULE_TAGS := optional
24
25LOCAL_MODULE := android.hardware.power@1.1-service.marlin
26LOCAL_INIT_RC := android.hardware.power@1.1-service.marlin.rc
27LOCAL_SRC_FILES := service.cpp Power.cpp power-helper.c metadata-parser.c utils.c list.c hint-data.c
28
29# Include target-specific files.
30ifeq ($(call is-board-platform-in-list, msm8996), true)
31LOCAL_SRC_FILES += power-8996.c
32endif
33
34ifeq ($(TARGET_USES_INTERACTION_BOOST),true)
35    LOCAL_CFLAGS += -DINTERACTION_BOOST
36endif
37
38ifneq ($(TARGET_USES_AOSP),true)
39    LOCAL_CFLAGS += -DEXTRA_POWERHAL_HINTS
40endif
41
42LOCAL_HEADER_LIBRARIES := libhardware_headers
43
44LOCAL_SHARED_LIBRARIES := \
45    libbase \
46    libcutils \
47    libhidlbase \
48    libhidltransport \
49    liblog \
50    libutils \
51    android.hardware.power@1.1 \
52
53include $(BUILD_EXECUTABLE)
54endif
55