blob: 7dcec5c67f20422768f2852fa81ade833dba60d1 [file] [log] [blame]
Vishal Bhoj78e90492015-12-07 01:36:32 +05301#
2# Copyright (C) 2010 ARM Limited. All rights reserved.
3#
4# Copyright (C) 2008 The Android Open Source Project
5#
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17
18
19LOCAL_PATH := $(call my-dir)
20
21# HAL module implemenation, not prelinked and stored in
22# hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so
23include $(CLEAR_VARS)
24LOCAL_PRELINK_MODULE := false
25
26ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 21 && echo OK),OK)
27 LOCAL_MODULE_RELATIVE_PATH := hw
28else
29 LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
30endif
31
32MALI_DDK_TEST_PATH := hardware/arm/
33
34LOCAL_MODULE := gralloc.$(TARGET_BOARD_PLATFORM)
35#LOCAL_MODULE_TAGS := optional
36
37# Mali-200/300/400MP DDK
38MALI_DDK_PATH := hardware/arm/mali
39#SHARED_MEM_LIBS := libUMP
40SHARED_MEM_LIBS := libion libhardware
41LOCAL_SHARED_LIBRARIES := liblog libcutils libGLESv1_CM $(SHARED_MEM_LIBS)
42
43LOCAL_C_INCLUDES := system/core/include/ $(MALI_DDK_PATH)/include
44# Include the UMP header files
45# LOCAL_C_INCLUDES += $(MALI_DDK_PATH)/src/ump/include
46
47LOCAL_CFLAGS := -DLOG_TAG=\"gralloc\" -DGRALLOC_32_BITS -DSTANDARD_LINUX_SCREEN -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
48
49LOCAL_SRC_FILES := \
50 gralloc_module.cpp \
51 alloc_device.cpp \
52 framebuffer_device.cpp
53
54#LOCAL_CFLAGS+= -DMALI_VSYNC_EVENT_REPORT_ENABLE
55include $(BUILD_SHARED_LIBRARY)