Merge "Make ANGLE part of Android OS system image." into main am: 492220c695 am: 0750e0bd17 am: 42d4ba096f

Original change: https://android-review.googlesource.com/c/platform/build/+/2693296

Change-Id: I6820f9baed79d7ce095f96295276f15970a69c91
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Peiyong Lin 2023-11-02 18:21:09 +00:00 committed by Automerger Merge Worker
commit af41bcb4ed
3 changed files with 13 additions and 2 deletions

View file

@ -15,9 +15,9 @@
#
# To enable ANGLE as the default system GLES drivers, add
# $(call inherit-product, $(SRC_TARGET_DIR)/product/angle_enabled.mk) to the Makefile.
# $(call inherit-product, $(SRC_TARGET_DIR)/product/angle_default.mk) to the Makefile.
$(call inherit-product, $(SRC_TARGET_DIR)/product/angle_supported.mk)
PRODUCT_VENDOR_PROPERTIES += \
PRODUCT_SYSTEM_PROPERTIES += \
persist.graphics.egl=angle

View file

@ -18,6 +18,7 @@
# $(call inherit-product, $(SRC_TARGET_DIR)/product/angle_supported.mk) to the Makefile.
# By default, this will allow ANGLE binaries to coexist with native GLES drivers.
ifneq ($(RELEASE_ANGLE_ON_SYSTEM),true)
PRODUCT_PACKAGES += \
libEGL_angle \
libGLESv1_CM_angle \
@ -25,3 +26,4 @@ PRODUCT_PACKAGES += \
# Set ro.gfx.angle.supported based on if ANGLE is installed in vendor partition
PRODUCT_VENDOR_PROPERTIES += ro.gfx.angle.supported=true
endif

View file

@ -350,6 +350,15 @@ ifeq (,$(DISABLE_WALLPAPER_BACKUP))
WallpaperBackup
endif
# Moving angle from vendor to system
ifeq ($(RELEASE_ANGLE_ON_SYSTEM),true)
PRODUCT_PACKAGES += \
libEGL_angle \
libGLESv1_CM_angle \
libGLESv2_angle
$(call soong_config_set,angle,angle_on_system,true)
endif
# For testing purposes
ifeq ($(FORCE_AUDIO_SILENT), true)
PRODUCT_SYSTEM_PROPERTIES += ro.audio.silent=1