summaryrefslogtreecommitdiffstats
path: root/tools/gn/gn.gyp
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2014-08-29 10:07:20 -0700
committerCommit bot <commit-bot@chromium.org>2014-08-29 17:11:22 +0000
commit3741b720dc56fc8de8a32502ce73783db0feedda (patch)
treed984ac7d3b6607e20f78afc5928436595474bf3f /tools/gn/gn.gyp
parent6297a2f1e441c46d6f8ca37a3798fe6fbdd6cc4c (diff)
downloadchromium_src-3741b720dc56fc8de8a32502ce73783db0feedda.zip
chromium_src-3741b720dc56fc8de8a32502ce73783db0feedda.tar.gz
chromium_src-3741b720dc56fc8de8a32502ce73783db0feedda.tar.bz2
Enhance GN diagnostic tools
Unifies the existing desc, refs, and check commands to take an output directory rather than creating a build in out/Default. This matches the other commands. Separates out the label pattern matching code from the visibility component into a separate object so it can be used in commands to match more than one label. Adds support for toolchains in these patterns (this wasn't so necessary for visibility, but is more useful for these other commands). The old pattern code is now used only for the sources filter. This patch moves the documentation for that directly on the sources assignment filter help. Enhances "gn check" to take a label or label pattern of targets to check. This is especially necessary now with so many errors, one can focus on one small part of the codebase. Enhances "gn refs" to work like "gn desc deps" but in reverse. It can print reverse dependency trees, or find all targets that depend on a given target or targets. For example, "find everything that depends on anything in //mojo". It lost the ability to find configs or unresolved dependencies. We could potentially add these back, but they're complicated to implement and less useful. Adds a "gn ls" command to list targets. BUG=343726 Review URL: https://codereview.chromium.org/500423003 Cr-Commit-Position: refs/heads/master@{#292658}
Diffstat (limited to 'tools/gn/gn.gyp')
-rw-r--r--tools/gn/gn.gyp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gn/gn.gyp b/tools/gn/gn.gyp
index e3920cb..bc11b5d 100644
--- a/tools/gn/gn.gyp
+++ b/tools/gn/gn.gyp
@@ -31,6 +31,7 @@
'command_desc.cc',
'command_gen.cc',
'command_help.cc',
+ 'command_ls.cc',
'command_refs.cc',
'commands.cc',
'commands.h',
@@ -82,6 +83,8 @@
'item.h',
'label.cc',
'label.h',
+ 'label_pattern.cc',
+ 'label_pattern.h',
'label_ptr.h',
'loader.cc',
'loader.h',
@@ -205,6 +208,7 @@
'functions_unittest.cc',
'header_checker_unittest.cc',
'input_conversion_unittest.cc',
+ 'label_pattern_unittest.cc',
'label_unittest.cc',
'loader_unittest.cc',
'ninja_action_target_writer_unittest.cc',