Boost logo

Boost-Build :

From: Andre Hentz (ahentz_at_[hidden])
Date: 2005-07-22 14:49:20


Hi Volodya,

Vladimir Prus wrote:
> Hi,
> I've just tried the recently released Qt4, and have a couple of question about
> best modifications to qt.jam for Qt users out there.
>

This is what I did to get M10 to work for us:
- added <define>QT3_SUPPORT
- added <include>$(.prefix)/include/Qt
- defined lib targets for all sublibraries
- defined a alias called qt4
- changed my Jamfile(s) to say /qt//qt4 (the best way would be to
change 'using qt : path;' to 'using qt : path : version;'. I just didn't
bother)

I know this is not the perfect solution but I won't have time to do more
and this will be enough for a while.

Just in case it helps anyone else, I'm attaching a patch.

Best,

Andre Hentz

 --------------010709070201080808040406 Content-Type: text/x-patch;
name="qt.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="qt.diff"

--- qt.jam.M10 2005-07-22 12:32:04.866495859 -0700
+++ qt.jam 2005-07-22 12:33:42.243774546 -0700
@@ -100,12 +100,22 @@
# Finally, declare prebuilt target for QT library.
local usage-requirements =
<include>$(.prefix)/include
+ <include>$(.prefix)/include/Qt
+ <define>QT3_SUPPORT
<dll-path>$(.prefix)/lib
<library-path>$(.prefix)/lib
<allow>qt
;
lib qt : : <name>qt-mt <threading>multi : : $(usage-requirements) ;
lib qt : : <name>qt <threading>single : : $(usage-requirements) ;
+ lib qtCore : : <name>QtCore : : $(usage-requirements) ;
+ lib qtGui : qtCore : <name>QtGui : : $(usage-requirements) ;
+ lib qtXml : qtCore : <name>QtXml : : $(usage-requirements) ;
+ lib qtSql : qtCore : <name>QtSql : : $(usage-requirements) ;
+ lib qtNetwork : qtCore : <name>QtNetwork : : $(usage-requirements) ;
+ lib qt3Support : qtGui qtXml qtSql qtNetwork qtCore : <name>Qt3Support : : $(usage-requirements) ;
+ alias qt4 : qt3Support : <threading>multi : : $(usage-requirements) ;
+ alias qt4 : qt3Support : <threading>single : : $(usage-requirements) ;
}
}

 --------------010709070201080808040406--


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk