Removing Makefile-things from buildmanager API

Andreas Pakulat apaku at gmx.de
Fri Aug 3 09:25:57 UTC 2007


On 02.08.07 22:30:07, Matt Rogers wrote:
> On Thursday 02 August 2007 20:48, Andreas Pakulat wrote:
> > Hi,
> >
> > Are there any objections against removing the *Makefile* functions from
> > the BuildManager interface? I can't see how those fit into a general
> > buildmanager API as there are tons of buildmanagers out there that don't
> > use Makefile under the hood.
> >
> > Andreas
> 
> Could you do a bit of extra work and tell us what the names of those functions 
> are?

Sure:
    /** @return The Makefile associated with the specified @p folder.
     *   @note The Makefile list must contain absolute file names
     *
     * For instance, in <b>Automake</b> projects you can use something like:
     * @code
     * return dom->name() + "/Makefile.am";
     * @endcode
     */
    virtual KUrl findMakefile(ProjectFolderItem* folder) const = 0;

    /** @return The list of the Makefiles from the @p folder.
    @note The Makefile list must contains absolute file names */
    virtual KUrl::List findMakefiles(ProjectFolderItem* folder) const = 0;

Not sure wether the same applies to this
    /**
     * Provide a list of files that contain the preprocessor defines for the
     * project
     */
    virtual KUrl::List preprocessorDefines(ProjectBaseItem*) const = 0;

Its also a C/C++ specific feature, but then we have already the Features
enum which can tell wether this function returns useful results.

Andreas

-- 
You love your home and want it to be beautiful.




More information about the KDevelop-devel mailing list