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

Unified Diff: tools/gn/item.h

Issue 2940873002: Implement tracking of BUILD.gn files used to define target, toolchain or (Closed)
Patch Set: Fix compilation after rebase. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/input_file.h ('k') | tools/gn/item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/item.h
diff --git a/tools/gn/item.h b/tools/gn/item.h
index 3ec482af1df7b11445f07eee1dcb139f48c28ae9..2c2233f3bd2e5a52fe909d7d2b88b8f830d09f0b 100644
--- a/tools/gn/item.h
+++ b/tools/gn/item.h
@@ -7,6 +7,7 @@
#include <string>
+#include "tools/gn/input_file.h"
#include "tools/gn/label.h"
#include "tools/gn/visibility.h"
@@ -21,7 +22,9 @@ class Toolchain;
// graph.
class Item {
public:
- Item(const Settings* settings, const Label& label);
+ Item(const Settings* settings,
+ const Label& label,
+ const InputFileSet& input_files);
virtual ~Item();
const Settings* settings() const { return settings_; }
@@ -55,12 +58,15 @@ class Item {
// returns false on failure.
virtual bool OnResolved(Err* err);
+ const InputFileSet& input_files() const { return input_files_; }
+
private:
const Settings* settings_;
Label label_;
const ParseNode* defined_from_;
Visibility visibility_;
+ InputFileSet input_files_;
};
#endif // TOOLS_GN_ITEM_H_
« no previous file with comments | « tools/gn/input_file.h ('k') | tools/gn/item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698