build: clean up proguard_flag_files

we should clean up proguard_flag_files if LOCAL_PROGUARD_ENABLED
not defined in current module in case legacy proguard_flag_files
slips into current jack_all_deps dependencies.

Test: make -j8

Change-Id: I45618fc8e821ab7a8b964fa621824209e1e9894c
Signed-off-by: ShuJie Wang <wangshujie@xiaomi.com>
This commit is contained in:
ShuJie Wang 2017-11-06 14:35:52 +08:00
parent 61bc4f790e
commit 76e93ba6cf
1 changed files with 1 additions and 0 deletions

View File

@ -726,6 +726,7 @@ full_classes_proguard_jar := $(full_classes_pre_proguard_jar)
endif # !USE_R8 endif # !USE_R8
else # LOCAL_PROGUARD_ENABLED not defined else # LOCAL_PROGUARD_ENABLED not defined
proguard_flag_files :=
full_classes_proguard_jar := $(full_classes_pre_proguard_jar) full_classes_proguard_jar := $(full_classes_pre_proguard_jar)
endif # LOCAL_PROGUARD_ENABLED defined endif # LOCAL_PROGUARD_ENABLED defined