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

Issue 6705030: Standardize grit invokes (Closed)

Created:
9 years, 9 months ago by TVL
Modified:
9 years, 7 months ago
Reviewers:
Mark Mentovai, tony
CC:
chromium-reviews, darin-cc_chromium.org, cbentzel+watch_chromium.org, pam+watch_chromium.org, jshin+watch_chromium.org
Visibility:
Public.

Description

Standardize grit invokes - Add two gypi files to src/build for the boilerplate added to targets and actions - Update grit_info to also support the -E flag so it can share more of the grit build commandline - switch over all but the webkit and webkit glue grd files to use the common support BUG=22247 TEST=everything still localized correctly Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=79548

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 42

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -454 lines) Patch
M app/app.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -28 lines 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -4 lines 1 comment Download
A build/grit_action.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +40 lines, -0 lines 1 comment Download
A build/grit_target.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/app/policy/policy_templates.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +9 lines, -44 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +121 lines, -222 lines 0 comments Download
M chrome/default_plugin/default_plugin.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -26 lines 0 comments Download
M chrome_frame/chrome_frame.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -30 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -35 lines 0 comments Download
M tools/grit/grit_info.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M ui/base/strings/ui_strings.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +21 lines, -35 lines 0 comments Download
M ui/ui_gfx.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -30 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
TVL
I'm not sure if owners will make me get stamps from other folks, but I ...
9 years, 9 months ago (2011-03-25 17:30:31 UTC) #1
Mark Mentovai
I really like this idea. http://codereview.chromium.org/6705030/diff/12001/app/app.gyp File app/app.gyp (right): http://codereview.chromium.org/6705030/diff/12001/app/app.gyp#newcode1 app/app.gyp:1: # Copyright (c) 2010 ...
9 years, 9 months ago (2011-03-25 17:48:55 UTC) #2
tony
http://codereview.chromium.org/6705030/diff/12001/build/grit_action.gypi File build/grit_action.gypi (right): http://codereview.chromium.org/6705030/diff/12001/build/grit_action.gypi#newcode1 build/grit_action.gypi:1: # Copyright (c) 2011 The Chromium Authors. All rights ...
9 years, 9 months ago (2011-03-25 18:07:04 UTC) #3
Mark Mentovai
Variable expansions don’t work in GYP includes.
9 years, 9 months ago (2011-03-25 18:10:00 UTC) #4
TVL
http://codereview.chromium.org/6705030/diff/12001/app/app.gyp File app/app.gyp (right): http://codereview.chromium.org/6705030/diff/12001/app/app.gyp#newcode1 app/app.gyp:1: # Copyright (c) 2010 The Chromium Authors. All rights ...
9 years, 9 months ago (2011-03-25 18:15:51 UTC) #5
Mark Mentovai
http://codereview.chromium.org/6705030/diff/12001/build/grit_action.gypi File build/grit_action.gypi (right): http://codereview.chromium.org/6705030/diff/12001/build/grit_action.gypi#newcode1 build/grit_action.gypi:1: # Copyright (c) 2011 The Chromium Authors. All rights ...
9 years, 9 months ago (2011-03-25 18:22:07 UTC) #6
TVL
http://codereview.chromium.org/6705030/diff/12001/build/grit_action.gypi File build/grit_action.gypi (right): http://codereview.chromium.org/6705030/diff/12001/build/grit_action.gypi#newcode10 build/grit_action.gypi:10: # On 2011/03/25 18:22:07, Mark Mentovai wrote: > Remove ...
9 years, 9 months ago (2011-03-25 18:33:30 UTC) #7
TVL
fyi - patchset 11 is all comments except the target_conditions in grit_target.gypi if you want ...
9 years, 9 months ago (2011-03-25 18:43:53 UTC) #8
tony
LGTM http://codereview.chromium.org/6705030/diff/12001/build/grit_action.gypi File build/grit_action.gypi (right): http://codereview.chromium.org/6705030/diff/12001/build/grit_action.gypi#newcode1 build/grit_action.gypi:1: # Copyright (c) 2011 The Chromium Authors. All ...
9 years, 9 months ago (2011-03-25 18:45:34 UTC) #9
tony
Oh, did you mean to include build/common.gypi? I don't see the branded_env variable anymore.
9 years, 9 months ago (2011-03-25 18:47:09 UTC) #10
TVL
http://codereview.chromium.org/6705030/diff/12001/chrome/chrome.gyp File chrome/chrome.gyp (right): http://codereview.chromium.org/6705030/diff/12001/chrome/chrome.gyp#newcode326 chrome/chrome.gyp:326: # the real inputs/outputs at GYP time isn't possible. ...
9 years, 9 months ago (2011-03-25 18:48:43 UTC) #11
TVL
On 2011/03/25 18:47:09, tony wrote: > Oh, did you mean to include build/common.gypi? I don't ...
9 years, 9 months ago (2011-03-25 18:51:20 UTC) #12
tony
LGTM
9 years, 9 months ago (2011-03-25 19:01:20 UTC) #13
TVL
ok, last upload done, this is a sync to trunk again. i can't do the ...
9 years, 9 months ago (2011-03-25 20:08:15 UTC) #14
Mark Mentovai
9 years, 9 months ago (2011-03-25 20:16:53 UTC) #15
LGTM. As discussed, it’s OK to fix up chrome_strings and put the condition
switching on type into grit_target.gypi in a future change.

http://codereview.chromium.org/6705030/diff/14002/build/common.gypi
File build/common.gypi (right):

http://codereview.chromium.org/6705030/diff/14002/build/common.gypi#newcode491
build/common.gypi:491: # Setup -D and -E flags passed into grit.
Set up as a verb is two words.

http://codereview.chromium.org/6705030/diff/14002/build/grit_action.gypi
File build/grit_action.gypi (right):

http://codereview.chromium.org/6705030/diff/14002/build/grit_action.gypi#newc...
build/grit_action.gypi:13: # basis which can't currently be done.  GYP rules
could be extended to do
I think you meant

“but it would need to determine inputs and outputs via grit_info on a per-file
basis. GYP rules don’t currently support that. They could be extended to do
this, but then…”

and drop the “, because that is when the rules are expanded/applied” thing. By
that point, the comment will already be 100% clear.

Powered by Google App Engine
This is Rietveld 408576698