1LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4TARGET := dvalin_ion
5GPU_TARGET_PLATFORM ?= default_8a
6GPU_DRV_VERSION ?= r16p0
7LOCAL_ANDROID_VERSION_NUM := p-${GPU_DRV_VERSION}gralloc1
8
9ifeq ($(BOARD_INSTALL_VULKAN),true)
10LOCAL_ANDROID_VERSION_NUM:=${LOCAL_ANDROID_VERSION_NUM}-vulkan
11endif
12
13LOCAL_MODULE := libGLES_mali
14LOCAL_MULTILIB := both
15LOCAL_MODULE_SUFFIX := .so
16LOCAL_MODULE_CLASS := SHARED_LIBRARIES
17ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26 && echo OK),OK)
18LOCAL_MODULE_PATH    := $(TARGET_OUT_VENDOR)/egl
19LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib/egl
20LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64/egl
21else
22LOCAL_MODULE_PATH    := $(TARGET_OUT_SHARED_LIBRARIES)/egl
23LOCAL_MODULE_PATH_32 := $(TARGET_OUT)/lib/egl
24LOCAL_MODULE_PATH_64 := $(TARGET_OUT)/lib64/egl
25endif
26ifeq ($(TARGET_2ND_ARCH),)
27ifeq ($(TARGET_ARCH),arm)
28LOCAL_SRC_FILES    	 := $(TARGET)/libGLES_mali_$(GPU_TARGET_PLATFORM)_32-$(LOCAL_ANDROID_VERSION_NUM).so
29else
30LOCAL_SRC_FILES    	 := $(TARGET)/libGLES_mali_$(GPU_TARGET_PLATFORM)_64-$(LOCAL_ANDROID_VERSION_NUM).so
31endif
32else
33LOCAL_SRC_FILES_32   := $(TARGET)/libGLES_mali_$(GPU_TARGET_PLATFORM)_32-$(LOCAL_ANDROID_VERSION_NUM).so
34LOCAL_SRC_FILES_64	 := $(TARGET)/libGLES_mali_$(GPU_TARGET_PLATFORM)_64-$(LOCAL_ANDROID_VERSION_NUM).so
35endif
36LOCAL_SHARED_LIBRARIES := android.hardware.graphics.common@1.0 libz libnativewindow libc++ liblog libm libc libdl
37LOCAL_STRIP_MODULE := false
38
39
40
41ifeq ($(BOARD_INSTALL_VULKAN),true)
42LOCAL_POST_INSTALL_CMD = $(hide)\
43	cd $(dir $(LOCAL_INSTALLED_MODULE))/../hw;\
44	ln -sf ../egl/$(notdir $(LOCAL_INSTALLED_MODULE)) ./vulkan.$(TARGET_DEVICE).so
45endif
46
47include $(BUILD_PREBUILT)
48