ENABLE_PREOPT := true
ENABLE_PREOPT_BOOT_IMAGES := true ifneq (true,$(filter true,$(WITH_DEXPREOPT))) # Disable dexpreopt for libraries/apps and for boot images.
ENABLE_PREOPT :=
ENABLE_PREOPT_BOOT_IMAGES := elseifneq (true,$(filter true,$(PRODUCT_USES_DEFAULT_ART_CONFIG))) # Disable dexpreopt for libraries/apps and for boot images: not having default # ART config means that some important system properties are not set, which # would result in passing bad arguments to dex2oat and failing the build.
ENABLE_PREOPT :=
ENABLE_PREOPT_BOOT_IMAGES := else ifeq (true,$(DISABLE_PREOPT)) # Disable dexpreopt for libraries/apps, but may compile boot images.
ENABLE_PREOPT := endif ifeq (true,$(DISABLE_PREOPT_BOOT_IMAGES)) # Disable dexpreopt for boot images, but may compile libraries/apps.
ENABLE_PREOPT_BOOT_IMAGES := endif endif
# The default value for LOCAL_DEX_PREOPT
DEX_PREOPT_DEFAULT ?= $(ENABLE_PREOPT)
# Whether to fail immediately if verify_uses_libraries check fails, or to keep # going and restrict dexpreopt to not compile any code for the failed module. # # The intended use case for this flag is to have a smoother migration path for # the Java modules that need to add <uses-library> information in their build # files. The flag allows to quickly silence build errors. This flag should be # used with caution and only as a temporary measure, as it masks real errors # and affects performance.
ifndef RELAX_USES_LIBRARY_CHECK
RELAX_USES_LIBRARY_CHECK := $(if \
$(filter true,$(PRODUCT_BROKEN_VERIFY_USES_LIBRARIES)),true,false) else # Let the environment variable override PRODUCT_BROKEN_VERIFY_USES_LIBRARIES. endif
.KATI_READONLY := RELAX_USES_LIBRARY_CHECK
# The default filter for which files go into the system_other image (if it is # being used). Note that each pattern p here matches both '/<p>' and /system/<p>'. # To bundle everything one should set this to '%'.
SYSTEM_OTHER_ODEX_FILTER ?= \
app/% \
priv-app/% \
system_ext/app/% \
system_ext/priv-app/% \
product/app/% \
product/priv-app/% \
# Global switch to control if updatable boot jars are included in dexpreopt.
DEX_PREOPT_WITH_UPDATABLE_BCP := true
# Conditional to building on linux, as dex2oat currently does not work on darwin. ifeq ($(HOST_OS),linux) # Add mini-debug-info to the boot classpath unless explicitly asked not to. ifneq (false,$(WITH_DEXPREOPT_DEBUG_INFO))
PRODUCT_DEX_PREOPT_BOOT_FLAGS += --generate-mini-debug-info endif endif
# Get value of a property. It is first searched from PRODUCT_VENDOR_PROPERTIES # and then falls back to PRODUCT_SYSTEM_PROPERTIES # $1: name of the property define get-product-default-property
$(strip \
$(eval _prop := $(patsubst $(1)=%,%,$(filter $(1)=%,$(PRODUCT_VENDOR_PROPERTIES))))\
$(if $(_prop),$(_prop),$(patsubst $(1)=%,%,$(filter $(1)=%,$(PRODUCT_SYSTEM_PROPERTIES))))) endef
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.