[KDE/Mac] building kio on Mac

Alex Merry alex.merry at kde.org
Mon Jun 8 18:05:20 UTC 2015


On Sunday 07 June 2015 23:40:30 René J.V. Bertin wrote:
> On Sunday June 07 2015 22:20:49 Alex Merry wrote:
> > I'm not sure that's possible, at least not in a way that doesn't risk
> > breaking more than it fixes.
> 
> Well, as I hinted at earlier, one possibility would be to link in an
> additional module that just instantiates a dedicated class in a global
> variable that calls a QSP class function. As long as that module doesn't do
> anything else that could interfere with other stuff there should be little
> risk.
> 
> As long as this only has to be done on OS X we might be able to exploit the
> fact that there is basically only a single compiler that will be used.

The problem is that Jeremy's comment wasn't quite correct - KDEInstallDirs 
isn't a macro, and doesn't know anything about the targets that your project 
is building. It's just a module that provides a bunch of variables telling you 
where to install various types of files.

That said, if we implement a profile system, it would be easy enough to export 
a variable that tells you whether to link your Qt5-based programs against some 
extra library.

Alex


More information about the Kde-buildsystem mailing list