37 lines
878 B
Makefile
37 lines
878 B
Makefile
#
|
|
# Copyright (C) 2021 The LineageOS Project
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
ifneq ($(filter RMX2170 RMX2061,$(TARGET_DEVICE)),)
|
|
include $(call all-makefiles-under,$(LOCAL_PATH))
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
# Symlinks
|
|
EGL_LIBRARIES := \
|
|
libEGL_adreno.so \
|
|
libGLESv2_adreno.so \
|
|
libq3dtools_adreno.so
|
|
|
|
EGL_32_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/lib/,$(notdir $(EGL_LIBRARIES)))
|
|
$(EGL_32_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
|
@echo "EGL 32 lib link: $@"
|
|
@mkdir -p $(dir $@)
|
|
@rm -rf $@
|
|
$(hide) ln -sf egl/$(notdir $@) $@
|
|
|
|
EGL_64_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/lib64/,$(notdir $(EGL_LIBRARIES)))
|
|
$(EGL_64_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
|
@echo "EGL lib link: $@"
|
|
@mkdir -p $(dir $@)
|
|
@rm -rf $@
|
|
$(hide) ln -sf egl/$(notdir $@) $@
|
|
|
|
ALL_DEFAULT_INSTALLED_MODULES += $(EGL_32_SYMLINKS) $(EGL_64_SYMLINKS)
|
|
|
|
endif
|