OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "tools/gn/err.h" | 5 #include "tools/gn/err.h" |
6 #include "tools/gn/filesystem_utils.h" | 6 #include "tools/gn/filesystem_utils.h" |
7 #include "tools/gn/functions.h" | 7 #include "tools/gn/functions.h" |
8 #include "tools/gn/parse_tree.h" | 8 #include "tools/gn/parse_tree.h" |
9 #include "tools/gn/scope.h" | 9 #include "tools/gn/scope.h" |
10 #include "tools/gn/value.h" | 10 #include "tools/gn/value.h" |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 " given file, not including a trailing slash.\n" | 167 " given file, not including a trailing slash.\n" |
168 " \"//foo/bar/baz.txt\" => \"//out/Default/obj/foo/bar\"\n" | 168 " \"//foo/bar/baz.txt\" => \"//out/Default/obj/foo/bar\"\n" |
169 | 169 |
170 " \"gen_dir\"\n" | 170 " \"gen_dir\"\n" |
171 " The generated file directory corresponding to the path of the\n" | 171 " The generated file directory corresponding to the path of the\n" |
172 " given file, not including a trailing slash.\n" | 172 " given file, not including a trailing slash.\n" |
173 " \"//foo/bar/baz.txt\" => \"//out/Default/gen/foo/bar\"\n" | 173 " \"//foo/bar/baz.txt\" => \"//out/Default/gen/foo/bar\"\n" |
174 "\n" | 174 "\n" |
175 " \"abspath\"\n" | 175 " \"abspath\"\n" |
176 " The full absolute path name to the file or directory. It will be\n" | 176 " The full absolute path name to the file or directory. It will be\n" |
177 " resolved relative to the currebt directory, and then the source-\n" | 177 " resolved relative to the current directory, and then the source-\n" |
178 " absolute version will be returned. If the input is system-\n" | 178 " absolute version will be returned. If the input is system-\n" |
179 " absolute, the same input will be returned.\n" | 179 " absolute, the same input will be returned.\n" |
180 " \"foo/bar.txt\" => \"//mydir/foo/bar.txt\"\n" | 180 " \"foo/bar.txt\" => \"//mydir/foo/bar.txt\"\n" |
181 " \"foo/\" => \"//mydir/foo/\"\n" | 181 " \"foo/\" => \"//mydir/foo/\"\n" |
182 " \"//foo/bar\" => \"//foo/bar\" (already absolute)\n" | 182 " \"//foo/bar\" => \"//foo/bar\" (already absolute)\n" |
183 " \"/usr/include\" => \"/usr/include\" (already absolute)\n" | 183 " \"/usr/include\" => \"/usr/include\" (already absolute)\n" |
184 "\n" | 184 "\n" |
185 " If you want to make the path relative to another directory, or to\n" | 185 " If you want to make the path relative to another directory, or to\n" |
186 " be system-absolute, see rebase_path().\n" | 186 " be system-absolute, see rebase_path().\n" |
187 "\n" | 187 "\n" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 return Value(); | 242 return Value(); |
243 } | 243 } |
244 return result; | 244 return result; |
245 } | 245 } |
246 | 246 |
247 *err = Err(args[0], "Path must be a string or a list of strings."); | 247 *err = Err(args[0], "Path must be a string or a list of strings."); |
248 return Value(); | 248 return Value(); |
249 } | 249 } |
250 | 250 |
251 } // namespace functions | 251 } // namespace functions |
OLD | NEW |