[KDev4] buildtools/builder API suggestion.

Andreas Pakulat apaku at gmx.de
Sun Apr 29 14:43:06 UTC 2007


On 29.04.07 18:09:06, Vladimir Prus wrote:
> On Sunday 29 April 2007 17:44, Andreas Pakulat wrote:
> > On 29.04.07 08:30:54, dukju ahn wrote:
> > > I'm working on CustomMakeManager. The problem is that
> > > IProjectBuilder::build() api is not reusable for CustomMakeManager
> > > 
> > > in IProjectBuilder, the only interfaces are
> > > 
> > >     virtual bool build(ProjectBaseItem *dom) = 0;
> > >     virtual bool clean(ProjectBaseItem *dom) = 0;
> > > 
> > > The problem is that we cannot specify build target or
> > > build directory using ProjectBaseItem.
> > 
> > So? From the project base item you can fetch the project and find the
> > builddir. If a project manager wants to allow building of a specific
> > target it should do so by additions to the context menu.
> 
> FWIW, I'd prefer that in KDevelop4 debugger be able to specifically
> ask the project manager to update the target that is being debugger.

You can do that already, the debugger knows the project item that is the
target. We already have ProjectTargetItem. You can fetch the project
from the item and get its project manager. From the manager you can
fetch the builder and let it build the target item.

Whats missing is just some more intelligence in the makebuilder and the
qmake builder too (in case of qmake projects)

Andreas

-- 
Try to relax and enjoy the crisis.
		-- Ashleigh Brilliant




More information about the KDevelop-devel mailing list