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

Unified Diff: tools/gn/variables.cc

Issue 35933003: Add documentation for GN's GYP generation. (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/command_gyp.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/variables.cc
diff --git a/tools/gn/variables.cc b/tools/gn/variables.cc
index 7345b96b5397f2f85a74d15370cb561842de9815..ea40adef20236e4bdcc574a3c6390cce37d6ee6c 100644
--- a/tools/gn/variables.cc
+++ b/tools/gn/variables.cc
@@ -492,7 +492,13 @@ const char kGypFile[] = "gyp_file";
const char kGypFile_HelpShort[] =
"gyp_file: [file name] Name of GYP file to write to in GYP mode.";
const char kGypFile_Help[] =
- "gyp_file: Name of GYP file to write to in GYP mode.\n";
+ "gyp_file: Name of GYP file to write to in GYP mode.\n"
+ "\n"
+ " See \"gn help gyp\" for an overview of how this works.\n"
+ "\n"
+ " Tip: If all targets in a given BUILD.gn file should go in the same\n"
+ " GYP file, just put gyp_file = \"foo\" at the top of the file and\n"
+ " the variable will be in scope for all targets.\n";
const char kHardDep[] = "hard_dep";
const char kHardDep_HelpShort[] =
« no previous file with comments | « tools/gn/command_gyp.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698