summaryrefslogtreecommitdiffstats
path: root/tools/gn/filesystem_utils.h
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/filesystem_utils.h
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/filesystem_utils.h')
-rw-r--r--tools/gn/filesystem_utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/gn/filesystem_utils.h b/tools/gn/filesystem_utils.h
index bf214dc..9899cae 100644
--- a/tools/gn/filesystem_utils.h
+++ b/tools/gn/filesystem_utils.h
@@ -133,4 +133,9 @@ void NormalizePath(std::string* path);
void ConvertPathToSystem(std::string* path);
std::string PathToSystem(const std::string& path);
+// Takes a source-absolute path (must begin with "//") and makes it relative
+// to the given directory, which also must be source-absolute.
+std::string RebaseSourceAbsolutePath(const std::string& input,
+ const SourceDir& dest_dir);
+
#endif // TOOLS_GN_FILESYSTEM_UTILS_H_