I want to enable the following function at the location plugins\compilergcc\compilergcc.cpp-->
I have made the change in compiler_menu.xrc, but it still diabled. So how should I enable it?
void CompilerGCC::OnExportMakefile(wxCommandEvent& event)
{
cbMessageBox(_("This functionality has been temporarily removed from Code::Blocks.\n"
"With all the updates from the last couple of months, the makefile exporter "
"is not anymore in-sync with the rest of the build process.\n"
"We are sorry for the inconvenience..."),
_T("Warning"),
wxICON_WARNING);
return;
if (!CompilerValid())
return;
wxString makefile = wxGetTextFromUser(_("Please enter the \"Makefile\" name:"), _("Export Makefile"), ProjectMakefile());
if (makefile.IsEmpty())
return;
wxSetWorkingDirectory(m_Project->GetBasePath());
if (UseMake())
{
DoCreateMakefile(false, makefile);
}
else
{
MakefileGenerator generator(this, m_Project, makefile, m_PageIndex);
generator.CreateMakefile();
}
wxString msg;
msg.Printf(_("\"%s\" has been exported in the same directory as the project file."), makefile.c_str());
cbMessageBox(msg);
}