| 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 #include "tools/gn/commands.h" | 5 #include "tools/gn/commands.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "tools/gn/builder.h" | 8 #include "tools/gn/builder.h" |
| 9 #include "tools/gn/filesystem_utils.h" | 9 #include "tools/gn/filesystem_utils.h" |
| 10 #include "tools/gn/item.h" | 10 #include "tools/gn/item.h" |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 return true; | 199 return true; |
| 200 } | 200 } |
| 201 if (value == "source_set") { | 201 if (value == "source_set") { |
| 202 *type = Target::SOURCE_SET; | 202 *type = Target::SOURCE_SET; |
| 203 return true; | 203 return true; |
| 204 } | 204 } |
| 205 if (value == "copy") { | 205 if (value == "copy") { |
| 206 *type = Target::COPY_FILES; | 206 *type = Target::COPY_FILES; |
| 207 return true; | 207 return true; |
| 208 } | 208 } |
| 209 if (value == "copy_bundle_data") { |
| 210 *type = Target::COPY_BUNDLE_DATA; |
| 211 return true; |
| 212 } |
| 209 if (value == "action") { | 213 if (value == "action") { |
| 210 *type = Target::ACTION; | 214 *type = Target::ACTION; |
| 211 return true; | 215 return true; |
| 212 } | 216 } |
| 213 | 217 |
| 214 Err(Location(), "Invalid value for \"--type\".").PrintToStdout(); | 218 Err(Location(), "Invalid value for \"--type\".").PrintToStdout(); |
| 215 return false; | 219 return false; |
| 216 } | 220 } |
| 217 | 221 |
| 218 | 222 |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 } | 497 } |
| 494 } | 498 } |
| 495 | 499 |
| 496 void FilterAndPrintTargetSet(bool indent, | 500 void FilterAndPrintTargetSet(bool indent, |
| 497 const std::set<const Target*>& targets) { | 501 const std::set<const Target*>& targets) { |
| 498 std::vector<const Target*> target_vector(targets.begin(), targets.end()); | 502 std::vector<const Target*> target_vector(targets.begin(), targets.end()); |
| 499 FilterAndPrintTargets(indent, &target_vector); | 503 FilterAndPrintTargets(indent, &target_vector); |
| 500 } | 504 } |
| 501 | 505 |
| 502 } // namespace commands | 506 } // namespace commands |
| OLD | NEW |