Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: tools/gn/command_desc.cc

Issue 1606553002: Add support for Mac/iOS application bundles to GN tool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add unit tests & support for bundle_data_filter Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 return 1; 673 return 1;
674 } 674 }
675 675
676 #undef CONFIG_VALUE_HANDLER 676 #undef CONFIG_VALUE_HANDLER
677 return 0; 677 return 0;
678 } 678 }
679 679
680 // Display summary. 680 // Display summary.
681 681
682 // Display this only applicable to binary targets. 682 // Display this only applicable to binary targets.
683 bool is_binary_output = 683 bool is_binary_output = target->output_type() != Target::GROUP &&
684 target->output_type() != Target::GROUP && 684 target->output_type() != Target::COPY_FILES &&
685 target->output_type() != Target::COPY_FILES && 685 target->output_type() != Target::COPY_BUNDLE_DATA &&
686 target->output_type() != Target::ACTION && 686 target->output_type() != Target::ACTION &&
687 target->output_type() != Target::ACTION_FOREACH; 687 target->output_type() != Target::ACTION_FOREACH;
688 688
689 // Generally we only want to display toolchains on labels when the toolchain 689 // Generally we only want to display toolchains on labels when the toolchain
690 // is different than the default one for this target (which we always print 690 // is different than the default one for this target (which we always print
691 // in the header). 691 // in the header).
692 Label target_toolchain = target->label().GetToolchainLabel(); 692 Label target_toolchain = target->label().GetToolchainLabel();
693 693
694 // Header. 694 // Header.
695 OutputString("Target: ", DECORATION_YELLOW); 695 OutputString("Target: ", DECORATION_YELLOW);
696 OutputString(target->label().GetUserVisibleName(false) + "\n"); 696 OutputString(target->label().GetUserVisibleName(false) + "\n");
697 OutputString("Type: ", DECORATION_YELLOW); 697 OutputString("Type: ", DECORATION_YELLOW);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 731
732 if (target->output_type() == Target::ACTION || 732 if (target->output_type() == Target::ACTION ||
733 target->output_type() == Target::ACTION_FOREACH) { 733 target->output_type() == Target::ACTION_FOREACH) {
734 PrintScript(target, true); 734 PrintScript(target, true);
735 PrintArgs(target, true); 735 PrintArgs(target, true);
736 PrintDepfile(target, true); 736 PrintDepfile(target, true);
737 } 737 }
738 738
739 if (target->output_type() == Target::ACTION || 739 if (target->output_type() == Target::ACTION ||
740 target->output_type() == Target::ACTION_FOREACH || 740 target->output_type() == Target::ACTION_FOREACH ||
741 target->output_type() == Target::COPY_FILES) { 741 target->output_type() == Target::COPY_FILES ||
742 target->output_type() == Target::COPY_BUNDLE_DATA) {
742 PrintOutputs(target, true); 743 PrintOutputs(target, true);
743 } 744 }
744 745
745 // Libs can be part of any target and get recursively pushed up the chain, 746 // Libs can be part of any target and get recursively pushed up the chain,
746 // so always display them, even for groups and such. 747 // so always display them, even for groups and such.
747 PrintLibs(target, true); 748 PrintLibs(target, true);
748 PrintLibDirs(target, true); 749 PrintLibDirs(target, true);
749 750
750 PrintDeps(target, true); 751 PrintDeps(target, true);
751 752
752 return 0; 753 return 0;
753 } 754 }
754 755
755 } // namespace commands 756 } // namespace commands
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698