DescriptionAdd whitelist support for grit repack steps.
-Adds new repack_options variables
-Updates pragma to output numeric_id instead of resource_id
-Updates find_used_resources.py to filter for numeric_id
To use the existing system you need to do following steps:
1. Remove out directory (we need to do a clean build)
2. Append " enable_resource_whitelist_generation=1" to GYP_DEFINES
3. Run gyp
4. Build your target (e.g. chrome_shell_apk) saving output to a file
(e.g. build.txt)
5. cat build.txt | tools/resources/find_used_resources.py > whitelist.txt
6. Append " repack_options='--whitelist /path/to/whitelist.txt'"
7. Run gyp
8. Build your target again.
9. ???
10. Profit!!!
BUG=338759
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261611
Patch Set 1 #
Total comments: 6
Patch Set 2 : newt's nits #Patch Set 3 : Change to using _ instead of - #Patch Set 4 : Rebase #
Messages
Total messages: 17 (0 generated)
|