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

Issue 9378041: Remove hand-rolled protobufs generation; enable rel paths in protoc.gypi (Closed)

Created:
8 years, 10 months ago by KushalP
Modified:
8 years, 4 months ago
Reviewers:
Ryan Sleevi
CC:
chromium-reviews, Evan Martin
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Remove hand-rolled protobufs generation; enable rel paths in protoc.gypi protoc.gypi now accepts a relative path to handle the way that protoc_out_dir is applied to build the generated path. Remove the 'cacheinvalidation_proto_cpp' target and instead generate a static_library to begin with. Simplify all steps by removing the actions and including the protoc.gypi file. BUG=113339 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123894

Patch Set 1 #

Total comments: 11

Patch Set 2 : remove unused variables #

Total comments: 4

Patch Set 3 : ending slash; update comment #

Total comments: 1

Patch Set 4 : update comment wording; make protoc.gypi comment heavy #

Patch Set 5 : improve grammar and readability #

Total comments: 2

Patch Set 6 : Improve comments in build/protoc.gypi #

Total comments: 2

Patch Set 7 : remove outdated comment; add dependent export #

Patch Set 8 : removed hard_dependency #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -77 lines) Patch
M build/protoc.gypi View 1 2 3 4 5 3 chunks +22 lines, -5 lines 0 comments Download
M third_party/cacheinvalidation/cacheinvalidation.gyp View 1 2 3 4 5 6 7 4 chunks +14 lines, -72 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
KushalP
The only bad thing I see so far is that this currently produces output that ...
8 years, 10 months ago (2012-02-13 00:15:05 UTC) #1
Ryan Sleevi
http://codereview.chromium.org/9378041/diff/1/build/protoc.gypi File build/protoc.gypi (right): http://codereview.chromium.org/9378041/diff/1/build/protoc.gypi#newcode46 build/protoc.gypi:46: 'proto_relpath%': '.', Can you not define proto_relpath as '', ...
8 years, 10 months ago (2012-02-13 19:32:12 UTC) #2
akalin
sync stuff lgtm
8 years, 10 months ago (2012-02-13 22:21:58 UTC) #3
KushalP
https://chromiumcodereview.appspot.com/9378041/diff/1/build/protoc.gypi File build/protoc.gypi (right): https://chromiumcodereview.appspot.com/9378041/diff/1/build/protoc.gypi#newcode46 build/protoc.gypi:46: 'proto_relpath%': '.', On 2012/02/13 19:32:12, Ryan Sleevi wrote: > ...
8 years, 10 months ago (2012-02-14 11:36:07 UTC) #4
akalin
http://codereview.chromium.org/9378041/diff/1/third_party/cacheinvalidation/cacheinvalidation.gyp File third_party/cacheinvalidation/cacheinvalidation.gyp (right): http://codereview.chromium.org/9378041/diff/1/third_party/cacheinvalidation/cacheinvalidation.gyp#newcode15 third_party/cacheinvalidation/cacheinvalidation.gyp:15: # we don't need this variable. On 2012/02/13 19:32:12, ...
8 years, 10 months ago (2012-02-15 01:19:56 UTC) #5
Ryan Sleevi
+cc Evan Martin, in case he feels strongly about this / has any objections. https://chromiumcodereview.appspot.com/9378041/diff/1/build/protoc.gypi ...
8 years, 10 months ago (2012-02-15 20:15:29 UTC) #6
Evan Martin
https://chromiumcodereview.appspot.com/9378041/diff/7001/build/protoc.gypi File build/protoc.gypi (right): https://chromiumcodereview.appspot.com/9378041/diff/7001/build/protoc.gypi#newcode46 build/protoc.gypi:46: 'proto_relpath%': '.', If you define this as "must have ...
8 years, 10 months ago (2012-02-15 20:19:51 UTC) #7
KushalP
Pushed: Patch Set 3 accounts for the various nits discussed previously. Would be really interested ...
8 years, 10 months ago (2012-02-16 09:07:39 UTC) #8
Ryan Sleevi
I think we're getting closer. I know I'm giving a lot of push back on ...
8 years, 10 months ago (2012-02-16 09:23:49 UTC) #9
KushalP
Pushed: Patch Set 4. I've added more comments to protoc.gypi. I thought it would be ...
8 years, 10 months ago (2012-02-17 00:10:56 UTC) #10
Ryan Sleevi
http://codereview.chromium.org/9378041/diff/16003/build/protoc.gypi File build/protoc.gypi (right): http://codereview.chromium.org/9378041/diff/16003/build/protoc.gypi#newcode47 build/protoc.gypi:47: # protoc.gypi will place generated files into subdirectories based ...
8 years, 10 months ago (2012-02-17 00:31:21 UTC) #11
KushalP
Pushed Patch Set 6.
8 years, 10 months ago (2012-02-20 18:48:33 UTC) #12
Ryan Sleevi
Thanks Kushal. LGTM, with one comment to fix below. http://codereview.chromium.org/9378041/diff/19001/third_party/cacheinvalidation/cacheinvalidation.gyp File third_party/cacheinvalidation/cacheinvalidation.gyp (right): http://codereview.chromium.org/9378041/diff/19001/third_party/cacheinvalidation/cacheinvalidation.gyp#newcode130 third_party/cacheinvalidation/cacheinvalidation.gyp:130: ...
8 years, 10 months ago (2012-02-22 05:27:29 UTC) #13
akalin
http://codereview.chromium.org/9378041/diff/19001/third_party/cacheinvalidation/cacheinvalidation.gyp File third_party/cacheinvalidation/cacheinvalidation.gyp (right): http://codereview.chromium.org/9378041/diff/19001/third_party/cacheinvalidation/cacheinvalidation.gyp#newcode130 third_party/cacheinvalidation/cacheinvalidation.gyp:130: '../../base/base.gyp:base', On 2012/02/22 05:27:30, Ryan Sleevi wrote: > You ...
8 years, 10 months ago (2012-02-22 22:52:32 UTC) #14
Ryan Sleevi
On 2012/02/22 22:52:32, akalin wrote: > http://codereview.chromium.org/9378041/diff/19001/third_party/cacheinvalidation/cacheinvalidation.gyp > File third_party/cacheinvalidation/cacheinvalidation.gyp (right): > > http://codereview.chromium.org/9378041/diff/19001/third_party/cacheinvalidation/cacheinvalidation.gyp#newcode130 > ...
8 years, 10 months ago (2012-02-22 22:59:39 UTC) #15
akalin
On 2012/02/22 22:59:39, Ryan Sleevi wrote: > On 2012/02/22 22:52:32, akalin wrote: > > > ...
8 years, 10 months ago (2012-02-22 23:11:08 UTC) #16
KushalP
On 2012/02/22 23:11:08, akalin wrote: > Okay, that makes sense. I could have sworn hard_deps ...
8 years, 10 months ago (2012-02-22 23:21:28 UTC) #17
Ryan Sleevi
On 2012/02/22 23:21:28, KushalP wrote: > On 2012/02/22 23:11:08, akalin wrote: > > Okay, that ...
8 years, 10 months ago (2012-02-22 23:23:34 UTC) #18
Ryan Sleevi
On 2012/02/22 23:11:08, akalin wrote: > Okay, that makes sense. I could have sworn hard_deps ...
8 years, 10 months ago (2012-02-22 23:25:52 UTC) #19
KushalP
Here's the build output if I remove 'hard_dependency': 1 https://gist.github.com/1a7113135e028cc7ed00
8 years, 10 months ago (2012-02-22 23:40:16 UTC) #20
Ryan Sleevi
On 2012/02/22 23:40:16, KushalP wrote: > Here's the build output if I remove 'hard_dependency': 1 ...
8 years, 10 months ago (2012-02-22 23:48:39 UTC) #21
KushalP
On 2012/02/22 23:48:39, Ryan Sleevi wrote: > Just to confirm, this is line 120 of ...
8 years, 10 months ago (2012-02-23 00:03:44 UTC) #22
KushalP
Here's a gist of the cacheinvalidation.target.mk when 'hard_dependency': 1 is removed: https://gist.github.com/1888790
8 years, 10 months ago (2012-02-23 00:47:57 UTC) #23
KushalP
I just ran a clobber, and removing hard_dependency works fine now. Getting ready to run ...
8 years, 10 months ago (2012-02-27 11:44:35 UTC) #24
KushalP
On 2012/02/27 11:44:35, KushalP wrote: > I just ran a clobber, and removing hard_dependency works ...
8 years, 10 months ago (2012-02-27 12:51:34 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kushi.p@gmail.com/9378041/31001
8 years, 10 months ago (2012-02-27 23:40:45 UTC) #26
commit-bot: I haz the power
Change committed as 123894
8 years, 10 months ago (2012-02-28 05:17:50 UTC) #27
Ryan Sleevi
On 2012/02/28 05:17:50, I haz the power (commit-bot) wrote: > Change committed as 123894 So, ...
8 years, 10 months ago (2012-02-28 05:36:44 UTC) #28
KushalP
On 2012/02/28 05:36:44, Ryan Sleevi wrote: > So, I had to revert this in r123896, ...
8 years, 9 months ago (2012-02-28 13:42:16 UTC) #29
KushalP
Setting 'hard_dependency' has no effect on this. Seems there's something else causing duplicate client_pb2.py objects ...
8 years, 9 months ago (2012-02-29 01:10:35 UTC) #30
akalin
On 2012/02/29 01:10:35, KushalP wrote: > Setting 'hard_dependency' has no effect on this. Seems there's ...
8 years, 9 months ago (2012-03-02 23:04:07 UTC) #31
Ryan Sleevi
On 2012/03/02 23:04:07, akalin wrote: > On 2012/02/29 01:10:35, KushalP wrote: > > Setting 'hard_dependency' ...
8 years, 9 months ago (2012-03-05 20:38:18 UTC) #32
KushalP
I've spent the last week going through the GYP source code trying to better understand ...
8 years, 9 months ago (2012-03-15 00:51:52 UTC) #33
KushalP
I think I've found the point where the duplicate objects (in the Python sense, not ...
8 years, 9 months ago (2012-03-23 01:03:26 UTC) #34
akalin
any update on this? i'm just gonna remove myself from the reviewer list. On 2012/03/23 ...
8 years, 6 months ago (2012-06-18 18:28:06 UTC) #35
KushalP
On 2012/06/18 18:28:06, akalin wrote: > any update on this? i'm just gonna remove myself ...
8 years, 6 months ago (2012-06-19 09:08:40 UTC) #36
KushalP
8 years, 4 months ago (2012-08-02 07:15:23 UTC) #37
Closing this as the work was completed by @iannucci in
https://chromiumcodereview.appspot.com/10796051

Powered by Google App Engine
This is Rietveld 408576698