Boost logo

Boost-Build :

From: Juergen Hunold (hunold_at_[hidden])
Date: 2005-08-05 13:37:21


Hi !

Coming back from vacation I've tested the new Qt4 toolset and have some
patches to it.

First:
Add -name option to rcc invocation.
This is needed to disambiguate the name of the generated initialising
function. Since qmake takes the basename of the .qrc file I've copied
this behaviour to have consistent naming.

Second:
Add -I option to moc invocation.
I've added the include and include/QtCore directories in order to be
able to compile Qt4 with V2.
The correct way would be to take the <include> and <define> from the
current toolsets g++ invokation.
Any ideas on how to do this ?

I've got a rudimentary set of Jamfiles for compiling Qt4 with V2.
It stills needs lots of improvements and is working on Linux only.
If anybody is interested, please drop me a note.

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold ! Institut für Verkehrswesen, Eisenbahnbau
* voice: ++49 511 762-2529 ! und -betrieb, Universität Hannover 
* fax : ++49 511 762-3001 ! Appelstrasse 9a, D-30167 Hannover
* hunold_at_[hidden] ! www.ive.uni-hannover.de
 --Boundary-00=_iH78CHFH4pqcw7v Content-Type: text/x-diff;
charset="utf-8";
name="qt4.jam.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="qt4.jam.diff"
Index: tools/build/v2/tools/qt4.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/v2/tools/qt4.jam,v
retrieving revision 1.1
diff -u -r1.1 qt4.jam
--- tools/build/v2/tools/qt4.jam	1 Aug 2005 14:08:27 -0000	1.1
+++ tools/build/v2/tools/qt4.jam	4 Aug 2005 06:59:55 -0000
@@ -168,13 +168,13 @@
# Processes headers to create Qt MetaObject information
actions moc
{
-	$(.prefix)/bin/moc -f $(>) -o $(<)
+	$(.prefix)/bin/moc -I$(.prefix)/include -I$(.prefix)/include/QtCore -f $(>) -o $(<)
}
# Generates source files from resource files
actions rcc
{
- $(.prefix)/bin/rcc $(>) -o $(<)
+ $(.prefix)/bin/rcc $(>) -name $(>:B) -o $(<)
}
# Generates user-interface source from .ui files
 --Boundary-00=_iH78CHFH4pqcw7v-- 

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