Clear some aapt2.mk inputs after use

my_generated_res_dirs wasn't being reset in some cases in between
different modules. To be safe, clear every input variable that I was sure
was not being used by the caller after aapt2.mk.

Test: m
Test: m ANDROID_BUILDSPEC=vendor/google/build/app_build_spec.mk
Change-Id: I37c861d99637cad77a2a378a119bf66cee373b3a
This commit is contained in:
Dan Willemsen 2017-11-15 17:00:46 -08:00
parent 4dbdb60698
commit d927abe8a8

View file

@ -108,3 +108,13 @@ ifdef LOCAL_EXPORT_PACKAGE_RESOURCES
cp $@ $(PRIVATE_RESOURCE_EXPORT_PACKAGE)
endif
# Clear inputs only used in this file, so that they're not re-used during the next build
my_res_resources :=
my_overlay_resources :=
my_compiled_res_base_dir :=
my_asset_dirs :=
my_full_asset_paths :=
my_apk_split_configs :=
my_generated_res_dirs :=
my_generated_res_dirs_deps :=