exynos9610: add manifest
[GitHub/moto-9609/android_device_motorola_exynos9610-common.git] / Android.mk
CommitLineData
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
17LOCAL_PATH := device/motorola/exynos9610-common
18
19ifneq ($(filter kane troika, $(TARGET_DEVICE)),)
20
21include $(call all-makefiles-under,$(LOCAL_PATH))
22
15eb9473
JA
23include $(CLEAR_VARS)
24
25EGL_LIBS := libOpenCL.so libOpenCL.so.1 libOpenCL.so.1.1 hw/vulkan.exynos9610.so
26
27EGL_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
34EGL_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
41ALL_DEFAULT_INSTALLED_MODULES += $(EGL_32_SYMLINKS) $(EGL_64_SYMLINKS)
42
43endif