|
|
|
@ -220,7 +220,7 @@ void Window::create_menu() { |
|
|
|
Singleton::terminal()->print("Compiling and running "+executable_path.string()+"\n"); |
|
|
|
Singleton::terminal()->print("Compiling and running "+executable_path.string()+"\n"); |
|
|
|
//TODO: Windows...
|
|
|
|
//TODO: Windows...
|
|
|
|
auto project_path=cmake.project_path; |
|
|
|
auto project_path=cmake.project_path; |
|
|
|
Singleton::terminal()->async_execute("make", cmake.project_path, [this, executable_path, project_path](int exit_code){ |
|
|
|
Singleton::terminal()->async_execute(Singleton::Config::terminal()->make_command, cmake.project_path, [this, executable_path, project_path](int exit_code){ |
|
|
|
compiling=false; |
|
|
|
compiling=false; |
|
|
|
if(exit_code==EXIT_SUCCESS) { |
|
|
|
if(exit_code==EXIT_SUCCESS) { |
|
|
|
compile_success(); |
|
|
|
compile_success(); |
|
|
|
@ -247,7 +247,7 @@ void Window::create_menu() { |
|
|
|
compiling=true; |
|
|
|
compiling=true; |
|
|
|
Singleton::terminal()->print("Compiling project "+cmake.project_path.string()+"\n"); |
|
|
|
Singleton::terminal()->print("Compiling project "+cmake.project_path.string()+"\n"); |
|
|
|
//TODO: Windows...
|
|
|
|
//TODO: Windows...
|
|
|
|
Singleton::terminal()->async_execute("make", cmake.project_path, [this](int exit_code){ |
|
|
|
Singleton::terminal()->async_execute(Singleton::Config::terminal()->make_command, cmake.project_path, [this](int exit_code){ |
|
|
|
compiling=false; |
|
|
|
compiling=false; |
|
|
|
if(exit_code==EXIT_SUCCESS) |
|
|
|
if(exit_code==EXIT_SUCCESS) |
|
|
|
compile_success(); |
|
|
|
compile_success(); |
|
|
|
|