+ if(!file.IsEmpty())
+ {
+ this->project->SetBuildPath(crea::wx2std(file), result);
+
+ wxTextEntryDialog* buildDlg = new wxTextEntryDialog(
+ this,
+ wxT("Check the compilation instruction:"),
+ wxT("Project Compilation - CreaDevManager"),
+ crea::std2wx(this->project->GetBuildInstruction()),
+ wxTE_MULTILINE | wxOK | wxCANCEL
+ );
+
+ if (buildDlg->ShowModal() == wxID_OK)
+ {
+ std::string buildDlgStr = crea::wx2std(buildDlg->GetValue());
+ //check line
+ if (buildDlgStr != "")
+ {
+ std::string* result;
+ if(!this->project->Build(result, buildDlgStr))
+ {
+ wxMessageBox(crea::std2wx(result->c_str()), wxT("Project Compilation - Error!"));
+ return;
+ }
+ }
+ }
+ }
+ }
+#endif
+}