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

Issue 7621073: Unify gyp rules for running protoc. (Closed)

Created:
9 years, 4 months ago by Evan Martin
Modified:
9 years, 4 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, simonmorris+watch_chromium.org, wez+watch_chromium.org, dmaclach+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, ajwong+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Unify gyp rules for running protoc. - Add a protoc.gypi that can be gyp-included into any gyp file that wants to build .proto files. - Convert two remoting gyp files to use this new protoc.gypi. (Also fixes a bug in one of those remoting gyp files; a mistaken path was causing it to always rebuild under Xcode.) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97366

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 5

Patch Set 3 : fix #

Total comments: 3

Patch Set 4 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -119 lines) Patch
A build/protoc.gypi View 1 2 3 1 chunk +87 lines, -0 lines 0 comments Download
M remoting/proto/chromotocol.gyp View 1 2 3 2 chunks +5 lines, -62 lines 0 comments Download
M remoting/proto/trace.gyp View 1 2 3 1 chunk +5 lines, -57 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Evan Martin
This is based on TVL's grit stuff. mark/tvl: review hclam: FYI If this works, I ...
9 years, 4 months ago (2011-08-18 20:11:16 UTC) #1
Evan Martin
(n.b.: the weird output paths, like foo_pb2.py, are just matching the existing behavior; I don't ...
9 years, 4 months ago (2011-08-18 20:12:20 UTC) #2
TVL
http://codereview.chromium.org/7621073/diff/5/build/protoc.gypi File build/protoc.gypi (right): http://codereview.chromium.org/7621073/diff/5/build/protoc.gypi#newcode34 build/protoc.gypi:34: 'type': 'static_library', should this be a default (type?) so ...
9 years, 4 months ago (2011-08-18 20:22:39 UTC) #3
Evan Martin
http://codereview.chromium.org/7621073/diff/5/build/protoc.gypi File build/protoc.gypi (right): http://codereview.chromium.org/7621073/diff/5/build/protoc.gypi#newcode34 build/protoc.gypi:34: 'type': 'static_library', On 2011/08/18 20:22:40, TVL wrote: > should ...
9 years, 4 months ago (2011-08-18 20:24:48 UTC) #4
TVL
http://codereview.chromium.org/7621073/diff/5/build/protoc.gypi File build/protoc.gypi (right): http://codereview.chromium.org/7621073/diff/5/build/protoc.gypi#newcode34 build/protoc.gypi:34: 'type': 'static_library', On 2011/08/18 20:24:49, Evan Martin wrote: > ...
9 years, 4 months ago (2011-08-18 20:30:13 UTC) #5
Mark Mentovai
thomasvl@chromium.org wrote: > Ok, approach makes sense to me. Mark - What can I do ...
9 years, 4 months ago (2011-08-18 20:31:02 UTC) #6
Mark Mentovai
http://codereview.chromium.org/7621073/diff/5/build/protoc.gypi File build/protoc.gypi (right): http://codereview.chromium.org/7621073/diff/5/build/protoc.gypi#newcode34 build/protoc.gypi:34: 'type': 'static_library', This shouldn’t set type at all!
9 years, 4 months ago (2011-08-18 20:32:27 UTC) #7
TVL
On Thu, Aug 18, 2011 at 4:30 PM, Mark Mentovai <mark@chromium.org> wrote: > thomasvl@chromium.org wrote: ...
9 years, 4 months ago (2011-08-18 20:33:30 UTC) #8
Evan Martin
I tried converting libphonenumber and found I needed an extra argument. PTAL. My intent is ...
9 years, 4 months ago (2011-08-18 20:51:49 UTC) #9
Evan Martin
If you're curious about the protoc restriction that required adding proto_in_dir, observe this error message: ...
9 years, 4 months ago (2011-08-18 20:53:30 UTC) #10
TVL
lgtm http://codereview.chromium.org/7621073/diff/4002/build/protoc.gypi File build/protoc.gypi (right): http://codereview.chromium.org/7621073/diff/4002/build/protoc.gypi#newcode43 build/protoc.gypi:43: 'py_dir': '<(PRODUCT_DIR)/pyproto/<(proto_out_dir)', 'proto_in_dir?': '.' if it's common?
9 years, 4 months ago (2011-08-18 20:56:50 UTC) #11
Wez
LGTM on behalf of remoting, assuming things still build. :)
9 years, 4 months ago (2011-08-18 21:00:10 UTC) #12
Evan Martin
http://codereview.chromium.org/7621073/diff/4002/build/protoc.gypi File build/protoc.gypi (right): http://codereview.chromium.org/7621073/diff/4002/build/protoc.gypi#newcode43 build/protoc.gypi:43: 'py_dir': '<(PRODUCT_DIR)/pyproto/<(proto_out_dir)', On 2011/08/18 20:56:50, TVL wrote: > 'proto_in_dir?': ...
9 years, 4 months ago (2011-08-18 21:12:42 UTC) #13
Alpha Left Google
On 2011/08/18 21:12:42, Evan Martin wrote: > http://codereview.chromium.org/7621073/diff/4002/build/protoc.gypi > File build/protoc.gypi (right): > > http://codereview.chromium.org/7621073/diff/4002/build/protoc.gypi#newcode43 ...
9 years, 4 months ago (2011-08-19 10:53:46 UTC) #14
TVL
9 years, 4 months ago (2011-08-19 13:18:27 UTC) #15
lgtm

http://codereview.chromium.org/7621073/diff/4002/build/protoc.gypi
File build/protoc.gypi (right):

http://codereview.chromium.org/7621073/diff/4002/build/protoc.gypi#newcode43
build/protoc.gypi:43: 'py_dir': '<(PRODUCT_DIR)/pyproto/<(proto_out_dir)',
On 2011/08/18 21:12:43, Evan Martin wrote:
> On 2011/08/18 20:56:50, TVL wrote:
> > 'proto_in_dir?': '.'
> > 
> > if it's common?
> 
> Did you mean %?  The only use of '?' I could find was this:
>
http://codesearch.google.com/codesearch#OAMlx_jo-ck/src/testing/gtest.gyp&exa...
> 
> Seems to work, PTAL

Yes, sorry.

Powered by Google App Engine
This is Rietveld 408576698