import current state
[GitHub/exynos8895/android_vendor_samsung_universal8895-common.git] / Android.mk
1 # Copyright (C) 2017-2019 The LineageOS Project
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 # This file is generated by device/samsung/universal8895-common/setup-makefiles.sh
16
17 LOCAL_PATH := $(call my-dir)
18
19 ifneq ($(filter dreamlte dream2lte greatlte,$(TARGET_DEVICE)),)
20
21 include $(CLEAR_VARS)
22 LOCAL_MODULE := libGLES_mali
23 LOCAL_MODULE_OWNER := samsung
24 LOCAL_SRC_FILES := proprietary/vendor/lib/egl/libGLES_mali.so
25 LOCAL_MODULE_TAGS := optional
26 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
27 LOCAL_MODULE_SUFFIX := .so
28 LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_SHARED_LIBRARIES)/egl
29
30 SYMLINKS := $(TARGET_OUT)/vendor
31 $(SYMLINKS):
32 @echo "Symlink: vulkan.exynos5.so"
33 @mkdir -p $@/lib/hw
34 $(hide) ln -sf ../egl/libGLES_mali.so $@/lib/hw/vulkan.exynos5.so
35 @echo "Symlink: libOpenCL.so"
36 $(hide) ln -sf egl/libGLES_mali.so $@/lib/libOpenCL.so
37 @echo "Symlink: libOpenCL.so.1"
38 $(hide) ln -sf egl/libGLES_mali.so $@/lib/libOpenCL.so.1
39 @echo "Symlink: libOpenCL.so.1.1"
40 $(hide) ln -sf egl/libGLES_mali.so $@/lib/libOpenCL.so.1.1
41
42 ALL_MODULES.$(LOCAL_MODULE).INSTALLED := \
43 $(ALL_MODULES.$(LOCAL_MODULE).INSTALLED) $(SYMLINKS)
44
45 include $(BUILD_PREBUILT)
46
47 endif