blob: 027a42abed8ca3c63bd141b7297588f01879b9c9 [file] [log] [blame]
Amit Pundir6749c912023-09-12 10:52:20 +05301#
2# Copyright (C) 2014 The Android Open-Source 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# GLES
18PRODUCT_PACKAGES := \
19 libGLES_mesa \
20 libEGL_mesa \
21 libGLESv1_CM_mesa \
22 libGLESv2_mesa \
23 libgallium_dri \
24 libglapi
25
26TARGET_BUILD_MESA ?= false
27ifeq ($(TARGET_BUILD_MESA), true)
28 PRODUCT_SOONG_NAMESPACES += \
29 external/mesa3d
30endif
31
32PRODUCT_PROPERTY_OVERRIDES := \
33 ro.sf.lcd_density=160 \
Amit Pundir0f44dfe2023-10-15 21:05:34 +053034 ro.hardware.egl=mesa \
Amit Pundir6749c912023-09-12 10:52:20 +053035 ro.opengles.version=196608 \
36 persist.demo.rotationlock=1
37
38PRODUCT_COPY_FILES += \
39 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
40 frameworks/native/data/etc/android.software.opengles.deqp.level-2022-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.opengles.deqp.level.xml
41
42# Vulkan
43PRODUCT_PACKAGES += \
44 vulkan.freedreno
45
46PRODUCT_COPY_FILES += \
47 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \
48 frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \
49 frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \
50 frameworks/native/data/etc/android.software.vulkan.deqp.level-2021-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml
51
52PRODUCT_VENDOR_PROPERTIES += \
53 ro.hardware.vulkan=freedreno
54
55# Will need to enable this after ANDROID_external_memory_android_hardware_buffer lands in Freedreno
56#TARGET_USES_VULKAN = true