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

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

Issue 1751903003: Add "bundle_data" target as first step for adding bundle support to gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-typos
Patch Set: Rebase Created 4 years, 9 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
« no previous file with comments | « tools/gn/bundle_data_target_generator.cc ('k') | tools/gn/functions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 =
684 target->output_type() != Target::GROUP && 684 target->output_type() != Target::GROUP &&
685 target->output_type() != Target::COPY_FILES && 685 target->output_type() != Target::COPY_FILES &&
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 target->output_type() != Target::BUNDLE_DATA;
688 689
689 // Generally we only want to display toolchains on labels when the toolchain 690 // 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 691 // is different than the default one for this target (which we always print
691 // in the header). 692 // in the header).
692 Label target_toolchain = target->label().GetToolchainLabel(); 693 Label target_toolchain = target->label().GetToolchainLabel();
693 694
694 // Header. 695 // Header.
695 OutputString("Target: ", DECORATION_YELLOW); 696 OutputString("Target: ", DECORATION_YELLOW);
696 OutputString(target->label().GetUserVisibleName(false) + "\n"); 697 OutputString(target->label().GetUserVisibleName(false) + "\n");
697 OutputString("Type: ", DECORATION_YELLOW); 698 OutputString("Type: ", DECORATION_YELLOW);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
« no previous file with comments | « tools/gn/bundle_data_target_generator.cc ('k') | tools/gn/functions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698