2 # Copyright (C) 2020 The LineageOS Project
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 LOCAL_PATH
:= device
/motorola
/exynos9610-common
19 ifneq ($(filter kane troika
, $(TARGET_DEVICE
)),)
21 include $(call all-makefiles-under
,$(LOCAL_PATH
))
25 EGL_LIBS
:= libOpenCL.so libOpenCL.so
.1 libOpenCL.so
.1.1
27 EGL_32_SYMLINKS
:= $(addprefix $(TARGET_OUT_VENDOR
)/lib
/,$(EGL_LIBS
))
28 $(EGL_32_SYMLINKS
): $(LOCAL_INSTALLED_MODULE
)
29 @echo
"EGL 32 lib link: $@"
32 $(hide
) ln
-sf
/vendor
/lib
/egl
/libGLES_mali.so
$@
34 EGL_64_SYMLINKS
:= $(addprefix $(TARGET_OUT_VENDOR
)/lib64
/,$(EGL_LIBS
))
35 $(EGL_64_SYMLINKS
): $(LOCAL_INSTALLED_MODULE
)
36 @echo
"EGL 64 lib link: $@"
39 $(hide
) ln
-sf
/vendor
/lib64
/egl
/libGLES_mali.so
$@
41 VULKAN_LIBS
:= vulkan.exynos9610.so
43 VULKAN_32_SYMLINKS
:= $(addprefix $(TARGET_OUT_VENDOR
)/lib
/hw
/,$(VULKAN_LIBS
))
44 $(VULKAN_32_SYMLINKS
): $(LOCAL_INSTALLED_MODULE
)
45 @echo
"Copy Vulkan lib: $@"
48 $(hide
) cp
$(TARGET_OUT_VENDOR
)/lib
/egl
/libGLES_mali.so
$@
50 VULKAN_64_SYMLINKS
:= $(addprefix $(TARGET_OUT_VENDOR
)/lib64
/hw
/,$(VULKAN_LIBS
))
51 $(VULKAN_64_SYMLINKS
): $(LOCAL_INSTALLED_MODULE
)
52 @echo
"Copy Vulkan lib: $@"
55 $(hide
) cp
$(TARGET_OUT_VENDOR
)/lib64
/egl
/libGLES_mali.so
$@
57 ALL_DEFAULT_INSTALLED_MODULES
+= $(EGL_32_SYMLINKS
) $(EGL_64_SYMLINKS
) $(VULKAN_32_SYMLINKS
) $(VULKAN_64_SYMLINKS
)