summaryrefslogtreecommitdiffstats
path: root/tools/gn/variables.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-23 17:59:22 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-23 17:59:22 +0000
commitea3690cf973006fd3829c7032f71d4e8e4c47402 (patch)
treedaf2613a3b856cbc8e38480e4654ffa14181582e /tools/gn/variables.cc
parent7191e2211c96f02000bed9c449af72332e412ac0 (diff)
downloadchromium_src-ea3690cf973006fd3829c7032f71d4e8e4c47402.zip
chromium_src-ea3690cf973006fd3829c7032f71d4e8e4c47402.tar.gz
chromium_src-ea3690cf973006fd3829c7032f71d4e8e4c47402.tar.bz2
Replace to_build_path() with the more general rebase_path(). Use rebase_path to (finally) make grit paths work properly.
Add more colors to help, yay! I also removed a bunch of colons from headings since they look stupid with the colors. Add a new variable root_build_dir. Fix some bugs in the scope_per_file_provider that didn't include the toolchain subdirectory. Add some more tests for this. Add a --no-exec command-line option to skip executing scripts so one can see how fast things run without forking out to grit and friends. Add non-Linux build for expat. Other Windows build stuff for SSL, base BUG= R=scottmg@chromium.org Review URL: https://codereview.chromium.org/23618064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224747 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/gn/variables.cc')
-rw-r--r--tools/gn/variables.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/gn/variables.cc b/tools/gn/variables.cc
index 499ba6b..baacb3c 100644
--- a/tools/gn/variables.cc
+++ b/tools/gn/variables.cc
@@ -97,6 +97,18 @@ const char kPythonPath_Help[] =
" requires Python. You will normally not need this when invoking scripts\n"
" since GN automatically finds it for you.\n";
+const char kRootBuildDir[] = "root_build_dir";
+const char kRootBuildDir_HelpShort[] =
+ "root_build_dir: [string] Directory where build commands are run.";
+const char kRootBuildDir_Help[] =
+ "root_build_dir: [string] Directory where build commands are run.\n"
+ "\n"
+ " This is the root build output directory which will be the current\n"
+ " directory when executing all compilers and scripts.\n"
+ "\n"
+ " Most often this is used with rebase_path (see \"gn help rebase_path\")\n"
+ " to convert arguments to be relative to a script's current directory.\n";
+
const char kRootGenDir[] = "root_gen_dir";
const char kRootGenDir_HelpShort[] =
"root_gen_dir: [string] Directory for the toolchain's generated files.";
@@ -647,6 +659,7 @@ const VariableInfoMap& GetBuiltinVariables() {
INSERT_VARIABLE(IsPosix)
INSERT_VARIABLE(IsWin)
INSERT_VARIABLE(PythonPath)
+ INSERT_VARIABLE(RootBuildDir)
INSERT_VARIABLE(RootGenDir)
INSERT_VARIABLE(RootOutDir)
INSERT_VARIABLE(TargetGenDir)