DescriptionMake 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 #Messages
Total messages: 9 (3 generated)
|