Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbf26d6f authored by Ying Wang's avatar Ying Wang Committed by Android Git Automerger
Browse files

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

* commit 'c97e86dc':
  Create an empty zip file if no dict file found.
parents 18c51262 c97e86dc
Loading
Loading
Loading
Loading
+5 −2
Original line number Original line Diff line number Diff line
@@ -1429,7 +1429,7 @@ endif # EMMA_INSTRUMENT=true
# Only for apps_only build.
# Only for apps_only build.
#
#
ifdef TARGET_BUILD_APPS
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.
# the dependency will be set up later in build/core/main.mk.
$(PROGUARD_DICT_ZIP) :
$(PROGUARD_DICT_ZIP) :
	@echo "Packaging Proguard obfuscation dictionary files."
	@echo "Packaging Proguard obfuscation dictionary files."
@@ -1437,7 +1437,10 @@ $(PROGUARD_DICT_ZIP) :
		if [ -n "$$dict_files" ]; then \
		if [ -n "$$dict_files" ]; then \
		  zip -q $@ $$dict_files; \
		  zip -q $@ $$dict_files; \
		else \
		else \
		  touch $@; \
		  touch $(dir $@)/dummy; \
		  (cd $(dir $@) && zip -q $(notdir $@) dummy); \
		  zip -qd $@ dummy; \
		  rm $(dir $@)/dummy; \
		fi
		fi


endif # TARGET_BUILD_APPS
endif # TARGET_BUILD_APPS