Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Issue 1136653002: Reland: Actually use --extra-r-text-files in process_resources.py (Closed)

Created:
5 years, 7 months ago by Ian Cullinan
Modified:
5 years, 7 months ago
CC:
chromium-reviews, tim+watch_chromium.org, zea+watch_chromium.org, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org, yfriedman+watch_chromium.org, klundberg+watch_chromium.org, jbudorick+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland: Actually use --extra-r-text-files in process_resources.py Originally landed in crrev.com/1104703003 Reverted in crrev.com/1129103002 due to breaking GN APKs with no resouces. This now handles the case where aapt doesn't generate an R.txt (no resources) by creating an empty R.txt. Generate extra packages' R.java files only containing the resources listed in their R.txt files. This significantly reduces the number of DEX field IDs taken up by resources. BUG=480036 R=cjhopman,yfriedman Committed: https://crrev.com/4b5d0300e3fa2a382ac3c1c157247a82583d7ed0 Cr-Commit-Position: refs/heads/master@{#329219}

Patch Set 1 : Original patch #

Patch Set 2 : Handle APKs with no resources and add a --include-all-resources option #

Total comments: 3

Patch Set 3 : Fix nits #

Total comments: 1

Patch Set 4 : Clobber instead of touching empty R.txt output #

Patch Set 5 : No bad_resources apk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -22 lines) Patch
M AUTHORS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M build/android/gyp/process_resources.py View 1 2 3 6 chunks +120 lines, -21 lines 0 comments Download
M build/android/gyp/write_build_config.py View 1 2 chunks +9 lines, -0 lines 0 comments Download
M build/config/android/internal_rules.gni View 1 5 chunks +16 lines, -0 lines 0 comments Download
M build/config/android/rules.gni View 1 4 chunks +10 lines, -0 lines 0 comments Download
M build/java_apk.gypi View 1 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncCustomizationFragmentTest.java View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 38 (14 generated)
Ian Cullinan
cjhopman: build/android yfriedman: chrome/android/sync_shell PTAL This version creates empty R.txt files for targets that have ...
5 years, 7 months ago (2015-05-07 23:00:51 UTC) #2
msw
This doesn't seem to break mojo/runner:mojo_runner_apk as before; thanks!
5 years, 7 months ago (2015-05-07 23:40:16 UTC) #3
Yaron
On 2015/05/07 23:40:16, msw wrote: > This doesn't seem to break mojo/runner:mojo_runner_apk as before; thanks! ...
5 years, 7 months ago (2015-05-08 15:46:00 UTC) #4
gunsch
Note: this doesn't fix the Cast internal case of the APK, but it might be ...
5 years, 7 months ago (2015-05-08 17:48:14 UTC) #5
Ian Cullinan
On 2015/05/08 17:48:14, gunsch wrote: > Note: this doesn't fix the Cast internal case of ...
5 years, 7 months ago (2015-05-08 18:04:08 UTC) #6
cjhopman
https://codereview.chromium.org/1136653002/diff/40001/build/android/gyp/process_resources.py File build/android/gyp/process_resources.py (right): https://codereview.chromium.org/1136653002/diff/40001/build/android/gyp/process_resources.py#newcode410 build/android/gyp/process_resources.py:410: build_utils.Touch(options.r_text_out) I think you want to make sure that ...
5 years, 7 months ago (2015-05-08 18:08:49 UTC) #7
gunsch
On 2015/05/08 18:04:08, Ian Cullinan wrote: > On 2015/05/08 17:48:14, gunsch wrote: > > Note: ...
5 years, 7 months ago (2015-05-08 18:41:27 UTC) #8
Ian Cullinan
On 2015/05/08 18:08:49, cjhopman wrote: > https://codereview.chromium.org/1136653002/diff/40001/build/android/gyp/process_resources.py > File build/android/gyp/process_resources.py (right): > > https://codereview.chromium.org/1136653002/diff/40001/build/android/gyp/process_resources.py#newcode410 > ...
5 years, 7 months ago (2015-05-08 18:44:15 UTC) #9
Ian Cullinan
On 2015/05/08 18:41:27, gunsch wrote: > On 2015/05/08 18:04:08, Ian Cullinan wrote: > > On ...
5 years, 7 months ago (2015-05-08 18:44:55 UTC) #10
cjhopman
lgtm
5 years, 7 months ago (2015-05-08 19:51:51 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1136653002/60001
5 years, 7 months ago (2015-05-08 20:24:25 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/62229)
5 years, 7 months ago (2015-05-08 20:36:16 UTC) #16
Ian Cullinan
+dpranke Looks like I need an OWNER review for //BUILD.gn PTAL
5 years, 7 months ago (2015-05-08 20:38:25 UTC) #18
Dirk Pranke
lgtm
5 years, 7 months ago (2015-05-08 23:05:23 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1136653002/60001
5 years, 7 months ago (2015-05-08 23:12:42 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/64106)
5 years, 7 months ago (2015-05-09 02:22:46 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1136653002/60001
5 years, 7 months ago (2015-05-11 14:22:31 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/63267)
5 years, 7 months ago (2015-05-11 15:39:36 UTC) #27
Ian Cullinan
telemetry_dependencies_unittest thinks that this CL adds a new dependency (the bad_resources example) to Telemetry. Does ...
5 years, 7 months ago (2015-05-11 16:56:46 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1136653002/80001
5 years, 7 months ago (2015-05-11 17:01:53 UTC) #32
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-11 18:37:41 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1136653002/80001
5 years, 7 months ago (2015-05-11 19:03:46 UTC) #36
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 7 months ago (2015-05-11 19:11:42 UTC) #37
commit-bot: I haz the power
5 years, 7 months ago (2015-05-11 19:12:31 UTC) #38
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4b5d0300e3fa2a382ac3c1c157247a82583d7ed0
Cr-Commit-Position: refs/heads/master@{#329219}

Powered by Google App Engine
This is Rietveld 408576698