Merge "Properly define angle.mk" am: c4c3462f2b

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

Change-Id: Ie14484a2aaa545670e9e895aaf7d8c2b4d1daa6d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Peiyong Lin
2023-04-27 20:26:15 +00:00
committed by Automerger Merge Worker
2 changed files with 26 additions and 4 deletions

View File

@@ -320,10 +320,6 @@ ADDITIONAL_VENDOR_PROPERTIES += \
ro.board.platform=$(TARGET_BOARD_PLATFORM) \
ro.hwui.use_vulkan=$(TARGET_USES_VULKAN)
# Set ro.gfx.angle.supported based on if ANGLE is installed in vendor partition
ADDITIONAL_VENDOR_PROPERTIES += \
ro.gfx.angle.supported=$(USE_ANGLE)
ifdef TARGET_SCREEN_DENSITY
ADDITIONAL_VENDOR_PROPERTIES += \
ro.sf.lcd_density=$(TARGET_SCREEN_DENSITY)

26
target/product/angle.mk Normal file
View File

@@ -0,0 +1,26 @@
#
# Copyright 2023 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# To include ANGLE drivers into the build, add
# $(call inherit-product, $(SRC_TARGET_DIR)/product/angle.mk) to the Makefile.
PRODUCT_PACKAGES := \
libEGL_angle \
libGLESv1_CM_angle \
libGLESv2_angle
# Set ro.gfx.angle.supported based on if ANGLE is installed in vendor partition
PRODUCT_VENDOR_PROPERTIES := ro.gfx.angle.supported=true