am fc9cd4f5: Create an empty zip file if no dict file found.

* commit 'fc9cd4f5c17eb51f09bb3fe14526894c7fa33ba6':
  Create an empty zip file if no dict file found.
This commit is contained in:
Ying Wang
2013-08-28 22:11:44 -07:00
committed by Android Git Automerger

View File

@@ -1396,7 +1396,7 @@ endif # EMMA_INSTRUMENT=true
# Only for apps_only build.
#
ifdef TARGET_BUILD_APPS
PROGUARD_DICT_ZIP := $(PRODUCT_OUT)/proguard-dict-$(FILE_NAME_TAG).zip
PROGUARD_DICT_ZIP := $(PRODUCT_OUT)/$(TARGET_PRODUCT)-proguard-dict-$(FILE_NAME_TAG).zip
# the dependency will be set up later in build/core/main.mk.
$(PROGUARD_DICT_ZIP) :
@echo "Packaging Proguard obfuscation dictionary files."
@@ -1404,7 +1404,10 @@ $(PROGUARD_DICT_ZIP) :
if [ -n "$$dict_files" ]; then \
zip -q $@ $$dict_files; \
else \
touch $@; \
touch $(dir $@)/dummy; \
(cd $(dir $@) && zip -q $(notdir $@) dummy); \
zip -qd $@ dummy; \
rm $(dir $@)/dummy; \
fi
endif # TARGET_BUILD_APPS