/third_party/gn/src/gn/ |
D | value_extractors.cc | 86 : build_settings(build_settings_in), current_dir(current_dir_in) {} in RelativeFileConverter() 89 build_settings->root_path_utf8()); in operator ()() 92 const BuildSettings* build_settings; member 99 : build_settings(build_settings_in), current_dir(current_dir_in) {} in LibFileConverter() 112 v, err, build_settings->root_path_utf8())); in operator ()() 116 const BuildSettings* build_settings; member 123 : build_settings(build_settings_in), current_dir(current_dir_in) {} in RelativeDirConverter() 126 build_settings->root_path_utf8()); in operator ()() 129 const BuildSettings* build_settings; member 136 : build_settings(build_settings_in), current_dir(current_dir_in) {} in ExternConverter() [all …]
|
D | value_extractors.h | 29 bool ExtractListOfRelativeFiles(const BuildSettings* build_settings, 37 bool ExtractListOfLibs(const BuildSettings* build_settings, 44 bool ExtractListOfRelativeDirs(const BuildSettings* build_settings, 52 bool ExtractListOfLabels(const BuildSettings* build_settings, 59 bool ExtractListOfExternalDeps(const BuildSettings* build_settings, 70 bool ExtractListOfUniqueLabels(const BuildSettings* build_settings, 76 bool ExtractListOfUniqueLabels(const BuildSettings* build_settings, 82 bool ExtractListOfUniqueLabels(const BuildSettings* build_settings, 89 bool ExtractRelativeFile(const BuildSettings* build_settings, 95 bool ExtractListOfLabelPatterns(const BuildSettings* build_settings, [all …]
|
D | rust_project_writer.cc | 59 bool RustProjectWriter::RunAndWriteFiles(const BuildSettings* build_settings, in RunAndWriteFiles() argument 64 SourceFile output_file = build_settings->build_dir().ResolveRelativeFile( in RunAndWriteFiles() 69 base::FilePath output_path = build_settings->GetFullPath(output_file); in RunAndWriteFiles() 76 RenderJSON(build_settings, all_targets, out); in RunAndWriteFiles() 182 void AddSysrootCrate(const BuildSettings* build_settings, in AddSysrootCrate() argument 197 AddSysrootCrate(build_settings, dep, current_sysroot, in AddSysrootCrate() 206 build_settings->GetFullPath(build_settings->build_dir()); in AddSysrootCrate() 228 void AddSysroot(const BuildSettings* build_settings, in AddSysroot() argument 239 AddSysrootCrate(build_settings, crate, sysroot, sysroot_lookup[sysroot], in AddSysroot() 253 void AddTarget(const BuildSettings* build_settings, in AddTarget() argument [all …]
|
D | output_file.cc | 14 OutputFile::OutputFile(const BuildSettings* build_settings, in OutputFile() argument 17 build_settings->build_dir(), in OutputFile() 18 build_settings->root_path_utf8())) {} in OutputFile() 20 SourceFile OutputFile::AsSourceFile(const BuildSettings* build_settings) const { in AsSourceFile() 24 std::string path = build_settings->build_dir().value(); in AsSourceFile() 29 SourceDir OutputFile::AsSourceDir(const BuildSettings* build_settings) const { in AsSourceDir() 35 std::string path = build_settings->build_dir().value(); in AsSourceDir()
|
D | json_project_writer.cc | 56 bool FilterTargets(const BuildSettings* build_settings, in FilterTargets() argument 66 if (!commands::FilterPatternsFromString(build_settings, dir_filter_string, in FilterTargets() 90 bool InvokePython(const BuildSettings* build_settings, in InvokePython() argument 96 const base::FilePath& python_path = build_settings->python_path(); in InvokePython() 105 build_settings->GetFullPath(build_settings->build_dir()); in InvokePython() 136 const BuildSettings* build_settings, in RunAndWriteFiles() argument 144 SourceFile output_file = build_settings->build_dir().ResolveRelativeFile( in RunAndWriteFiles() 150 base::FilePath output_path = build_settings->GetFullPath(output_file); in RunAndWriteFiles() 154 if (!FilterTargets(build_settings, all_targets, &targets, dir_filter_string, in RunAndWriteFiles() 159 StringOutputBuffer json = GenerateJSON(build_settings, targets); in RunAndWriteFiles() [all …]
|
D | json_project_writer_unittest.cc | 39 setup.build_settings()->set_python_path( in TEST_F() 49 setup.build_settings()->SetRootPath(root_path); in TEST_F() 56 JSONProjectWriter::RenderJSON(setup.build_settings(), targets); in TEST_F() 62 "build_settings": { in TEST_F() 277 JSONProjectWriter::RenderJSON(setup.build_settings(), targets); 283 "build_settings": { 500 setup.build_settings()->set_python_path( 510 setup.build_settings()->SetRootPath(root_path); 515 JSONProjectWriter::RenderJSON(setup.build_settings(), targets); 521 "build_settings": {
|
D | command_gen.cc | 103 OutputFile output_file(targets[0]->settings()->build_settings(), file); in FindTargetThatGeneratesFile() 196 const BuildSettings* build_settings, in RunIdeWriter() argument 205 bool res = EclipseWriter::RunAndWriteFile(build_settings, builder, err); in RunIdeWriter() 246 build_settings, builder, version, sln_name, filters, win_kit, in RunIdeWriter() 281 XcodeWriter::RunAndWriteFiles(build_settings, builder, options, err); in RunIdeWriter() 292 bool res = QtCreatorWriter::RunAndWriteFile(build_settings, builder, err, in RunIdeWriter() 312 build_settings, builder, file_name, exec_script, exec_script_extra_args, in RunIdeWriter() 326 bool RunRustProjectWriter(const BuildSettings* build_settings, in RunRustProjectWriter() argument 335 bool res = RustProjectWriter::RunAndWriteFiles(build_settings, builder, in RunRustProjectWriter() 345 bool RunCompileCommandsWriter(const BuildSettings* build_settings, in RunCompileCommandsWriter() argument [all …]
|
D | input_file_manager.cc | 38 const BuildSettings* build_settings, in DoLoadFile() argument 55 base::FilePath primary_path = build_settings->GetFullPath(name); in DoLoadFile() 64 if (!build_settings->secondary_source_path().empty()) { in DoLoadFile() 67 build_settings->GetFullPathSecondary(name); in DoLoadFile() 114 const BuildSettings* build_settings, in AsyncLoadFile() argument 131 schedule_this = [this, origin, build_settings, file_name, in AsyncLoadFile() 133 BackgroundLoadFile(origin, build_settings, file_name, file); in AsyncLoadFile() 173 const BuildSettings* build_settings, in SyncLoadFile() argument 189 if (!LoadFile(origin, build_settings, file_name, &data->file, err)) in SyncLoadFile() 278 const BuildSettings* build_settings, in BackgroundLoadFile() argument [all …]
|
D | loader.cc | 55 ToolchainRecord(const BuildSettings* build_settings, in ToolchainRecord() 59 build_settings, in ToolchainRecord() 90 LoaderImpl::LoaderImpl(const BuildSettings* build_settings) in LoaderImpl() argument 91 : pending_loads_(0), build_settings_(build_settings) { in LoaderImpl() 211 origin, settings->build_settings(), file, in ScheduleLoadFile() 227 LocationRange(), settings->build_settings(), in ScheduleLoadBuildConfig() 228 settings->build_settings()->build_config_file(), in ScheduleLoadBuildConfig() 282 settings->build_settings()->ItemDefined(std::move(item)); in BackgroundLoadFile() 301 settings->build_settings()->build_config_file()); in BackgroundLoadBuildConfig() 303 settings->build_settings()->build_args().SetupRootScope(base_config, in BackgroundLoadBuildConfig() [all …]
|
D | settings.cc | 11 Settings::Settings(const BuildSettings* build_settings, in Settings() argument 13 : build_settings_(build_settings), base_config_(this) { in Settings() 15 toolchain_output_dir_ = build_settings->build_dir(); in Settings() 21 DCHECK(!build_settings->build_dir().is_null()); in Settings() 22 toolchain_output_dir_ = SourceDir(build_settings->build_dir().value() + in Settings()
|
D | ninja_build_writer.cc | 54 const BuildSettings* build_settings) { in GetSelfInvocationCommandLine() argument 56 build_settings->build_dir().Resolve(build_settings->root_path()); in GetSelfInvocationCommandLine() 70 base::FilePath root_path = build_settings->root_path(); in GetSelfInvocationCommandLine() 90 base::FilePath dotfile_path = build_settings->dotfile_name(); in GetSelfInvocationCommandLine() 131 std::string GetSelfInvocationCommand(const BuildSettings* build_settings) { in GetSelfInvocationCommand() argument 132 base::CommandLine cmdline = GetSelfInvocationCommandLine(build_settings); in GetSelfInvocationCommand() 195 const BuildSettings* build_settings, in NinjaBuildWriter() argument 203 : build_settings_(build_settings), in NinjaBuildWriter() 210 path_output_(build_settings->build_dir(), in NinjaBuildWriter() 211 build_settings->root_path_utf8(), in NinjaBuildWriter() [all …]
|
D | ninja_build_writer_unittest.cc | 54 setup.build_settings()->SetRootPath(root_realpath); in TEST_F() 55 cmd_out = GetSelfInvocationCommandLine(setup.build_settings()); in TEST_F() 61 setup.build_settings()->SetRootPath(root_realpath); in TEST_F() 62 setup.build_settings()->set_dotfile_name(gn_realpath); in TEST_F() 63 cmd_out = GetSelfInvocationCommandLine(setup.build_settings()); in TEST_F() 129 Settings other_settings(setup.build_settings(), "toolchain/"); in TEST_F() 141 NinjaBuildWriter writer(setup.build_settings(), used_toolchains, targets, in TEST_F() 194 setup.build_settings()->SetRootPath(root_realpath); in TEST_F() 206 NinjaBuildWriter writer(setup.build_settings(), used_toolchains, targets, in TEST_F() 239 NinjaBuildWriter writer(setup.build_settings(), used_toolchains, targets, in TEST_F()
|
D | compile_commands_writer.cc | 224 void OutputJSON(const BuildSettings* build_settings, in OutputJSON() argument 230 auto build_dir = build_settings->GetFullPath(build_settings->build_dir()) in OutputJSON() 245 target->settings()->build_settings()->build_dir(), in OutputJSON() 246 target->settings()->build_settings()->root_path_utf8(), in OutputJSON() 292 const BuildSettings* build_settings, in RenderJSON() argument 296 OutputJSON(build_settings, all_targets, out); in RenderJSON() 301 const BuildSettings* build_settings, in RunAndWriteFiles() argument 307 SourceFile output_file = build_settings->build_dir().ResolveRelativeFile( in RunAndWriteFiles() 312 base::FilePath output_path = build_settings->GetFullPath(output_file); in RunAndWriteFiles() 326 OutputJSON(build_settings, all_targets, output_to_json); in RunAndWriteFiles() [all …]
|
D | compile_commands_writer_unittest.cc | 27 const BuildSettings* build_settings() { return setup_.build_settings(); } in build_settings() function in __anonef8bb22b0111::CompileCommandsTest 58 std::string out = writer.RenderJSON(build_settings(), targets); in TEST_F() 107 std::string out = writer.RenderJSON(build_settings(), targets); in TEST_F() 168 std::string out = writer.RenderJSON(build_settings(), targets); in TEST_F() 245 std::string out = writer.RenderJSON(build_settings(), targets); in TEST_F() 258 Settings pch_settings(build_settings(), "withpch/"); in TEST_F() 304 std::string out = writer.RenderJSON(build_settings(), targets); in TEST_F() 358 std::string out = writer.RenderJSON(build_settings(), targets); in TEST_F() 406 Settings pch_settings(build_settings(), "withpch/"); in TEST_F() 453 std::string out = writer.RenderJSON(build_settings(), targets); in TEST_F() [all …]
|
D | commands.cc | 46 SourceDirForCurrentDirectory(setup->build_settings().root_path()), in ResolveTargetsFromCommandLinePattern() 47 setup->build_settings().root_path_utf8(), pattern_value, &err); in ResolveTargetsFromCommandLinePattern() 96 current_dir, setup->build_settings().root_path_utf8(), in ResolveStringFromCommandLineInput() 102 Value(nullptr, input), &err, setup->build_settings().root_path_utf8())); in ResolveStringFromCommandLineInput() 121 Value(nullptr, input), &err, setup->build_settings().root_path_utf8())); in ResolveStringFromCommandLineInput() 240 const BuildSettings* build_settings = in PrintTargetsAsOutputs() local 241 targets[0]->settings()->build_settings(); in PrintTargetsAsOutputs() 250 SourceFile output_as_source = output_file.AsSourceFile(build_settings); in PrintTargetsAsOutputs() 252 RebasePath(output_as_source.value(), build_settings->build_dir(), in PrintTargetsAsOutputs() 253 build_settings->root_path_utf8()); in PrintTargetsAsOutputs() [all …]
|
D | function_rebase_path.cc | 75 system_path = scope->settings()->build_settings()->GetFullPath( in ConvertOnePath() 78 scope->settings()->build_settings()->root_path_utf8())); in ConvertOnePath() 80 system_path = scope->settings()->build_settings()->GetFullPath( in ConvertOnePath() 83 scope->settings()->build_settings()->root_path_utf8())); in ConvertOnePath() 100 scope->settings()->build_settings()->root_path_utf8()) in ConvertOnePath() 102 to_dir, scope->settings()->build_settings()->root_path_utf8()); in ConvertOnePath() 106 value, err, scope->settings()->build_settings()->root_path_utf8()); in ConvertOnePath() 111 scope->settings()->build_settings()->root_path_utf8()); in ConvertOnePath()
|
D | function_rebase_path_unittest.cc | 62 setup.build_settings()->SetRootPath(base::FilePath(u"C:/path/to/src")); in TEST() 78 setup.build_settings()->SetRootPath(base::FilePath("/path/to/src")); in TEST() 100 setup.build_settings()->SetBuildDir(SourceDir("C:/ssd/out/Debug")); in TEST() 101 setup.build_settings()->SetRootPath(base::FilePath(u"C:/hdd/src")); in TEST() 123 setup.build_settings()->SetBuildDir(SourceDir("/ssd/out/Debug")); in TEST() 124 setup.build_settings()->SetRootPath(base::FilePath("/ssd/out/Debug")); in TEST() 127 setup.build_settings()->SetRootPath(base::FilePath("/hdd/src")); in TEST()
|
D | runtime_deps.cc | 48 RebasePath(str, source->settings()->build_settings()->build_dir(), in AddIfNew() 49 source->settings()->build_settings()->root_path_utf8())); in AddIfNew() 131 bool CollectRuntimeDepsFromFlag(const BuildSettings* build_settings, in CollectRuntimeDepsFromFlag() argument 161 Label::Resolve(root_dir, build_settings->root_path_utf8(), in CollectRuntimeDepsFromFlag() 202 output_file.AsSourceFile(target->settings()->build_settings()); in WriteRuntimeDepsFile() 204 target->settings()->build_settings()->GetFullPath(output_as_source); in WriteRuntimeDepsFile() 299 bool WriteRuntimeDepsFilesIfNecessary(const BuildSettings* build_settings, in WriteRuntimeDepsFilesIfNecessary() argument 303 if (!CollectRuntimeDepsFromFlag(build_settings, builder, &files_to_write, in WriteRuntimeDepsFilesIfNecessary()
|
D | eclipse_writer.cc | 38 EclipseWriter::EclipseWriter(const BuildSettings* build_settings, in EclipseWriter() argument 41 : build_settings_(build_settings), builder_(builder), out_(out) { in EclipseWriter() 53 bool EclipseWriter::RunAndWriteFile(const BuildSettings* build_settings, in RunAndWriteFile() argument 56 base::FilePath file = build_settings->GetFullPath(build_settings->build_dir()) in RunAndWriteFile() 67 EclipseWriter gen(build_settings, builder, file_out); in RunAndWriteFile()
|
D | rust_project_writer_unittest.cc | 30 setup.build_settings()->SetRootPath(UTF8ToFilePath("path")); in TEST_F() 47 RustProjectWriter::RenderJSON(setup.build_settings(), targets, stream); in TEST_F() 112 RustProjectWriter::RenderJSON(setup.build_settings(), targets, stream); in TEST_F() 210 RustProjectWriter::RenderJSON(setup.build_settings(), targets, stream); in TEST_F() 347 RustProjectWriter::RenderJSON(setup.build_settings(), targets, stream); in TEST_F() 432 setup.build_settings()->SetRootPath(UTF8ToFilePath("path")); in TEST_F() 450 RustProjectWriter::RenderJSON(setup.build_settings(), targets, stream); in TEST_F() 488 setup.build_settings()->SetRootPath(UTF8ToFilePath("path")); in TEST_F() 505 RustProjectWriter::RenderJSON(setup.build_settings(), targets, stream); in TEST_F() 542 setup.build_settings()->SetRootPath(UTF8ToFilePath("path")); in TEST_F() [all …]
|
D | xcode_writer.cc | 252 const BuildSettings* build_settings) { in AddXCTestFilesToTestModuleTarget() argument 255 source.value(), source_dir, build_settings->root_path_utf8()); in AddXCTestFilesToTestModuleTarget() 329 std::string ConfigNameFromBuildSettings(const BuildSettings* build_settings) { in ConfigNameFromBuildSettings() argument 330 std::string config_name = FilePathToUTF8(build_settings->build_dir() in ConfigNameFromBuildSettings() 344 std::string SourcePathFromBuildSettings(const BuildSettings* build_settings) { in SourcePathFromBuildSettings() argument 345 return RebasePath("//", build_settings->build_dir()); in SourcePathFromBuildSettings() 350 const BuildSettings* build_settings) { in ProjectAttributesFromBuildSettings() argument 351 const TargetOsType target_os = GetTargetOs(build_settings->build_args()); in ProjectAttributesFromBuildSettings() 409 XcodeWorkspace(const BuildSettings* build_settings, 430 XcodeWorkspace::XcodeWorkspace(const BuildSettings* build_settings, in XcodeWorkspace() argument [all …]
|
D | function_write_file.cc | 67 args[0], err, scope->settings()->build_settings()->root_path_utf8()); in RunWriteFile() 71 scope->settings()->build_settings()->build_dir(), source_file.value(), in RunWriteFile() 82 scope->settings()->build_settings()->GetFullPath(source_file)); in RunWriteFile() 100 scope->settings()->build_settings()->GetFullPath(source_file); in RunWriteFile()
|
D | binary_target_generator.cc | 145 return ExtractListOfLabelPatterns(scope_->settings()->build_settings(), in FillFriends() 182 const BuildSettings* build_settings = scope_->settings()->build_settings(); in FillOutputDir() local 184 *value, err_, build_settings->root_path_utf8()); in FillOutputDir() 188 if (!EnsureStringIsInOutputDir(build_settings->build_dir(), dir.value(), in FillOutputDir() 202 ExtractListOfUniqueLabels(scope_->settings()->build_settings(), *value, in FillAllowCircularIncludesFrom()
|
D | create_bundle_target_generator.cc | 159 const BuildSettings* build_settings = scope_->settings()->build_settings(); in FillPartialInfoPlist() local 161 *value, err_, build_settings->root_path_utf8()); in FillPartialInfoPlist() 166 if (!EnsureStringIsInOutputDir(build_settings->build_dir(), path.value(), in FillPartialInfoPlist() 197 *value, err_, scope_->settings()->build_settings()->root_path_utf8()); in FillCodeSigningScript() 219 if (!ExtractListOfRelativeFiles(scope_->settings()->build_settings(), *value, in FillCodeSigningSources() 300 current_dir, scope_->settings()->build_settings()->root_path_utf8(), in FillBundleDepsFilter()
|
D | input_file_manager.h | 58 const BuildSettings* build_settings, 67 const BuildSettings* build_settings, 142 const BuildSettings* build_settings, 148 const BuildSettings* build_settings,
|