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 <algorithm> | 5 #include <algorithm> |
6 #include <set> | 6 #include <set> |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "tools/gn/commands.h" | 10 #include "tools/gn/commands.h" |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 " Used with any value specified by a config, this will name\n" | 281 " Used with any value specified by a config, this will name\n" |
282 " the config that specified the value. This doesn't currently work\n" | 282 " the config that specified the value. This doesn't currently work\n" |
283 " for libs and lib_dirs because those are inherited and are more\n" | 283 " for libs and lib_dirs because those are inherited and are more\n" |
284 " complicated to figure out the blame (patches welcome).\n" | 284 " complicated to figure out the blame (patches welcome).\n" |
285 "\n" | 285 "\n" |
286 "Note:\n" | 286 "Note:\n" |
287 " This command will show the full name of directories and source files,\n" | 287 " This command will show the full name of directories and source files,\n" |
288 " but when directories and source paths are written to the build file,\n" | 288 " but when directories and source paths are written to the build file,\n" |
289 " they will be adjusted to be relative to the build directory. So the\n" | 289 " they will be adjusted to be relative to the build directory. So the\n" |
290 " values for paths displayed by this command won't match (but should\n" | 290 " values for paths displayed by this command won't match (but should\n" |
291 " mean the same thing.\n" | 291 " mean the same thing).\n" |
292 "\n" | 292 "\n" |
293 "Examples:\n" | 293 "Examples:\n" |
294 " gn desc //base:base\n" | 294 " gn desc //base:base\n" |
295 " Summarizes the given target.\n" | 295 " Summarizes the given target.\n" |
296 "\n" | 296 "\n" |
297 " gn desc :base_unittests deps --tree\n" | 297 " gn desc :base_unittests deps --tree\n" |
298 " Shows a dependency tree of the \"base_unittests\" project in\n" | 298 " Shows a dependency tree of the \"base_unittests\" project in\n" |
299 " the current directory.\n" | 299 " the current directory.\n" |
300 "\n" | 300 "\n" |
301 " gn desc //base defines --blame\n" | 301 " gn desc //base defines --blame\n" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 OUTPUT_CONFIG_VALUE(ldflags, std::string) | 380 OUTPUT_CONFIG_VALUE(ldflags, std::string) |
381 PrintLibs(target, true); | 381 PrintLibs(target, true); |
382 PrintLibDirs(target, true); | 382 PrintLibDirs(target, true); |
383 | 383 |
384 PrintDeps(target, true); | 384 PrintDeps(target, true); |
385 | 385 |
386 return 0; | 386 return 0; |
387 } | 387 } |
388 | 388 |
389 } // namespace commands | 389 } // namespace commands |
OLD | NEW |