Home
last modified time | relevance | path

Searched refs:RebasePath (Results 1 – 14 of 14) sorted by relevance

/third_party/gn/src/gn/
Dfilesystem_utils_unittest.cc426 TEST(FilesystemUtils, RebasePath) { in TEST() argument
430 EXPECT_EQ(".", RebasePath("//", SourceDir("//"), source_root)); in TEST()
432 RebasePath("//foo/bar/", SourceDir("//foo/bar/"), source_root)); in TEST()
435 EXPECT_EQ("../foo", RebasePath("//foo", SourceDir("//bar/"), source_root)); in TEST()
436 EXPECT_EQ("../foo/", RebasePath("//foo/", SourceDir("//bar/"), source_root)); in TEST()
438 RebasePath("//foo", SourceDir("//bar/moo"), source_root)); in TEST()
440 RebasePath("//foo/", SourceDir("//bar/moo"), source_root)); in TEST()
443 EXPECT_EQ("foo/bar", RebasePath("//foo/bar", SourceDir("//"), source_root)); in TEST()
444 EXPECT_EQ("foo/bar/", RebasePath("//foo/bar/", SourceDir("//"), source_root)); in TEST()
448 RebasePath("//foo/bar", SourceDir("//a/b/"), source_root)); in TEST()
[all …]
Dfunction_rebase_path_unittest.cc33 TEST(RebasePath, Strings) { in TEST() argument
95 TEST(RebasePath, StringsSystemPaths) { in TEST() argument
151 TEST(RebasePath, List) { in TEST() argument
174 TEST(RebasePath, Errors) { in TEST() argument
Dxcode_writer.cc254 const std::string source_path = RebasePath( in AddXCTestFilesToTestModuleTarget()
345 return RebasePath("//", build_settings->build_dir()); in SourcePathFromBuildSettings()
653 const std::string source_file = RebasePath( in AddSourcesFromBuilder()
894 output_dir = RebasePath(output_dir, build_settings_->build_dir()); in AddBinaryTarget()
923 const std::string& target_output_name = RebasePath( in AddBundleTarget()
927 RebasePath(target->bundle_data().GetBundleDir(target->settings()).value(), in AddBundleTarget()
Dsubstitution_writer.cc367 return RebasePath(DirectoryWithNoLastSlash(source.GetDir()), in GetSourceSubstitution()
378 return RebasePath(source.value(), target->label().dir(), in GetSourceSubstitution()
397 return RebasePath(to_rebase, relative_to, in GetSourceSubstitution()
565 RebasePath(target->output_dir().value(), in GetLinkerSubstitution()
Dfunction_rebase_path.cc96 result.string_value() = RebasePath( in ConvertOnePath()
110 RebasePath(resolved_file.value(), to_dir, in ConvertOnePath()
Doutput_file.cc16 : value_(RebasePath(source_file.value(), in OutputFile()
Dfilesystem_utils.h150 std::string RebasePath(const std::string& input,
Dpath_output.cc17 inverse_current_dir_ = RebasePath("//", current_dir, source_root); in PathOutput()
Dmetadata.cc232 Value rebased_value(value.origin(), RebasePath(filename, rebase_dir, in RebaseStringValue()
Druntime_deps.cc48 RebasePath(str, source->settings()->build_settings()->build_dir(), in AddIfNew()
Dvisual_studio_writer.cc777 << ")\", \"" << RebasePath(folder->path, solution_dir) << "\", \"" in WriteSolutionFileContents()
784 << "\", \"" << RebasePath(project->path, solution_dir) << "\", \"" in WriteSolutionFileContents()
Dcommands.cc252 RebasePath(output_as_source.value(), build_settings->build_dir(), in PrintTargetsAsOutputs()
Dfilesystem_utils.cc707 std::string RebasePath(const std::string& input, in RebasePath() function
Dfunctions.cc1404 INSERT_FUNCTION(RebasePath, false) in FunctionInfoInitializer()