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

Issue 11146005: Add support for generating jars from protos and add cacheinvalidation_java. (Closed)

Created:
8 years, 2 months ago by nyquist
Modified:
8 years, 1 month ago
CC:
chromium-reviews, Philippe
Visibility:
Public.

Description

Add support for generating jars from protos and add cacheinvalidation_java. The cacheinvalidation_java target is also added to build/all_android.gyp to ensure it is always built since nothing currently depends on it upstream. When all of Android-specific sync code is upstreamed, a target for sync should be used instead of cacheinvalidation. BUG=158382 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167746

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fixed outputs and echo message #

Patch Set 3 : Use target_name as java_out_dir and document it. #

Patch Set 4 : Updated docs #

Total comments: 1

Patch Set 5 : Rebased #

Patch Set 6 : Removed documentation about proto_out_dir #

Total comments: 16

Patch Set 7 : Rebase #

Patch Set 8 : Addressed comments. Generating .jar directly. #

Patch Set 9 : Remove unused target #

Total comments: 6

Patch Set 10 : rebased #

Patch Set 11 : Use python script, use bundled jars #

Patch Set 12 : Updated crbug link to use http:// #

Total comments: 6

Patch Set 13 : Fixed python nits #

Patch Set 14 : Rename output folder to java_proto, added comment about variables and external dependencies. #

Patch Set 15 : Rebased. Changed to use android_tools gcm library. #

Patch Set 16 : Moved to os=android condition and added to All #

Patch Set 17 : Use javalib target name consistently. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -11 lines) Patch
M build/all_android.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
A build/android/empty/src/.keep View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M build/java.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M build/protoc.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
A build/protoc_java.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +79 lines, -0 lines 0 comments Download
A build/protoc_java.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +56 lines, -0 lines 0 comments Download
M third_party/cacheinvalidation/cacheinvalidation.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +76 lines, -7 lines 0 comments Download
M third_party/protobuf/README.chromium View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M third_party/protobuf/protobuf.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
nyquist
PTAL
8 years, 2 months ago (2012-10-13 00:40:00 UTC) #1
cjhopman
http://codereview.chromium.org/11146005/diff/1/build/protoc_java.gypi File build/protoc_java.gypi (right): http://codereview.chromium.org/11146005/diff/1/build/protoc_java.gypi#newcode33 build/protoc_java.gypi:33: # The 'output_java_files' variable specifies a list of output ...
8 years, 2 months ago (2012-10-15 22:14:24 UTC) #2
cjhopman
http://codereview.chromium.org/11146005/diff/1/build/protoc_java.gypi File build/protoc_java.gypi (right): http://codereview.chromium.org/11146005/diff/1/build/protoc_java.gypi#newcode73 build/protoc_java.gypi:73: 'message': 'Generating Java code from <(RULE_INPUT_PATH)', On 2012/10/15 22:14:24, ...
8 years, 2 months ago (2012-10-15 22:15:10 UTC) #3
cjhopman
lgtm http://codereview.chromium.org/11146005/diff/10001/build/protoc_java.gypi File build/protoc_java.gypi (right): http://codereview.chromium.org/11146005/diff/10001/build/protoc_java.gypi#newcode29 build/protoc_java.gypi:29: # The 'proto_out_dir' variable specifies the path suffix ...
8 years, 2 months ago (2012-10-23 15:48:25 UTC) #4
nyquist
akalin@: Could you PTAL?
8 years, 1 month ago (2012-10-25 04:53:50 UTC) #5
akalin
lgtm, but I'd like someone more familiar with the proto gyps to take another look: ...
8 years, 1 month ago (2012-10-26 00:11:47 UTC) #6
nyquist
http://codereview.chromium.org/11146005/diff/17001/third_party/cacheinvalidation/cacheinvalidation.gyp File third_party/cacheinvalidation/cacheinvalidation.gyp (right): http://codereview.chromium.org/11146005/diff/17001/third_party/cacheinvalidation/cacheinvalidation.gyp#newcode154 third_party/cacheinvalidation/cacheinvalidation.gyp:154: 'target_name': 'cacheinvalidation_proto_src_java', On 2012/10/26 00:11:47, akalin wrote: > remove ...
8 years, 1 month ago (2012-10-26 00:32:31 UTC) #7
akalin
On 2012/10/26 00:32:31, nyquist wrote: > http://codereview.chromium.org/11146005/diff/17001/third_party/cacheinvalidation/cacheinvalidation.gyp > File third_party/cacheinvalidation/cacheinvalidation.gyp (right): > > http://codereview.chromium.org/11146005/diff/17001/third_party/cacheinvalidation/cacheinvalidation.gyp#newcode154 > ...
8 years, 1 month ago (2012-10-26 20:18:09 UTC) #8
akalin
On 2012/10/26 20:18:09, akalin wrote: > On 2012/10/26 00:32:31, nyquist wrote: > > > http://codereview.chromium.org/11146005/diff/17001/third_party/cacheinvalidation/cacheinvalidation.gyp ...
8 years, 1 month ago (2012-10-26 20:18:25 UTC) #9
Ryan Sleevi
NACK with comments. http://codereview.chromium.org/11146005/diff/17001/build/protoc_java.gypi File build/protoc_java.gypi (right): http://codereview.chromium.org/11146005/diff/17001/build/protoc_java.gypi#newcode5 build/protoc_java.gypi:5: # This file is meant to ...
8 years, 1 month ago (2012-10-29 08:36:36 UTC) #10
nyquist
rsleevi: PTAL Addressed comments. Now we directly generate a .jar-file instead of using a separate ...
8 years, 1 month ago (2012-10-30 00:30:32 UTC) #11
Ryan Sleevi
The java_in_dir bit is weird to me, but I see you've filed a bug on ...
8 years, 1 month ago (2012-10-30 00:50:42 UTC) #12
nyquist
On 2012/10/30 00:50:42, Ryan Sleevi wrote: > The java_in_dir bit is weird to me, but ...
8 years, 1 month ago (2012-10-30 05:18:35 UTC) #13
nyquist
On 2012/10/30 05:18:35, nyquist wrote: > On 2012/10/30 00:50:42, Ryan Sleevi wrote: > > The ...
8 years, 1 month ago (2012-10-30 05:20:07 UTC) #14
nyquist
rsleevi: PTAL. Now using Python script instead. Also using bundled jars for guava and gcm. ...
8 years, 1 month ago (2012-10-31 17:46:49 UTC) #15
nyquist
addressed comments http://codereview.chromium.org/11146005/diff/24003/build/android/empty/src/.keep File build/android/empty/src/.keep (right): http://codereview.chromium.org/11146005/diff/24003/build/android/empty/src/.keep#newcode1 build/android/empty/src/.keep:1: This is a file that needs to ...
8 years, 1 month ago (2012-10-31 17:49:33 UTC) #16
Ryan Sleevi
This all LGTM from a GYP purity standpoint, I would just ask: 1) Does protoc_java.gypi ...
8 years, 1 month ago (2012-10-31 20:11:17 UTC) #17
Isaac (away)
build/android files are actually not used in the build, but rather have various utilities and ...
8 years, 1 month ago (2012-10-31 21:32:47 UTC) #18
nyquist
addressed all comments. Can not land this until protobuf java library target is available. http://codereview.chromium.org/11146005/diff/39001/build/protoc_java.py ...
8 years, 1 month ago (2012-10-31 23:14:20 UTC) #19
nyquist
rsleevi@: Could you PTAL at changes after patchset 13? There has been some small changes ...
8 years, 1 month ago (2012-11-14 06:48:25 UTC) #20
Ryan Sleevi
lgtm
8 years, 1 month ago (2012-11-14 18:49:44 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nyquist@chromium.org/11146005/35015
8 years, 1 month ago (2012-11-14 20:00:22 UTC) #22
commit-bot: I haz the power
8 years, 1 month ago (2012-11-14 21:20:49 UTC) #23
Change committed as 167746

Powered by Google App Engine
This is Rietveld 408576698