Buildtool: Getting the url from any target

Manuel Breugelmans mbr.nxi at gmail.com
Sat Jun 21 08:36:36 UTC 2008


On Friday 20 June 2008 22:25:17 Aleix wrote:
> Hi list,
> in a previous message we spoke about making a difference for the test
> targets so that we had a way to get a test and its url.
>
> Going forward with the idea, I thought that maybe it would be nice to be
> able to get the url from any target. Afterall it would be the same work, so
> it would be nice.
>
> I have been speaking about this with apaku in the IRC and we didn't get to
> have a good API for it so we decided to discuss it here with calm and
> harmony. :) The main problem is that, as apaku said, in some platforms a
> target can have more than 1 url. I don't really see the problem, but I'll
> let him to make it clear :P.
>
> My initial idea was something like:
> KUrl IBuildSystemManager::targetUrl(ProjectTargetItem*) const
>
> Well, any complaints here.
>
> Thanks,
> Aleix


To me it seems only logical to get the url for a target. But what about eg a 
make all or worse a make doc? Unless I'm mistaken those are 
ProjectTargetItems too (well they have the same icons in the project view ;)) 
Maybe we need the concept of an 'ExecutableProjectTargetItem' or 
something ... 


Manuel




More information about the KDevelop-devel mailing list