Fwd: KDE/kdebase/libkonq

Alexander Neundorf neundorf at kde.org
Thu Mar 2 20:03:24 CET 2006


On Thursday 02 March 2006 19:51, Thiago Macieira wrote:
> Alexander Neundorf wrote:
> >So does this mean if I link to kparts and use QString in my app, I have
> > to add QtCore explicitely. But as long as I don't call any functions
> > from zlib directly, I don't have to add it, right ?
> >Seems bearable to me.
> >
> >This would mean la files are not required.
>
> In the pedantic world, since you're using stuff from QtCore, you'll
> remember to add it to your app's list of dependencies.
>
> But I don't think we should do that.

Yes, but adding these libs would be no problem in 
kdelibs/cmake/modules/FindKDE4Internal.cmake .

> Here's how I summarise it:
> - CMake has its own dependency tracking mechanism, just like it has been
> posted
> - When you link to a library in the same project, CMake figures out the
> dependencies on its own, just like it has been posted
>
> so far, no changes
>
> - When you install a library and the target platform can't remember the
> dependencies (Win32, MacOS X, other non-ELF systems), you install an .la
> file along with the library's binary
> - When you link to a library that came from another project, you check if
> the .la file is there. If it is, you read the dependent library list from
> it.

I'll have a look at the export_library_dependencies() command.

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list