|
|
|
@ -132,12 +132,10 @@ std::pair<std::string, std::string> Project::Clang::get_run_arguments() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Project::Clang::compile() { |
|
|
|
void Project::Clang::compile() { |
|
|
|
if(build->get_default_build_path().empty() || !build->update_default_build()) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
auto default_build_path=build->get_default_build_path(); |
|
|
|
auto default_build_path=build->get_default_build_path(); |
|
|
|
if(default_build_path.empty()) |
|
|
|
if(default_build_path.empty() || !build->update_default_build()) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
compiling=true; |
|
|
|
compiling=true; |
|
|
|
Terminal::get().print("Compiling project "+build->project_path.string()+"\n"); |
|
|
|
Terminal::get().print("Compiling project "+build->project_path.string()+"\n"); |
|
|
|
Terminal::get().async_process(Config::get().project.make_command, default_build_path, [this](int exit_status) { |
|
|
|
Terminal::get().async_process(Config::get().project.make_command, default_build_path, [this](int exit_status) { |
|
|
|
@ -146,15 +144,12 @@ void Project::Clang::compile() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Project::Clang::compile_and_run() { |
|
|
|
void Project::Clang::compile_and_run() { |
|
|
|
if(build->get_default_build_path().empty() || !build->update_default_build()) |
|
|
|
auto default_build_path=build->get_default_build_path(); |
|
|
|
|
|
|
|
if(default_build_path.empty() || !build->update_default_build()) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
auto project_path=build->project_path; |
|
|
|
auto project_path=build->project_path; |
|
|
|
|
|
|
|
|
|
|
|
auto default_build_path=build->get_default_build_path(); |
|
|
|
|
|
|
|
if(default_build_path.empty()) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
auto run_arguments_it=run_arguments.find(project_path.string()); |
|
|
|
auto run_arguments_it=run_arguments.find(project_path.string()); |
|
|
|
std::string arguments; |
|
|
|
std::string arguments; |
|
|
|
if(run_arguments_it!=run_arguments.end()) |
|
|
|
if(run_arguments_it!=run_arguments.end()) |
|
|
|
@ -217,15 +212,10 @@ std::pair<std::string, std::string> Project::Clang::debug_get_run_arguments() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Project::Clang::debug_start() { |
|
|
|
void Project::Clang::debug_start() { |
|
|
|
if(build->get_default_build_path().empty() || !build->update_default_build()) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
auto project_path=build->project_path; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
auto debug_build_path=build->get_debug_build_path(); |
|
|
|
auto debug_build_path=build->get_debug_build_path(); |
|
|
|
if(debug_build_path.empty()) |
|
|
|
if(debug_build_path.empty() || !build->update_debug_build()) |
|
|
|
return; |
|
|
|
|
|
|
|
if(!build->update_debug_build()) |
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
auto project_path=build->project_path; |
|
|
|
|
|
|
|
|
|
|
|
auto run_arguments_it=debug_run_arguments.find(project_path.string()); |
|
|
|
auto run_arguments_it=debug_run_arguments.find(project_path.string()); |
|
|
|
std::string run_arguments; |
|
|
|
std::string run_arguments; |
|
|
|
|