Commit | Line | Data |
---|---|---|
c8c25183 JA |
1 | # |
2 | # Copyright (C) 2020 The LineageOS Project | |
3 | # | |
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 | |
7 | # | |
8 | # http://www.apache.org/licenses/LICENSE-2.0 | |
9 | # | |
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. | |
15 | # | |
16 | ||
17 | LOCAL_PATH := device/motorola/exynos9610-common | |
18 | ||
19 | ifneq ($(filter kane troika, $(TARGET_DEVICE)),) | |
20 | ||
21 | include $(call all-makefiles-under,$(LOCAL_PATH)) | |
22 | ||
15eb9473 JA |
23 | include $(CLEAR_VARS) |
24 | ||
25 | EGL_LIBS := libOpenCL.so libOpenCL.so.1 libOpenCL.so.1.1 hw/vulkan.exynos9610.so | |
26 | ||
27 | EGL_32_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/lib/,$(EGL_LIBS)) | |
28 | $(EGL_32_SYMLINKS): $(LOCAL_INSTALLED_MODULE) | |
29 | @echo "EGL 32 lib link: $@" | |
30 | @mkdir -p $(dir $@) | |
31 | @rm -rf $@ | |
32 | $(hide) ln -sf /vendor/lib/egl/libGLES_mali.so $@ | |
33 | ||
34 | EGL_64_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/lib64/,$(EGL_LIBS)) | |
35 | $(EGL_64_SYMLINKS): $(LOCAL_INSTALLED_MODULE) | |
36 | @echo "EGL 64 lib link: $@" | |
37 | @mkdir -p $(dir $@) | |
38 | @rm -rf $@ | |
39 | $(hide) ln -sf /vendor/lib64/egl/libGLES_mali.so $@ | |
40 | ||
41 | ALL_DEFAULT_INSTALLED_MODULES += $(EGL_32_SYMLINKS) $(EGL_64_SYMLINKS) | |
42 | ||
43 | endif |