1LOCAL_PATH:= $(call my-dir) 2include $(CLEAR_VARS) 3 4TARGET := ${GPU_TYPE} 5GPU_TARGET_PLATFORM ?= default_8a 6GPU_DRV_VERSION ?= r16p0 7LOCAL_ANDROID_VERSION_NUM := p-${GPU_DRV_VERSION}gralloc1 8 9LOCAL_MODULE := libGLES_mali 10LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 11LOCAL_LICENSE_CONDITIONS := notice 12LOCAL_MULTILIB := both 13LOCAL_MODULE_SUFFIX := .so 14LOCAL_MODULE_CLASS := SHARED_LIBRARIES 15ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26 && echo OK),OK) 16LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/egl 17LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib/egl 18LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64/egl 19else 20LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/egl 21LOCAL_MODULE_PATH_32 := $(TARGET_OUT)/lib/egl 22LOCAL_MODULE_PATH_64 := $(TARGET_OUT)/lib64/egl 23endif 24ifeq ($(TARGET_2ND_ARCH),) 25ifeq ($(TARGET_ARCH),arm) 26LOCAL_SRC_FILES := $(TARGET)/libGLES_mali_$(GPU_TARGET_PLATFORM)_32-$(LOCAL_ANDROID_VERSION_NUM).so 27else 28LOCAL_SRC_FILES := $(TARGET)/libGLES_mali_$(GPU_TARGET_PLATFORM)_64-$(LOCAL_ANDROID_VERSION_NUM).so 29endif 30else 31LOCAL_SRC_FILES_32 := $(TARGET)/libGLES_mali_$(GPU_TARGET_PLATFORM)_32-$(LOCAL_ANDROID_VERSION_NUM).so 32LOCAL_SRC_FILES_64 := $(TARGET)/libGLES_mali_$(GPU_TARGET_PLATFORM)_64-$(LOCAL_ANDROID_VERSION_NUM).so 33endif 34LOCAL_SHARED_LIBRARIES := android.hardware.graphics.common@1.0 libz libnativewindow libc++ liblog libm libc libdl 35LOCAL_STRIP_MODULE := false 36 37ifeq ($(BOARD_INSTALL_VULKAN),true) 38LOCAL_REQUIRED_MODULES += yukawa_libGLES_mali_vulkan_symlink32 yukawa_libGLES_mali_vulkan_symlink64 39endif 40 41ifeq ($(BOARD_INSTALL_OPENCL),true) 42LOCAL_REQUIRED_MODULES += \ 43 yukawa_libGLES_mali_libOpenCL_symlink32 \ 44 yukawa_libGLES_mali_libOpenCL.1_symlink32 \ 45 yukawa_libGLES_mali_libOpenCL.1.1_symlink32 \ 46 yukawa_libGLES_mali_libOpenCL_symlink64 \ 47 yukawa_libGLES_mali_libOpenCL.1_symlink64 \ 48 yukawa_libGLES_mali_libOpenCL.1.1_symlink64 49endif 50 51include $(BUILD_PREBUILT) 52