| 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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 PrintDeps(target, false); | 675 PrintDeps(target, false); |
| 676 } else if (what == variables::kLibDirs) { | 676 } else if (what == variables::kLibDirs) { |
| 677 PrintLibDirs(target, false); | 677 PrintLibDirs(target, false); |
| 678 } else if (what == variables::kLibs) { | 678 } else if (what == variables::kLibs) { |
| 679 PrintLibs(target, false); | 679 PrintLibs(target, false); |
| 680 } else if (what == "runtime_deps") { | 680 } else if (what == "runtime_deps") { |
| 681 PrintRuntimeDeps(target); | 681 PrintRuntimeDeps(target); |
| 682 | 682 |
| 683 CONFIG_VALUE_HANDLER(defines, std::string) | 683 CONFIG_VALUE_HANDLER(defines, std::string) |
| 684 CONFIG_VALUE_HANDLER(include_dirs, SourceDir) | 684 CONFIG_VALUE_HANDLER(include_dirs, SourceDir) |
| 685 CONFIG_VALUE_HANDLER(asmflags, std::string) |
| 685 CONFIG_VALUE_HANDLER(cflags, std::string) | 686 CONFIG_VALUE_HANDLER(cflags, std::string) |
| 686 CONFIG_VALUE_HANDLER(cflags_c, std::string) | 687 CONFIG_VALUE_HANDLER(cflags_c, std::string) |
| 687 CONFIG_VALUE_HANDLER(cflags_cc, std::string) | 688 CONFIG_VALUE_HANDLER(cflags_cc, std::string) |
| 688 CONFIG_VALUE_HANDLER(cflags_objc, std::string) | 689 CONFIG_VALUE_HANDLER(cflags_objc, std::string) |
| 689 CONFIG_VALUE_HANDLER(cflags_objcc, std::string) | 690 CONFIG_VALUE_HANDLER(cflags_objcc, std::string) |
| 690 CONFIG_VALUE_HANDLER(ldflags, std::string) | 691 CONFIG_VALUE_HANDLER(ldflags, std::string) |
| 691 | 692 |
| 692 } else { | 693 } else { |
| 693 OutputString("Don't know how to display \"" + what + "\".\n"); | 694 OutputString("Don't know how to display \"" + what + "\".\n"); |
| 694 return 1; | 695 return 1; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 | 736 |
| 736 PrintPublicConfigs(target, true); | 737 PrintPublicConfigs(target, true); |
| 737 PrintAllDependentConfigs(target, true); | 738 PrintAllDependentConfigs(target, true); |
| 738 PrintForwardDependentConfigsFrom(target, true); | 739 PrintForwardDependentConfigsFrom(target, true); |
| 739 | 740 |
| 740 PrintInputs(target, true); | 741 PrintInputs(target, true); |
| 741 | 742 |
| 742 if (is_binary_output) { | 743 if (is_binary_output) { |
| 743 OUTPUT_CONFIG_VALUE(defines, std::string) | 744 OUTPUT_CONFIG_VALUE(defines, std::string) |
| 744 OUTPUT_CONFIG_VALUE(include_dirs, SourceDir) | 745 OUTPUT_CONFIG_VALUE(include_dirs, SourceDir) |
| 746 OUTPUT_CONFIG_VALUE(asmflags, std::string) |
| 745 OUTPUT_CONFIG_VALUE(cflags, std::string) | 747 OUTPUT_CONFIG_VALUE(cflags, std::string) |
| 746 OUTPUT_CONFIG_VALUE(cflags_c, std::string) | 748 OUTPUT_CONFIG_VALUE(cflags_c, std::string) |
| 747 OUTPUT_CONFIG_VALUE(cflags_cc, std::string) | 749 OUTPUT_CONFIG_VALUE(cflags_cc, std::string) |
| 748 OUTPUT_CONFIG_VALUE(cflags_objc, std::string) | 750 OUTPUT_CONFIG_VALUE(cflags_objc, std::string) |
| 749 OUTPUT_CONFIG_VALUE(cflags_objcc, std::string) | 751 OUTPUT_CONFIG_VALUE(cflags_objcc, std::string) |
| 750 OUTPUT_CONFIG_VALUE(ldflags, std::string) | 752 OUTPUT_CONFIG_VALUE(ldflags, std::string) |
| 751 } | 753 } |
| 752 | 754 |
| 753 if (target->output_type() == Target::ACTION || | 755 if (target->output_type() == Target::ACTION || |
| 754 target->output_type() == Target::ACTION_FOREACH) { | 756 target->output_type() == Target::ACTION_FOREACH) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 767 // so always display them, even for groups and such. | 769 // so always display them, even for groups and such. |
| 768 PrintLibs(target, true); | 770 PrintLibs(target, true); |
| 769 PrintLibDirs(target, true); | 771 PrintLibDirs(target, true); |
| 770 | 772 |
| 771 PrintDeps(target, true); | 773 PrintDeps(target, true); |
| 772 | 774 |
| 773 return 0; | 775 return 0; |
| 774 } | 776 } |
| 775 | 777 |
| 776 } // namespace commands | 778 } // namespace commands |
| OLD | NEW |