Boost logo

Boost-Build :

From: Jürgen Hunold (hunold_at_[hidden])
Date: 2004-10-26 07:59:30


Hi Volodya !

On Tuesday 26 October 2004 14:39, Vladimir Prus wrote:
> > I need the first to reach sources from the Qt-Tree and the second
> > to "install" custom widgets for qt designer.
>
> This makes sense for me. Just make sure the motivation is specified
> as a comment.

I've tried ;-)

> > I'm not sure if the rule should be better named "directory" or
> > "qt-dir".
>
> Since "qt" is the module "qt-dir" is reduntant. "directory" is fine
> for me.

Right.

> > Opinions ?
> >
> > And, could we get this in 1.32 ?
>
> Sure, if you send a patch I'll apply this and include in M10, and
> after M10 is released I'll merge it to RC branch.

So, please find the proposed patch attached.

Comments ?

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=_yokfBWxcQlHplp5 Content-Type: text/x-diff;
charset="utf-8";
name="qt.jam.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="qt.jam.diff"
Index: tools/qt.jam
=================================RCS file: /cvsroot/boost/boost/tools/build/v2/tools/qt.jam,v
retrieving revision 1.8
diff -u -5 -p -r1.8 qt.jam
--- tools/qt.jam	31 Mar 2004 08:02:59 -0000	1.8
+++ tools/qt.jam	26 Oct 2004 12:56:13 -0000
@@ -107,10 +107,19 @@ rule init ( prefix ? )
lib qt : : <name>qt-mt <threading>multi : : $(usage-requirements) ;
lib qt : : <name>qt <threading>single : : $(usage-requirements) ; 
}
}
+# Query the installation directory
+# This is needed in at least two scenarios
+# First, when re-using sources from the Qt-Tree.
+# Second, to "install" custom Qt plugins to the Qt-Tree.
+rule directory 
+{ 
+ return $(.prefix) ; 
+} 
+
# -f forces moc to include the processed source file.
# Without it, it would think that .qpp is not a header and would not
# include it from the generated file.
actions moc 
{
 --Boundary-00=_yokfBWxcQlHplp5-- 

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