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

Unified Diff: tools/gn/target.h

Issue 26561005: GYP generator for GN (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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/source_file.cc ('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 1bb51a6b388208686ddf3723747cb2f3126fe054..8dfc4cc14188b8479d773c18875505a7fc578ec3 100644
--- a/tools/gn/target.h
+++ b/tools/gn/target.h
@@ -140,6 +140,9 @@ class Target : public Item {
const OrderedSet<SourceDir>& all_lib_dirs() const { return all_lib_dirs_; }
const OrderedSet<std::string>& all_libs() const { return all_libs_; }
+ const SourceFile& gyp_file() const { return gyp_file_; }
+ void set_gyp_file(const SourceFile& gf) { gyp_file_ = gf; }
+
private:
// Pulls necessary information from dependents to this one when all
// dependencies have been resolved.
@@ -189,7 +192,7 @@ class Target : public Item {
ConfigValues config_values_; // Used for all binary targets.
ScriptValues script_values_; // Used for script (CUSTOM) targets.
- SourceDir destdir_;
+ SourceFile gyp_file_;
bool generated_;
const Token* generator_function_; // Who generated this: for error messages.
« no previous file with comments | « tools/gn/source_file.cc ('k') | tools/gn/target_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698