build: Add android_debug_resources_temp_dir
Normally, compiling Android resources requires unpacking and processing resource dependencies into a temporary directory before sending the result to 'aapt2 compile', then getting rid of these intermediate files. To help debug issues related to Android resource compilation, this CL introduces a new GN variable that can be set in your args.gn, to force the build to put all such build directories under a top-level directory, and not removing intermediate files in it. This should allow inspecting the intermediate files to better understand what's going on. This is needed to debug issues that appeared in my attempt to change the resources stored in APKs versus bundles, e.g.: https://chromium-review.googlesource.com/c/chromium/src/+/1270947 BUG=879228,882860,897056 R=agrieve@chromium.org, estevenson@chromium.org,yfriedman@chromium.org Change-Id: I76c79a893b0bbdb56ba685f4304da929d11c7e05 Reviewed-on: https://chromium-review.googlesource.com/c/1288436Reviewed-by:agrieve <agrieve@chromium.org> Commit-Queue: David Turner <digit@chromium.org> Cr-Commit-Position: refs/heads/master@{#601178}
Showing
Please register or sign in to comment