universal7580: Disable window rounded corner animations
[GitHub/LineageOS/android_device_samsung_universal7580-common.git] / setup-makefiles.sh
CommitLineData
925451e6 1#!/bin/bash
0379b2ac 2#
925451e6
S
3# Copyright (C) 2017-2019 The LineageOS Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
0379b2ac 9# http://www.apache.org/licenses/LICENSE-2.0
925451e6
S
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
0379b2ac 16#
925451e6 17
0379b2ac 18set -e
925451e6
S
19
20VENDOR=samsung
21DEVICE_COMMON=universal7580-common
22
23export INITIAL_COPYRIGHT_YEAR=2017
24
0379b2ac 25# Load extract_utils and do some sanity checks
925451e6 26MY_DIR="${BASH_SOURCE%/*}"
0379b2ac 27if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
925451e6 28
0379b2ac 29LINEAGE_ROOT="${MY_DIR}/../../.."
925451e6 30
0379b2ac
VO
31HELPER="${LINEAGE_ROOT}/vendor/lineage/build/tools/extract_utils.sh"
32if [ ! -f "${HELPER}" ]; then
33 echo "Unable to find helper script at ${HELPER}"
925451e6
S
34 exit 1
35fi
0379b2ac 36source "${HELPER}"
925451e6
S
37
38# Initialize the helper
0379b2ac 39setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${LINEAGE_ROOT}" true
925451e6
S
40
41# Copyright headers and guards
42write_headers "a3xelte a5xelte a7xelte gvwifi gvlte j7elte s5neolte"
43
44# The standard blobs
0379b2ac 45write_makefiles "${MY_DIR}/proprietary-files.txt" true
925451e6 46
cef8f06e
SS
47# The BSP blobs - we put a conditional in case the BSP
48# is actually being built
49printf '\n%s\n' 'ifeq ($(WITH_EXYNOS_BSP),)' >> "$PRODUCTMK"
50printf '\n%s\n' 'ifeq ($(WITH_EXYNOS_BSP),)' >> "$ANDROIDMK"
51
52write_makefiles "$MY_DIR"/proprietary-files-bsp.txt
53
54printf '%s\n' 'endif' >> "$PRODUCTMK"
55printf '%s\n' 'endif' >> "$ANDROIDMK"
56
fd197963
S
57###################################################################################################
58# CUSTOM PART START #
59###################################################################################################
60OUTDIR=vendor/$VENDOR/$DEVICE_COMMON
61(cat << EOF) >> $LINEAGE_ROOT/$OUTDIR/Android.mk
62include \$(CLEAR_VARS)
63LOCAL_MODULE := libGLES_mali
64LOCAL_MODULE_OWNER := samsung
65LOCAL_SRC_FILES := proprietary/vendor/lib/egl/libGLES_mali.so
66LOCAL_MODULE_TAGS := optional
67LOCAL_MODULE_CLASS := SHARED_LIBRARIES
68LOCAL_MODULE_SUFFIX := .so
69LOCAL_MODULE_PATH := \$(TARGET_OUT_VENDOR_SHARED_LIBRARIES)/egl
70
71SYMLINKS := \$(TARGET_OUT)/vendor
72\$(SYMLINKS):
73 @echo "Symlink: vulkan.exynos5.so"
74 @mkdir -p \$@/lib/hw
75 \$(hide) ln -sf ../egl/libGLES_mali.so \$@/lib/hw/vulkan.exynos5.so
76 @echo "Symlink: libOpenCL.so"
77 \$(hide) ln -sf egl/libGLES_mali.so \$@/lib/libOpenCL.so
78 @echo "Symlink: libOpenCL.so.1"
79 \$(hide) ln -sf egl/libGLES_mali.so \$@/lib/libOpenCL.so.1
80 @echo "Symlink: libOpenCL.so.1.1"
81 \$(hide) ln -sf egl/libGLES_mali.so \$@/lib/libOpenCL.so.1.1
82
83ALL_MODULES.\$(LOCAL_MODULE).INSTALLED := \\
84 \$(ALL_MODULES.\$(LOCAL_MODULE).INSTALLED) \$(SYMLINKS)
85
86include \$(BUILD_PREBUILT)
87
88EOF
89
90(cat << EOF) >> $LINEAGE_ROOT/$OUTDIR/$DEVICE_COMMON-vendor.mk
91
92# Create Mali links for Vulkan and OpenCL
93PRODUCT_PACKAGES += libGLES_mali
94EOF
95###################################################################################################
96# CUSTOM PART END #
97###################################################################################################
98
0379b2ac 99# Finish
925451e6 100write_footers