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

Issue 937003002: Enhance GN introspection (Closed)

Created:
5 years, 10 months ago by brettw
Modified:
5 years, 10 months ago
Reviewers:
scottmg
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enhance GN introspection This adds additional matching and output capabilities to the various GN introspection commands (desc, ls, refs). It adds --as for controlling output, and --testonly and --type for controlling which ones to show. It adds support for matching multiple input arguments for the refs, ls, and check commands. It adds support for finding which targets reference a config in the refs command. Committed: https://crrev.com/e604e508f8b3b08d89b5e98ef1d376c74d471a38 Cr-Commit-Position: refs/heads/master@{#317159}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : fix #

Patch Set 4 : #

Total comments: 7

Patch Set 5 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+739 lines, -278 lines) Patch
M tools/gn/command_check.cc View 1 2 3 2 chunks +14 lines, -18 lines 0 comments Download
M tools/gn/command_desc.cc View 1 6 chunks +46 lines, -26 lines 0 comments Download
M tools/gn/command_ls.cc View 1 2 3 4 6 chunks +35 lines, -40 lines 0 comments Download
M tools/gn/command_refs.cc View 1 2 3 4 4 chunks +179 lines, -155 lines 0 comments Download
M tools/gn/commands.h View 1 2 3 3 chunks +58 lines, -13 lines 0 comments Download
M tools/gn/commands.cc View 1 2 3 4 3 chunks +389 lines, -24 lines 0 comments Download
M tools/gn/label_pattern.h View 1 chunk +3 lines, -0 lines 0 comments Download
M tools/gn/label_pattern.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M tools/gn/output_file.cc View 1 2 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
brettw
5 years, 10 months ago (2015-02-19 21:28:11 UTC) #2
scottmg
lgtm https://codereview.chromium.org/937003002/diff/60001/tools/gn/command_ls.cc File tools/gn/command_ls.cc (right): https://codereview.chromium.org/937003002/diff/60001/tools/gn/command_ls.cc#newcode21 tools/gn/command_ls.cc:21: "gn ls <out_dir> [<label_pattern>] [--out] [--all-toolchains]\n" --as, --type, ...
5 years, 10 months ago (2015-02-19 21:52:02 UTC) #3
brettw
https://codereview.chromium.org/937003002/diff/60001/tools/gn/commands.cc File tools/gn/commands.cc (right): https://codereview.chromium.org/937003002/diff/60001/tools/gn/commands.cc#newcode429 tools/gn/commands.cc:429: void FilterTargetsByPatterns(const std::vector<const Target*>& input, On 2015/02/19 21:52:01, scottmg ...
5 years, 10 months ago (2015-02-19 22:12:02 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/937003002/80001
5 years, 10 months ago (2015-02-19 22:13:03 UTC) #7
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-19 23:03:06 UTC) #8
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 23:03:36 UTC) #9
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e604e508f8b3b08d89b5e98ef1d376c74d471a38
Cr-Commit-Position: refs/heads/master@{#317159}

Powered by Google App Engine
This is Rietveld 408576698