Vishal Bhoj | 78e9049 | 2015-12-07 01:36:32 +0530 | [diff] [blame] | 1 | # Copyright (C) 2010 ARM Limited. All rights reserved. |
Vishal Bhoj | 78e9049 | 2015-12-07 01:36:32 +0530 | [diff] [blame] | 2 | # Copyright (C) 2008 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 | |
Dmitry Shmidt | 9e18cca | 2017-05-03 15:37:20 -0700 | [diff] [blame] | 16 | ifeq ($(TARGET_PRODUCT),hikey) |
Vishal Bhoj | 78e9049 | 2015-12-07 01:36:32 +0530 | [diff] [blame] | 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
| 19 | # HAL module implemenation, not prelinked and stored in |
| 20 | # hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so |
| 21 | include $(CLEAR_VARS) |
Vishal Bhoj | 78e9049 | 2015-12-07 01:36:32 +0530 | [diff] [blame] | 22 | |
Vishal Bhoj | 78e9049 | 2015-12-07 01:36:32 +0530 | [diff] [blame] | 23 | SHARED_MEM_LIBS := libion libhardware |
| 24 | LOCAL_SHARED_LIBRARIES := liblog libcutils libGLESv1_CM $(SHARED_MEM_LIBS) |
John Stultz | 3728745 | 2016-01-20 20:08:46 -0800 | [diff] [blame] | 25 | LOCAL_C_INCLUDES := system/core/include/ |
Vishal Bhoj | 78e9049 | 2015-12-07 01:36:32 +0530 | [diff] [blame] | 26 | LOCAL_CFLAGS := -DLOG_TAG=\"gralloc\" -DGRALLOC_32_BITS -DSTANDARD_LINUX_SCREEN -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) |
| 27 | |
| 28 | LOCAL_SRC_FILES := \ |
| 29 | gralloc_module.cpp \ |
| 30 | alloc_device.cpp \ |
| 31 | framebuffer_device.cpp |
| 32 | |
John Stultz | 3728745 | 2016-01-20 20:08:46 -0800 | [diff] [blame] | 33 | LOCAL_MODULE := gralloc.$(TARGET_BOARD_PLATFORM) |
| 34 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 35 | |
Vishal Bhoj | 78e9049 | 2015-12-07 01:36:32 +0530 | [diff] [blame] | 36 | include $(BUILD_SHARED_LIBRARY) |
Dmitry Shmidt | 9e18cca | 2017-05-03 15:37:20 -0700 | [diff] [blame] | 37 | endif |