• David 'Digit' Turner's avatar
    build: Add android_debug_resources_temp_dir · 70b843c9
    David 'Digit' Turner authored
    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: default avataragrieve <agrieve@chromium.org>
    Commit-Queue: David Turner <digit@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#601178}
    70b843c9
resource_utils.py 20 KB