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

Issue 11516024: [Android] Add process_resources.py to build Android library resources. (Closed)

Created:
8 years ago by newt (away)
Modified:
8 years ago
Reviewers:
cjhopman, Yaron, frankf
CC:
chromium-reviews, ilevy+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, peter+watch_chromium.org, klundberg+watch_chromium.org, frankf+watch_chromium.org
Visibility:
Public.

Description

[Android] Add process_resources.py to build Android library resources. This generates the copy of R.java used to compile the library jar (formerly done in gyp) and adds a new step to crunch image resources. The imaging crunching step fixes the link preview 9-patch drawing artifact, among other benefits. BUG=163602 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172655

Patch Set 1 #

Total comments: 1

Patch Set 2 : use individual options instead of -D #

Total comments: 2

Patch Set 3 : pylint #

Total comments: 2

Patch Set 4 : use res_dir not java_in_dir/res #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -21 lines) Patch
A build/android/process_resources.py View 1 2 1 chunk +77 lines, -0 lines 0 comments Download
M build/java.gypi View 1 2 3 2 chunks +15 lines, -21 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
newt (away)
This approach uses a python script to generate R.java and crunch resources. I wrote this ...
8 years ago (2012-12-11 02:12:19 UTC) #1
cjhopman
https://codereview.chromium.org/11516024/diff/1/build/android/process_resources.py File build/android/process_resources.py (right): https://codereview.chromium.org/11516024/diff/1/build/android/process_resources.py#newcode21 build/android/process_resources.py:21: parser.add_option('-D', action='append', dest='defines', I'd prefer that each of the ...
8 years ago (2012-12-11 16:54:28 UTC) #2
Yaron
Direction looks good
8 years ago (2012-12-11 18:28:30 UTC) #3
newt (away)
Ready for real review.
8 years ago (2012-12-11 22:03:45 UTC) #4
frankf
Style nit. Please run gpylint as well. https://codereview.chromium.org/11516024/diff/4002/build/android/process_resources.py File build/android/process_resources.py (right): https://codereview.chromium.org/11516024/diff/4002/build/android/process_resources.py#newcode19 build/android/process_resources.py:19: parser.add_option('--android_sdk', help='path ...
8 years ago (2012-12-11 22:27:01 UTC) #5
newt (away)
https://codereview.chromium.org/11516024/diff/4002/build/android/process_resources.py File build/android/process_resources.py (right): https://codereview.chromium.org/11516024/diff/4002/build/android/process_resources.py#newcode19 build/android/process_resources.py:19: parser.add_option('--android_sdk', help='path to the Android SDK folder') On 2012/12/11 ...
8 years ago (2012-12-11 23:55:32 UTC) #6
Yaron
https://codereview.chromium.org/11516024/diff/9002/build/java.gypi File build/java.gypi (right): https://codereview.chromium.org/11516024/diff/9002/build/java.gypi#newcode88 build/java.gypi:88: 'additional_res_dirs': ['<(crunched_res_dir)', '<(java_in_dir)/res'], Shouldn't the second list element be ...
8 years ago (2012-12-12 01:07:16 UTC) #7
newt (away)
https://codereview.chromium.org/11516024/diff/9002/build/java.gypi File build/java.gypi (right): https://codereview.chromium.org/11516024/diff/9002/build/java.gypi#newcode88 build/java.gypi:88: 'additional_res_dirs': ['<(crunched_res_dir)', '<(java_in_dir)/res'], On 2012/12/12 01:07:16, Yaron wrote: > ...
8 years ago (2012-12-12 01:52:33 UTC) #8
Yaron
lgtm Please wait for other approvals
8 years ago (2012-12-12 01:59:24 UTC) #9
frankf
lgtm on the style
8 years ago (2012-12-12 02:06:20 UTC) #10
cjhopman
lgtm
8 years ago (2012-12-12 18:32:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/newt@chromium.org/11516024/15001
8 years ago (2012-12-12 18:35:07 UTC) #12
commit-bot: I haz the power
8 years ago (2012-12-12 19:42:36 UTC) #13
Retried try job too often on linux_chromeos for step(s) browser_tests,
interactive_ui_tests

Powered by Google App Engine
This is Rietveld 408576698