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

Issue 538393002: Make gn.py support root directories other than 'src'. (Closed)

Created:
6 years, 3 months ago by kjellander_chromium
Modified:
6 years, 3 months ago
Reviewers:
agable, M-A Ruel, iannucci
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org, brettw
Project:
tools
Visibility:
Public.

Description

Make gn.py support root directories other than 'src'. In https://codereview.chromium.org/341533006/ a change was made so that gn.py is not looking for the .gn file to identify the root of the checkout. This breaks GN functionality for projects that uses gclient but have a top directory named something else than 'src'. This change adds support for arbitrarily named primary (the first) solutions in the .gclient file. It also adds a check for the generated GN path so a friendly error message can be printed if the GN executable cannot be found. BUG=389883 TESTED=Various cases of Chromium, WebRTC and custom checkouts with .gclient containing empty solution list, solution missing the 'name' key and so on. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=291819

Patch Set 1 #

Total comments: 4

Patch Set 2 : Improved readability and returning non-zero exit code on failure to find gn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -3 lines) Patch
M gclient_utils.py View 1 2 chunks +15 lines, -1 line 0 comments Download
M gn.py View 1 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
kjellander_chromium
maruel and/or iannucci: please review +cc brettw: FYI
6 years, 3 months ago (2014-09-05 07:03:32 UTC) #2
agable
https://codereview.chromium.org/538393002/diff/1/gclient_utils.py File gclient_utils.py (right): https://codereview.chromium.org/538393002/diff/1/gclient_utils.py#newcode724 gclient_utils.py:724: if (env.has_key('solutions') and I would rewrite this clause as: ...
6 years, 3 months ago (2014-09-05 11:31:54 UTC) #4
kjellander_chromium
PTAL https://codereview.chromium.org/538393002/diff/1/gclient_utils.py File gclient_utils.py (right): https://codereview.chromium.org/538393002/diff/1/gclient_utils.py#newcode724 gclient_utils.py:724: if (env.has_key('solutions') and On 2014/09/05 11:31:53, agable wrote: ...
6 years, 3 months ago (2014-09-05 12:24:32 UTC) #5
agable
LGTM
6 years, 3 months ago (2014-09-05 12:35:05 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kjellander@chromium.org/538393002/20001
6 years, 3 months ago (2014-09-05 12:38:49 UTC) #8
commit-bot: I haz the power
6 years, 3 months ago (2014-09-05 12:40:29 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as 291819

Powered by Google App Engine
This is Rietveld 408576698