Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: puneet_m on October 11, 2007, 09:06:50 pm
Title: ExportMakeFile Option
Post by: puneet_m on October 11, 2007, 09:06:50 pm
Export Makefile Option has been disabled from the Build Menu. I want to enable that option. How should I go about doing this?
Title: Re: ExportMakeFile Option
Post by: XayC on October 11, 2007, 09:31:36 pm
There's a plug-in that can help you. Here: http://forums.codeblocks.org/index.php/topic,6241.msg47767.html (http://forums.codeblocks.org/index.php/topic,6241.msg47767.html)
Regards, XayC
Title: Re: ExportMakeFile Option
Post by: puneet_m on October 11, 2007, 10:06:37 pm
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); }
Title: Re: ExportMakeFile Option
Post by: XayC on October 11, 2007, 10:13:36 pm
Although I don't know much about that, I guess that if the feature has been removed there's a reason (which seems quite well described by a portion of code you quoted).
Quote
This functionality has been temporarily removed [...] is not anymore in-sync with the rest of the build process.
Title: Re: ExportMakeFile Option
Post by: puneet_m on October 11, 2007, 10:15:22 pm
Agreed, but I still want to enable it. What is the procedure to do so?
Thanks, Puneet
Title: Re: ExportMakeFile Option
Post by: XayC on October 11, 2007, 10:27:35 pm