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

Side by Side Diff: tools/gn/target.h

Issue 2880093002: gn desc: printing public_deps without --all and --tree
Patch Set: addressing some comments Created 3 years, 6 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 #ifndef TOOLS_GN_TARGET_H_ 5 #ifndef TOOLS_GN_TARGET_H_
6 #define TOOLS_GN_TARGET_H_ 6 #define TOOLS_GN_TARGET_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 30 matching lines...) Expand all
41 STATIC_LIBRARY, 41 STATIC_LIBRARY,
42 SOURCE_SET, 42 SOURCE_SET,
43 COPY_FILES, 43 COPY_FILES,
44 ACTION, 44 ACTION,
45 ACTION_FOREACH, 45 ACTION_FOREACH,
46 BUNDLE_DATA, 46 BUNDLE_DATA,
47 CREATE_BUNDLE, 47 CREATE_BUNDLE,
48 }; 48 };
49 49
50 enum DepsIterationType { 50 enum DepsIterationType {
51 DEPS_ALL, // Iterates through all public, private, and data deps. 51 DEPS_ALL, // Iterates through all public, private, and data deps.
52 DEPS_LINKED, // Iterates through all non-data dependencies. 52 DEPS_LINKED, // Iterates through all non-data dependencies.
53 DEPS_PRIVATE, // Iterates through private and data deps.
brettw 2017/06/07 19:59:15 This shouldn't include data deps.
mbonadei1 2017/06/08 11:37:45 Done.
54 DEPS_PUBLIC, // Iterates through public deps.
53 }; 55 };
54 56
55 typedef std::vector<SourceFile> FileList; 57 typedef std::vector<SourceFile> FileList;
56 typedef std::vector<std::string> StringVector; 58 typedef std::vector<std::string> StringVector;
57 59
58 Target(const Settings* settings, const Label& label); 60 Target(const Settings* settings, const Label& label);
59 ~Target() override; 61 ~Target() override;
60 62
61 // Returns a string naming the output type. 63 // Returns a string naming the output type.
62 static const char* GetStringForOutputType(OutputType type); 64 static const char* GetStringForOutputType(OutputType type);
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 OutputFile link_output_file_; 395 OutputFile link_output_file_;
394 OutputFile dependency_output_file_; 396 OutputFile dependency_output_file_;
395 std::vector<OutputFile> runtime_outputs_; 397 std::vector<OutputFile> runtime_outputs_;
396 398
397 DISALLOW_COPY_AND_ASSIGN(Target); 399 DISALLOW_COPY_AND_ASSIGN(Target);
398 }; 400 };
399 401
400 extern const char kExecution_Help[]; 402 extern const char kExecution_Help[];
401 403
402 #endif // TOOLS_GN_TARGET_H_ 404 #endif // TOOLS_GN_TARGET_H_
OLDNEW
« tools/gn/desc_builder.cc ('K') | « tools/gn/desc_builder.cc ('k') | tools/gn/target.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698