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> |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 "\n"\ | 149 "\n"\ |
150 " buildfile\n"\ | 150 " buildfile\n"\ |
151 " Prints the build files where the given target was declared as\n"\ | 151 " Prints the build files where the given target was declared as\n"\ |
152 " file names.\n"\ | 152 " file names.\n"\ |
153 " label (default)\n"\ | 153 " label (default)\n"\ |
154 " Prints the label of the target.\n"\ | 154 " Prints the label of the target.\n"\ |
155 " output\n"\ | 155 " output\n"\ |
156 " Prints the first output file for the target relative to the\n"\ | 156 " Prints the first output file for the target relative to the\n"\ |
157 " current directory.\n" | 157 " current directory.\n" |
158 #define TARGET_TYPE_FILTER_COMMAND_LINE_HELP \ | 158 #define TARGET_TYPE_FILTER_COMMAND_LINE_HELP \ |
159 " --type=(action|copy|executable|group|shared_library|source_set|\n"\ | 159 " --type=(action|copy|executable|group|loadable_module|shared_library|\n"\ |
160 " static_library)\n"\ | 160 " source_set|static_library)\n"\ |
161 " Restrict outputs to targets matching the given type. If\n"\ | 161 " Restrict outputs to targets matching the given type. If\n"\ |
162 " unspecified, no filtering will be performed.\n" | 162 " unspecified, no filtering will be performed.\n" |
163 #define TARGET_TESTONLY_FILTER_COMMAND_LINE_HELP \ | 163 #define TARGET_TESTONLY_FILTER_COMMAND_LINE_HELP \ |
164 " --testonly=(true|false)\n"\ | 164 " --testonly=(true|false)\n"\ |
165 " Restrict outputs to targets with the testonly flag set\n"\ | 165 " Restrict outputs to targets with the testonly flag set\n"\ |
166 " accordingly. When unspecified, the target's testonly flags are\n"\ | 166 " accordingly. When unspecified, the target's testonly flags are\n"\ |
167 " ignored.\n" | 167 " ignored.\n" |
168 | 168 |
169 // Applies any testonly and type filters specified on the command line, | 169 // Applies any testonly and type filters specified on the command line, |
170 // and prints the targets as specified by the --as command line flag. | 170 // and prints the targets as specified by the --as command line flag. |
171 // | 171 // |
172 // If indent is true, the results will be indented two spaces. | 172 // If indent is true, the results will be indented two spaces. |
173 // | 173 // |
174 // The vector will be modified so that only the printed targets will remain. | 174 // The vector will be modified so that only the printed targets will remain. |
175 void FilterAndPrintTargets(bool indent, std::vector<const Target*>* targets); | 175 void FilterAndPrintTargets(bool indent, std::vector<const Target*>* targets); |
176 void FilterAndPrintTargetSet(bool indent, | 176 void FilterAndPrintTargetSet(bool indent, |
177 const std::set<const Target*>& targets); | 177 const std::set<const Target*>& targets); |
178 | 178 |
179 } // namespace commands | 179 } // namespace commands |
180 | 180 |
181 #endif // TOOLS_GN_COMMANDS_H_ | 181 #endif // TOOLS_GN_COMMANDS_H_ |
OLD | NEW |