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

Unified Diff: tools/gn/filesystem_utils.h

Issue 1256043006: Reference written files relatively when possible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | tools/gn/filesystem_utils.cc » ('j') | tools/gn/ninja_build_writer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/filesystem_utils.h
diff --git a/tools/gn/filesystem_utils.h b/tools/gn/filesystem_utils.h
index 4f258e1d47c5bfe3a97b885d0e46326f1d5a43ff..47caad7520f3e3adc9180bbd9c4f6a51b6eab8d1 100644
--- a/tools/gn/filesystem_utils.h
+++ b/tools/gn/filesystem_utils.h
@@ -100,6 +100,13 @@ bool EnsureStringIsInOutputDir(const SourceDir& output_dir,
const ParseNode* origin,
Err* err);
+// If the file isn't in the dir, returns the empty string and sets the error.
+// Otherwise returns the short output name and leaves the error untouched.
+base::FilePath::StringType ComputeStringInOutputDir(const SourceDir& output_dir,
+ const SourceFile& file,
+ Err* err);
+
+
// ----------------------------------------------------------------------------
// Returns true if the input string is absolute. Double-slashes at the
« no previous file with comments | « no previous file | tools/gn/filesystem_utils.cc » ('j') | tools/gn/ninja_build_writer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698