Revert "Revert "Fix filter rule when checking for apks in PRODUCT_COPY_FILES.""

This reverts commit 06b3255118.
This commit is contained in:
Ying Wang 2014-01-21 20:25:46 -08:00
parent 036d2c1857
commit c6c21d0622
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ is_tests_build := $(filter tests,$(MAKECMDGOALS))
# src:dest pair is the first one to match the same dest"
#$(1): the src:dest pair
define check-product-copy-files
$(if $(filter %.apk, $(1)),$(error \
$(if $(filter %.apk, $(call word-colon, 2, $(1))),$(error \
Prebuilt apk found in PRODUCT_COPY_FILES: $(1), use BUILD_PREBUILT instead!))
endef
# filter out the duplicate <source file>:<dest file> pairs.