Merge "Dist lint reports for apps" am: d56abedb02 am: ec7b0b85d9

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

Change-Id: I687efe1b63e316306dce9d3235470cb322e3ed20
This commit is contained in:
Colin Cross
2020-07-16 23:19:43 +00:00
committed by Automerger Merge Worker
3 changed files with 13 additions and 0 deletions

View File

@@ -1617,6 +1617,14 @@ ifneq ($(TARGET_BUILD_APPS),)
$(if $(ALL_MODULES.$(m).BUNDLE),$(ALL_MODULES.$(m).BUNDLE):$(m)-base.zip))
$(call dist-for-goals,apps_only, $(apps_only_bundle_files))
# Dist the lint reports if they exist.
apps_only_lint_report_files := $(foreach m,$(unbundled_build_modules),\
$(foreach report,$(ALL_MODULES.$(m).LINT_REPORTS),\
$(report):$(m)-$(notdir $(report))))
.PHONY: lint-check
lint-check: $(foreach f, $(apps_only_lint_report_files), $(call word-colon,1,$(f)))
$(call dist-for-goals,lint-check, $(apps_only_lint_report_files))
# For uninstallable modules such as static Java library, we have to dist the built file,
# as <module_name>.<suffix>
apps_only_dist_built_files := $(foreach m,$(unbundled_build_modules),$(if $(ALL_MODULES.$(m).INSTALLED),,\