Home | History | Annotate | Download | only in power
      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 
     15 LOCAL_PATH := $(call my-dir)
     16 
     17 ifeq ($(call is-vendor-board-platform,QCOM),true)
     18 include $(CLEAR_VARS)
     19 
     20 LOCAL_MODULE_RELATIVE_PATH := hw
     21 LOCAL_PROPRIETARY_MODULE := true
     22 LOCAL_MODULE_OWNER := qcom
     23 LOCAL_MODULE_TAGS := optional
     24 
     25 LOCAL_MODULE := android.hardware.power (a] 1.1-service.marlin
     26 LOCAL_INIT_RC := android.hardware.power (a] 1.1-service.marlin.rc
     27 LOCAL_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.
     30 ifeq ($(call is-board-platform-in-list, msm8996), true)
     31 LOCAL_SRC_FILES += power-8996.c
     32 endif
     33 
     34 ifeq ($(TARGET_USES_INTERACTION_BOOST),true)
     35     LOCAL_CFLAGS += -DINTERACTION_BOOST
     36 endif
     37 
     38 ifneq ($(TARGET_USES_AOSP),true)
     39     LOCAL_CFLAGS += -DEXTRA_POWERHAL_HINTS
     40 endif
     41 
     42 LOCAL_SHARED_LIBRARIES := \
     43     libbase \
     44     libcutils \
     45     libhidlbase \
     46     libhidltransport \
     47     liblog \
     48     libutils \
     49     android.hardware.power (a] 1.1 \
     50 
     51 include $(BUILD_EXECUTABLE)
     52 endif
     53