Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77734c21 authored by Jiakai Zhang's avatar Jiakai Zhang Committed by Automerger Merge Worker
Browse files

Merge "Add a build-time check for dexpreopting system server jars." am: 3f35c935 am: 7e6337ae

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

Change-Id: I291206db9bf455f3895dcf4ed34401cf42be1d72
parents cd090c2a 7e6337ae
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
# Checks that some critical dexpreopt output files are installed.

# Inputs:
# DISABLE_DEXPREOPT_CHECK: True if the check should be disabled.
# PRODUCT_PACKAGES: The list of packages to be installed for the product.
# ALL_DEFAULT_INSTALLED_MODULES: The full list of modules going to be installed.
# DEXPREOPT_SYSTEMSERVER_ARTIFACTS: The list of compilation artifacts of system server jars, which
# 	is generated by Soong in dexpreopt_check.go.

ifneq (true,$(DISABLE_DEXPREOPT_CHECK))
  # Skip the check if the system server is not installed for the product.
  ifneq (,$(filter services,$(PRODUCT_PACKAGES)))
    $(call maybe-print-list-and-error,\
      $(filter-out $(ALL_DEFAULT_INSTALLED_MODULES),$(DEXPREOPT_SYSTEMSERVER_ARTIFACTS)),\
      Missing compilation artifacts. Dexpreopting is not working for some system server jars \
    )
  endif
endif