Merge "Check for module names in LOCAL_ADDITIONAL_DEPENDENCIES" am: d1af74bd70

am: 67c3822303

Change-Id: I3af5a86c574f047e31249af255c2ff2b0e2ed489
This commit is contained in:
Dan Willemsen 2017-10-26 17:44:36 +00:00 committed by android-build-merger
commit b87e0577b0
1 changed files with 7 additions and 0 deletions

View File

@ -96,6 +96,13 @@ endif
# base_rules.mk, but it will fix the most common ones.
LOCAL_ADDITIONAL_DEPENDENCIES := $(filter-out %.mk,$(LOCAL_ADDITIONAL_DEPENDENCIES))
my_bad_deps := $(strip $(foreach dep,$(filter-out | ||,$(LOCAL_ADDITIONAL_DEPENDENCIES)),\
$(if $(findstring /,$(dep)),,$(dep))))
ifneq ($(my_bad_deps),)
$(call pretty-warning,"Bad LOCAL_ADDITIONAL_DEPENDENCIES: $(my_bad_deps)")
$(call pretty-error,"LOCAL_ADDITIONAL_DEPENDENCIES must only contain paths (not module names)")
endif
###########################################################
## Validate and define fallbacks for input LOCAL_* variables.
###########################################################