kio/tests/SConscript

Holger Schröder holger-kde at holgis.net
Sat Dec 24 16:17:47 CET 2005


Hi,

On Thursday 22 December 2005 18:42, Nimrod Gutman wrote:
> I'm using the debug qt4.1 and I had a problem compiling kio/tests with the
> included mini-scons because it tried to link to QtTest and not QtTest_debug
> I'm not sure if it's the right way to do it but I can't think on why QtTest
> was included like this.
> I included a patch.
>
> P.S.
> (Bare with me, I'm just starting to grasp the coding format of everything
> so I might do mistakes.)

the right patch would be this one:

holger at gentoo ~/svn/trunk/KDE/kdelibs/kio/tests $ svn diff
Index: SConscript
===================================================================
--- SConscript  (revision 490897)
+++ SConscript  (working copy)
@@ -24,9 +24,9 @@
        obj.vnum     = '6.0.2'
        obj.target   = appname
        obj.source   = appname + '.cpp'
-       obj.uselib   = 'QT QTCORE QTGUI QTXML QT3SUPPORT KDE4'
+       obj.uselib   = 'QT QTCORE QTGUI QTXML QT3SUPPORT KDE4 QTEST'
        obj.libpaths = 
'.. ../../kdeui ../../kdecore ../../kdesu ../../dcop ../../qttestlib 
#/kio ../../kdefx ../../kwallet/client'
-       obj.libs     = 'kio kdeui kdecore DCOP QtTest kdefx kwalletclient'
+       obj.libs     = 'kio kdeui kdecore DCOP kdefx kwalletclient'
        obj.includes = 
'. .. ../kssl ../bookmarks ../kfile ../kio ../misc ../../kdecore ../../kdefx ../../qttestlib 
'
        if env['WINDOWS']:
                obj.libs     += ' kdewin32 ws2_32'


background:

the uselib parameter is a list of libs, against which this program will link. 
the uselib is platform-independent and also handles things like appending the 
_debug suffix when linking against the debug version of qt. for details you 
can look at kdelibs/bksys/generic.py line 356.

-- 
regards,

Holger Schröder



More information about the Kde-buildsystem mailing list