[Kde-hardware-devel] Re: KDE/kdelibs/solid/solid

Lukáš Tinkl ltinkl at redhat.com
Tue Nov 16 17:20:52 CET 2010


Dne Út 16. listopadu 2010 16:31:28 jste napsal(a): > On Tuesday 16 November 
2010 09:58:16 Lukáš Tinkl wrote:
> > Dne Út 16. listopadu 2010 00:44:02 Raphael Kubo da Costa napsal(a):
> > > SVN commit 1197469 by rkcosta:
> > > 
> > > Only build the udisks backend on Linux.
> > > 
> > > Recent commits added a hard dependency on linux_dvd_rw_utils.{c,h}
> > > that cannot be #ifdef'ed with Q_OS_LINUX. Until that is fixed, we need
> > > to skip the udisks backend for kdelibs to build again on OpenSolaris,
> > > FreeBSD and other non-Linux Unixes.
> > > 
> > > CCMAIL: lukas at kde.org
> > > CCMAIL: kde-hardware-devel at kde.org
> > 
> > Why not add a simple "if not linux" cmake switch?
> 
> Sorry, I didn't understand what you meant. Do you mean something like
> 
>   if (not on linux)
>     do_something
>   endif (not on linux)
> 
> instead of
> 
>   if (on linux)
>     add udisks stuff
>   endif (on linux)
> 
> ?

Yes, of course, I meant "if on linux" :) That way the udisks backend gets only 
added for Linux and doesn't fail on other Unixes

-- 
Lukáš Tinkl <ltinkl at redhat.com>
Software Engineer - Base Operating Systems Brno
KDE developer <lukas at kde.org>
Red Hat Inc.                               http://cz.redhat.com


More information about the Kde-hardware-devel mailing list