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

Unified Diff: tools/gn/target.h

Issue 22290010: Add support for data deps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove switch Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/secondary/build/config/mac/BUILD.gn ('k') | tools/gn/target_generator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/target.h
diff --git a/tools/gn/target.h b/tools/gn/target.h
index 63d62ae27174f48865c5bb950aadc31f95cc8d1f..ac0fc59c908c6c40bfb5e816f501ec3763f075cc 100644
--- a/tools/gn/target.h
+++ b/tools/gn/target.h
@@ -64,9 +64,14 @@ class Target : public Item {
const FileList& data() const { return data_; }
void swap_in_data(FileList* d) { data_.swap(*d); }
+ // Linked dependencies.
const std::vector<const Target*>& deps() const { return deps_; }
void swap_in_deps(std::vector<const Target*>* d) { deps_.swap(*d); }
+ // Non-linked dependencies.
+ const std::vector<const Target*>& datadeps() const { return datadeps_; }
+ void swap_in_datadeps(std::vector<const Target*>* d) { datadeps_.swap(*d); }
+
// List of configs that this class inherits settings from.
const std::vector<const Config*>& configs() const { return configs_; }
void swap_in_configs(std::vector<const Config*>* c) { configs_.swap(*c); }
@@ -118,6 +123,7 @@ class Target : public Item {
FileList sources_;
FileList data_;
std::vector<const Target*> deps_;
+ std::vector<const Target*> datadeps_;
std::vector<const Config*> configs_;
std::vector<const Config*> all_dependent_configs_;
std::vector<const Config*> direct_dependent_configs_;
« no previous file with comments | « tools/gn/secondary/build/config/mac/BUILD.gn ('k') | tools/gn/target_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698