# Package up modules to a zip file. # It preserves the install path of the modules' installed files. # # Input variables: # my_modules: a list of module names # my_package_name: the name of the output zip file. # my_copy_pairs: a list of extra files to install (in src:dest format) # Optional input variables: # my_modules_strict: what happens when a module from my_modules does not exist # "true": error out when a module is missing # "false": print a warning when a module is missing # "": defaults to false currently # Output variables: # my_package_zip: the path to the output zip file. # #
# Iterate over the modules and include their direct dependencies stated in the # LOCAL_REQUIRED_MODULES.
my_modules_and_deps := $(my_modules)
$(foreach m,$(my_modules),\
$(eval _explicitly_required := \
$(strip $(ALL_MODULES.$(m).EXPLICITLY_REQUIRED_FROM_TARGET)\
$(ALL_MODULES.$(m)$(TARGET_2ND_ARCH_MODULE_SUFFIX).EXPLICITLY_REQUIRED_FROM_TARGET)))\
$(eval my_modules_and_deps += $(_explicitly_required))\
)
my_missing_files = $(shell $(callecho-warning,$(my_makefile),$(my_package_name): Unknown installed file for module '$(1)'))$(shell$(callecho-warning,$(my_makefile),$(my_package_name): Some necessary modules may have been skipped by Soong. Check if PRODUCT_SOURCE_ROOT_DIRS is pruning necessary Android.bp files.)) ifeq ($(ALLOW_MISSING_DEPENDENCIES),true) # Ignore unknown installed files on partial builds
my_missing_files = elseifneq ($(my_modules_strict),false)
my_missing_files = $(shell $(callecho-error,$(my_makefile),$(my_package_name): Unknown installed file for module '$(1)'))$(shell$(callecho-warning,$(my_makefile),$(my_package_name): Some necessary modules may have been skipped by Soong. Check if PRODUCT_SOURCE_ROOT_DIRS is pruning necessary Android.bp files.))$(eval my_missing_error := true) endif
# Iterate over modules' built files and installed files; # Calculate the dest files in the output zip file.
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.