|
|
|
|
@ -19,8 +19,6 @@ std::unique_ptr<Project::Build> Project::Build::create(const boost::filesystem::
|
|
|
|
|
std::unique_ptr<Project::Build> build(new CMakeBuild(path)); |
|
|
|
|
if(!build->project_path.empty()) |
|
|
|
|
return build; |
|
|
|
|
else |
|
|
|
|
return std::make_unique<Project::Build>(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(boost::filesystem::exists(search_path / "meson.build"), ec) { |
|
|
|
|
@ -35,6 +33,12 @@ std::unique_ptr<Project::Build> Project::Build::create(const boost::filesystem::
|
|
|
|
|
return build; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(boost::filesystem::exists(search_path / "compile_commands.json", ec)) { |
|
|
|
|
std::unique_ptr<Project::Build> build(new CompileCommandsInProjectRootBuild()); |
|
|
|
|
build->project_path = search_path; |
|
|
|
|
return build; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(boost::filesystem::exists(search_path / "Cargo.toml", ec)) { |
|
|
|
|
std::unique_ptr<Project::Build> build(new CargoBuild()); |
|
|
|
|
build->project_path = search_path; |
|
|
|
|
|