blob: d843436c8e46eb10e55b7e717d7c5c7864ab7d79 [file] [log] [blame]
Vishal Bhoj78e90492015-12-07 01:36:32 +05301# Copyright (C) 2010 ARM Limited. All rights reserved.
Vishal Bhoj78e90492015-12-07 01:36:32 +05302# 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 Shmidt9e18cca2017-05-03 15:37:20 -070016ifeq ($(TARGET_PRODUCT),hikey)
Vishal Bhoj78e90492015-12-07 01:36:32 +053017LOCAL_PATH := $(call my-dir)
18
19# HAL module implemenation, not prelinked and stored in
20# hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so
21include $(CLEAR_VARS)
Vishal Bhoj78e90492015-12-07 01:36:32 +053022
Vishal Bhoj78e90492015-12-07 01:36:32 +053023SHARED_MEM_LIBS := libion libhardware
24LOCAL_SHARED_LIBRARIES := liblog libcutils libGLESv1_CM $(SHARED_MEM_LIBS)
John Stultz37287452016-01-20 20:08:46 -080025LOCAL_C_INCLUDES := system/core/include/
Vishal Bhoj78e90492015-12-07 01:36:32 +053026LOCAL_CFLAGS := -DLOG_TAG=\"gralloc\" -DGRALLOC_32_BITS -DSTANDARD_LINUX_SCREEN -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
27
28LOCAL_SRC_FILES := \
29 gralloc_module.cpp \
30 alloc_device.cpp \
31 framebuffer_device.cpp
32
John Stultz37287452016-01-20 20:08:46 -080033LOCAL_MODULE := gralloc.$(TARGET_BOARD_PLATFORM)
34LOCAL_MODULE_RELATIVE_PATH := hw
35
Vishal Bhoj78e90492015-12-07 01:36:32 +053036include $(BUILD_SHARED_LIBRARY)
Dmitry Shmidt9e18cca2017-05-03 15:37:20 -070037endif