summaryrefslogtreecommitdiffstats
path: root/tools/gn/variables.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-17 16:54:24 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-17 16:54:24 +0000
commit43bf6a5be7de0a1358dd64f574b4cb53dbbce235 (patch)
treef60756a2757b8ed6dcb1e7caeca9b74c5c76eca1 /tools/gn/variables.h
parent629569182b38946119b2e7a013725e08b55a4d85 (diff)
downloadchromium_src-43bf6a5be7de0a1358dd64f574b4cb53dbbce235.zip
chromium_src-43bf6a5be7de0a1358dd64f574b4cb53dbbce235.tar.gz
chromium_src-43bf6a5be7de0a1358dd64f574b4cb53dbbce235.tar.bz2
This changes the current directory for script execution to be the build directory rather than the current BUILDfile directory. This makes things more consistent and simplifies some implementation.
It adds a new function to_build_path() for buildfiles to convert files to the build directory for this kind of call. I removed all of the built-in relative* variables that were required to support this, and added one for target_out_dir and root_out_dir. I added some tests and a test helper object since I was doing this kind of Scope setup a lot. R=scottmg@chromium.org Review URL: https://codereview.chromium.org/23606031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223622 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/gn/variables.h')
-rw-r--r--tools/gn/variables.h32
1 files changed, 8 insertions, 24 deletions
diff --git a/tools/gn/variables.h b/tools/gn/variables.h
index cdb50e6..7fb50cf 100644
--- a/tools/gn/variables.h
+++ b/tools/gn/variables.h
@@ -41,38 +41,22 @@ extern const char kPythonPath[];
extern const char kPythonPath_HelpShort[];
extern const char kPythonPath_Help[];
-extern const char kRelativeBuildToSourceRootDir[];
-extern const char kRelativeBuildToSourceRootDir_HelpShort[];
-extern const char kRelativeBuildToSourceRootDir_Help[];
-
-extern const char kRelativeRootGenDir[];
-extern const char kRelativeRootGenDir_HelpShort[];
-extern const char kRelativeRootGenDir_Help[];
-
-extern const char kRelativeRootOutputDir[];
-extern const char kRelativeRootOutputDir_HelpShort[];
-extern const char kRelativeRootOutputDir_Help[];
-
-extern const char kRelativeSourceRootDir[];
-extern const char kRelativeSourceRootDir_HelpShort[];
-extern const char kRelativeSourceRootDir_Help[];
-
-extern const char kRelativeTargetGenDir[];
-extern const char kRelativeTargetGenDir_HelpShort[];
-extern const char kRelativeTargetGenDir_Help[];
-
-extern const char kRelativeTargetOutputDir[];
-extern const char kRelativeTargetOutputDir_HelpShort[];
-extern const char kRelativeTargetOutputDir_Help[];
-
extern const char kRootGenDir[];
extern const char kRootGenDir_HelpShort[];
extern const char kRootGenDir_Help[];
+extern const char kRootOutDir[];
+extern const char kRootOutDir_HelpShort[];
+extern const char kRootOutDir_Help[];
+
extern const char kTargetGenDir[];
extern const char kTargetGenDir_HelpShort[];
extern const char kTargetGenDir_Help[];
+extern const char kTargetOutDir[];
+extern const char kTargetOutDir_HelpShort[];
+extern const char kTargetOutDir_Help[];
+
// Target vars -----------------------------------------------------------------
extern const char kAllDependentConfigs[];