blob: fd1c7b5796226e5c3a0f7e0ce25e8d2f20cb5453 [file] [log] [blame]
# Copyright (C) 2013 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
LOCAL_PATH := $(call my-dir)
# HAL module implemenation stored in
# hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so
include $(CLEAR_VARS)
LOCAL_MODULE_RELATIVE_PATH:= hw
#LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_SHARED_LIBRARIES)/hw
LOCAL_SHARED_LIBRARIES := liblog libcutils libion_exynos libutils libsync libhardware libion
LOCAL_HEADER_LIBRARIES := libhardware_headers
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/../include \
$(TOP)/hardware/samsung_slsi-linaro/exynos/include \
$(TOP)/hardware/samsung_slsi-linaro/exynos5/include \
$(TOP)/system/core/libsync/include
LOCAL_SRC_FILES := \
framebuffer.cpp \
mali_gralloc_bufferaccess.cpp \
mali_gralloc_bufferallocation.cpp \
mali_gralloc_bufferdescriptor.cpp \
mali_gralloc_formats.cpp \
mali_gralloc_public_interface.cpp \
mali_gralloc_reference.cpp
LOCAL_MODULE := gralloc.$(TARGET_SOC)
LOCAL_PROPRIETARY_MODULE := true
LOCAL_CFLAGS += -DLOG_TAG=\"gralloc\" -Wno-missing-field-initializers
ifeq ($(BOARD_USES_EXYNOS5_GRALLOC_RANGE_FLUSH), true)
LOCAL_CFLAGS += -DGRALLOC_RANGE_FLUSH
endif
ifeq ($(BOARD_USES_ALIGN_RESTRICTION), true)
LOCAL_CFLAGS += -DGRALLOC_MSCL_ALIGN_RESTRICTION
LOCAL_CFLAGS += -DGRALLOC_10B_ALIGN_RESTRICTION
endif
ifeq ($(TARGET_SOC_BASE), exynos9820)
LOCAL_CFLAGS += -DGRALLOC_MSCL_ALLOC_RESTRICTION
endif
ifeq ($(BOARD_EXYNOS_S10B_FORMAT_ALIGN), 64)
LOCAL_CFLAGS += -DBOARD_EXYNOS_S10B_FORMAT_ALIGN=$(BOARD_EXYNOS_S10B_FORMAT_ALIGN)
else
LOCAL_CFLAGS += -DBOARD_EXYNOS_S10B_FORMAT_ALIGN=16
endif
# HEVC Encoder H/W restriction
ifeq ($(TARGET_SOC_BASE), exynos7885)
LOCAL_CFLAGS += -DEXYNOS_CHROMA_VSTRIDE_ALIGN -DCHROMA_VALIGN=$(BOARD_MFC_CHROMA_VALIGN)
endif
ifeq ($(TARGET_SOC_BASE), exynos7872)
LOCAL_CFLAGS += -DEXYNOS_CHROMA_VSTRIDE_ALIGN -DCHROMA_VALIGN=$(BOARD_MFC_CHROMA_VALIGN)
endif
include $(BUILD_SHARED_LIBRARY)
####################################################################################################
include $(CLEAR_VARS)
LOCAL_SHARED_LIBRARIES := liblog libcutils libion_exynos libutils android.hardware.graphics.allocator@2.0 android.hardware.graphics.mapper@2.0 \
libsync libhardware libhidlbase libhidltransport
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/../include \
$(TOP)/hardware/samsung_slsi-linaro/exynos/include \
$(TOP)/hardware/samsung_slsi-linaro/exynos5/include \
$(TOP)/system/core/libsync/include
LOCAL_SRC_FILES := \
GrallocWrapper.cpp
LOCAL_PROPRIETARY_MODULE := true
LOCAL_MODULE := libGrallocWrapper
include $(BUILD_SHARED_LIBRARY)