Boost logo

Boost-Build :

From: Jürgen Hunold (hunold_at_[hidden])
Date: 2005-10-27 03:35:40


Hi Volodya !

On Dunnersdag 27 Oktober 2005, 10:16, Vladimir Prus wrote:
> Well, *.moc.cxx are actually included? Then I'd suggest to rename the type
> to MOCCED_H *and* declare it as:
>
> type MOCCED_H : moc.cxx : H ;

Thanks.

> that is derive the type from the "H" type. This should cause V2 to
> magically add include paths to that file.

> If you get this to work, ping me
> and I'll tell (or even write), a code that does not require this "fakeCpp"
> action. The Qt4 support in CVS HEAD can automatically convert .ui files
> into just .h (without any compilable .cpp files).

That's not the question.
That's the second time someone tries to just "moc and include" a header file.
I think it's time to add this feature to qt(4).jam.
I've experimented with copying and modifying the "moc and include cpp"
extension but missed types/qt.jam :-((( so I got stuck.
The rationale for this is that Qt(4) itself uses "moc and include" extensively
so we must support this if we want to compile Qt4 with BBv2 someday ;-))

Btw: right now, the [ cast _ MOCCABLE_CPP ] hack works, but in the long run
I'd prefer a cleaner solution which copies qmake's behaviour of automagically
determining which files to moc and which generated files to compile or not to
compile.
For a rationale take a look at my attemps at compiling Qt4 with bjam I posted
some weeks ago :-)) The Jamfiles simply start to look ugly ;-)

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
 

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