| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef TOOLS_GN_COMMANDS_H_ | 5 #ifndef TOOLS_GN_COMMANDS_H_ |
| 6 #define TOOLS_GN_COMMANDS_H_ | 6 #define TOOLS_GN_COMMANDS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
| 14 #include "base/values.h" | |
| 15 #include "tools/gn/target.h" | 14 #include "tools/gn/target.h" |
| 16 #include "tools/gn/unique_vector.h" | 15 #include "tools/gn/unique_vector.h" |
| 17 | 16 |
| 18 class BuildSettings; | 17 class BuildSettings; |
| 19 class Config; | 18 class Config; |
| 20 class LabelPattern; | 19 class LabelPattern; |
| 21 class Setup; | 20 class Setup; |
| 22 class SourceFile; | 21 class SourceFile; |
| 23 class Target; | 22 class Target; |
| 24 class Toolchain; | 23 class Toolchain; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 " accordingly. When unspecified, the target's testonly flags are\n"\ | 172 " accordingly. When unspecified, the target's testonly flags are\n"\ |
| 174 " ignored.\n" | 173 " ignored.\n" |
| 175 | 174 |
| 176 // Applies any testonly and type filters specified on the command line, | 175 // Applies any testonly and type filters specified on the command line, |
| 177 // and prints the targets as specified by the --as command line flag. | 176 // and prints the targets as specified by the --as command line flag. |
| 178 // | 177 // |
| 179 // If indent is true, the results will be indented two spaces. | 178 // If indent is true, the results will be indented two spaces. |
| 180 // | 179 // |
| 181 // The vector will be modified so that only the printed targets will remain. | 180 // The vector will be modified so that only the printed targets will remain. |
| 182 void FilterAndPrintTargets(bool indent, std::vector<const Target*>* targets); | 181 void FilterAndPrintTargets(bool indent, std::vector<const Target*>* targets); |
| 183 void FilterAndPrintTargets(std::vector<const Target*>* targets, | |
| 184 base::ListValue* out); | |
| 185 | |
| 186 void FilterAndPrintTargetSet(bool indent, | 182 void FilterAndPrintTargetSet(bool indent, |
| 187 const std::set<const Target*>& targets); | 183 const std::set<const Target*>& targets); |
| 188 void FilterAndPrintTargetSet(const std::set<const Target*>& targets, | |
| 189 base::ListValue* out); | |
| 190 | 184 |
| 191 // Extra help from command_check.cc | 185 // Extra help from command_check.cc |
| 192 extern const char kNoGnCheck_Help[]; | 186 extern const char kNoGnCheck_Help[]; |
| 193 | 187 |
| 194 } // namespace commands | 188 } // namespace commands |
| 195 | 189 |
| 196 #endif // TOOLS_GN_COMMANDS_H_ | 190 #endif // TOOLS_GN_COMMANDS_H_ |
| OLD | NEW |