Amit Pundir | 6749c91 | 2023-09-12 10:52:20 +0530 | [diff] [blame] | 1 | # |
| 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 |
| 18 | PRODUCT_PACKAGES := \ |
| 19 | libGLES_mesa \ |
| 20 | libEGL_mesa \ |
| 21 | libGLESv1_CM_mesa \ |
| 22 | libGLESv2_mesa \ |
| 23 | libgallium_dri \ |
| 24 | libglapi |
| 25 | |
| 26 | TARGET_BUILD_MESA ?= false |
| 27 | ifeq ($(TARGET_BUILD_MESA), true) |
| 28 | PRODUCT_SOONG_NAMESPACES += \ |
| 29 | external/mesa3d |
| 30 | endif |
| 31 | |
| 32 | PRODUCT_PROPERTY_OVERRIDES := \ |
| 33 | ro.sf.lcd_density=160 \ |
Amit Pundir | 0f44dfe | 2023-10-15 21:05:34 +0530 | [diff] [blame] | 34 | ro.hardware.egl=mesa \ |
Amit Pundir | 6749c91 | 2023-09-12 10:52:20 +0530 | [diff] [blame] | 35 | ro.opengles.version=196608 \ |
| 36 | persist.demo.rotationlock=1 |
| 37 | |
| 38 | PRODUCT_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 |
| 43 | PRODUCT_PACKAGES += \ |
| 44 | vulkan.freedreno |
| 45 | |
| 46 | PRODUCT_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 | |
| 52 | PRODUCT_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 |