[KDev4] buildtools/builder API suggestion.

dukju ahn dukjuahn at gmail.com
Sun Apr 29 18:05:38 UTC 2007


> > I reviewed IProject and there is no method to return the building
> > directory. Although project directory can be retreived by IProject,
> > it is not always the case to invoke "make" at top_src_dir.
>
> Uh, right. It should be part of the project manager (because he knows
> about this, not the project itself). I'm not sure though if we have a
> method for that already.

> > ProjectBaseItem can be into either ProjectItem or ProjectTargetItem.
> > But neither doesn't have any interfaces related with target.
>
> Why should it need one. I'd expect the text of a target item to be the
> right thing to use.

> > For example, I want to "make clean". How the "clean" target
> > can be fetched _inside_ MakeBuilder just using ProjectTargetItem or
> > ProjectItem? Do we use QStandardItem::data() or QStdItem::text()?
> > Or should we add one more method in TargetItem such as
> > QString targetName()??
>
> clean() is already a part of the IProjectBuilder interface.

I forgot about it:) My intention was such as "make doc",
"make translation" or "make client" etc...

> If the
> project manager provides the targets then the builder should use text()
> IMHO.

Plus two. The MakeBuilder should also know the build_dir and option
arguments list. Then these two can be added.

KUrl url() // for build dir, and
QStringList argumentList() // for option argument list.

1.
Actually every items _except_ ProjectTargetItem have url() method.
So url() may go down to ProjectBaseItem
2.
In case of argument list, it can be retreived by user setting. And
there is already setting dialog. No argumentList() method is needed.

Are these reasonable?




More information about the KDevelop-devel mailing list