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

Issue 142223002: Support -Goutput_dir=blahblah in GN-GYP hybrid mode (Closed)

Created:
6 years, 11 months ago by jamesr
Modified:
6 years, 11 months ago
Reviewers:
brettw, Nico, piman
CC:
chromium-reviews, extensions-reviews_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Support -Goutput_dir=blahblah in GN-GYP hybrid mode This supports specifying the output_dir generator flag in the gn-generating-gyp mode. The value of the output_dir flag is mapped to a gyp variable called gyp_output_dir and a GN argument by the same name. References from gyp to gn-generated gyp files must use this variable and references from BUILD.gn files must use the gn argument. BUG=335760 TBR=brettw for build/config/BUILDCONFIG.gn (looked at in person) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245800

Patch Set 1 #

Patch Set 2 : fix up GYP_GENERATOR_FLAGS parsing #

Total comments: 8

Patch Set 3 : better python #

Total comments: 1

Patch Set 4 : prefer command line over env if both are specified #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -19 lines) Patch
M build/all.gyp View 3 chunks +2 lines, -2 lines 0 comments Download
M build/config/BUILDCONFIG.gn View 1 chunk +3 lines, -0 lines 0 comments Download
M build/gyp_chromium View 1 2 3 4 chunks +25 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 2 chunks +1 line, -1 line 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 2 chunks +1 line, -1 line 0 comments Download
M chrome/chrome_browser_extensions.gypi View 2 chunks +1 line, -1 line 0 comments Download
M chrome/chrome_browser_ui.gypi View 2 chunks +1 line, -1 line 0 comments Download
M chrome/chrome_common.gypi View 2 chunks +1 line, -1 line 0 comments Download
M chrome/chrome_renderer.gypi View 2 chunks +1 line, -1 line 0 comments Download
M chrome/tools/profile_reset/jtl_compiler.gyp View 1 chunk +1 line, -1 line 0 comments Download
M components/plugins.gypi View 1 chunk +1 line, -1 line 0 comments Download
M components/url_matcher.gypi View 1 chunk +1 line, -1 line 0 comments Download
M content/content_browser.gypi View 1 chunk +1 line, -1 line 0 comments Download
M extensions/extensions.gyp View 2 chunks +1 line, -1 line 0 comments Download
M gpu/command_buffer_service.gypi View 2 chunks +1 line, -1 line 0 comments Download
M gpu/gpu_config.gypi View 1 chunk +1 line, -1 line 0 comments Download
M third_party/leveldatabase/leveldatabase.gyp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libaddressinput/libaddressinput.gyp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/re2/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
jamesr
6 years, 11 months ago (2014-01-18 00:22:47 UTC) #1
Nico
lgtm https://codereview.chromium.org/142223002/diff/40001/build/gyp_chromium File build/gyp_chromium (right): https://codereview.chromium.org/142223002/diff/40001/build/gyp_chromium#newcode144 build/gyp_chromium:144: return sys.argv[i][13:] s/13/len('-Goutput_dir=')/ https://codereview.chromium.org/142223002/diff/40001/build/gyp_chromium#newcode146 build/gyp_chromium:146: return "out_foo" _foo?
6 years, 11 months ago (2014-01-18 00:38:44 UTC) #2
jamesr
On 2014/01/18 00:38:44, Nico wrote: > lgtm > > https://codereview.chromium.org/142223002/diff/40001/build/gyp_chromium > File build/gyp_chromium (right): > ...
6 years, 11 months ago (2014-01-18 00:39:52 UTC) #3
piman
https://codereview.chromium.org/142223002/diff/40001/build/gyp_chromium File build/gyp_chromium (right): https://codereview.chromium.org/142223002/diff/40001/build/gyp_chromium#newcode133 build/gyp_chromium:133: for i in range(len(env_items)): nit: 'for item in env_items' ...
6 years, 11 months ago (2014-01-18 00:44:27 UTC) #4
Nico
https://codereview.chromium.org/142223002/diff/40001/build/gyp_chromium File build/gyp_chromium (right): https://codereview.chromium.org/142223002/diff/40001/build/gyp_chromium#newcode144 build/gyp_chromium:144: return sys.argv[i][13:] On 2014/01/18 00:44:27, piman wrote: > arg.split("=")[2] ...
6 years, 11 months ago (2014-01-18 00:46:52 UTC) #5
jamesr
Ah you split people. What if someone wants -"Goutput_dir=my=favorite=directory" ? It's now startswith(needle) / foo[len(needle):]
6 years, 11 months ago (2014-01-18 00:48:20 UTC) #6
Nico
'a=b=c'.split('=', 1)[1] On Fri, Jan 17, 2014 at 4:48 PM, <jamesr@chromium.org> wrote: > Ah you ...
6 years, 11 months ago (2014-01-18 00:50:23 UTC) #7
piman
https://codereview.chromium.org/142223002/diff/120001/build/gyp_chromium File build/gyp_chromium (right): https://codereview.chromium.org/142223002/diff/120001/build/gyp_chromium#newcode136 build/gyp_chromium:136: return item[len(needle):] BTW, does the env variable override the ...
6 years, 11 months ago (2014-01-18 00:54:51 UTC) #8
Nico
On Fri, Jan 17, 2014 at 4:54 PM, <piman@chromium.org> wrote: > > https://codereview.chromium.org/142223002/diff/120001/build/gyp_chromium > File ...
6 years, 11 months ago (2014-01-18 00:59:30 UTC) #9
jamesr
On 2014/01/18 00:54:51, piman wrote: > https://codereview.chromium.org/142223002/diff/120001/build/gyp_chromium > File build/gyp_chromium (right): > > https://codereview.chromium.org/142223002/diff/120001/build/gyp_chromium#newcode136 > ...
6 years, 11 months ago (2014-01-18 01:00:24 UTC) #10
Nico
Sorry, gmail sent this in the middle of me typing it. From ..._init__.py: gen_flags = ...
6 years, 11 months ago (2014-01-18 01:00:51 UTC) #11
piman
lgtm
6 years, 11 months ago (2014-01-18 01:21:24 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/142223002/190001
6 years, 11 months ago (2014-01-18 01:26:11 UTC) #13
jamesr
Brett - doesn't look like this will make it through the CQ. Feel free to ...
6 years, 11 months ago (2014-01-18 02:48:21 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/142223002/190001
6 years, 11 months ago (2014-01-18 22:03:57 UTC) #15
commit-bot: I haz the power
6 years, 11 months ago (2014-01-18 23:51:44 UTC) #16
Message was sent while issue was closed.
Change committed as 245800

Powered by Google App Engine
This is Rietveld 408576698