Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-01-27 04:14:31


Hi Juergen,

> The attached file contains a patch for improved Qt4 support.

The patch is comitted, thank you!

> Features (maybe commit message )
>
> 1. Better qmake compatibility by adding the necessary defines for each
> Qt library. E.g. qmake defines QT_CORE_LIB when generating makefiles
> for a project using QtCore, QT_GUI_LIB for QtGui and so on.
> 2. Added support for QtTestLib, the Qt Test Framework ( Qt 4.1)
> 3. Added support for QtAssistantClient, Qt Integrated Help System
> 4. Better readability by adding explicit comments (# usage-requirements)
> and having one line per setting).
> 5. Add support for "moc-and-include header" by

Does it mean that you have a header that includes .moc file resulting from
procesing of that header? That's cool.

> 4. For me, lines like "alias a : : : : <define>a ;" are extremely hard
> to read. I just get confused by the lots of colons, must always count
> them and remember where i am. This smells of write-only code ;-)
> alias a
>
> : #sources
> : #requirements
> : #default-build
> : #usage-requierements
>
> <define>a
> ;
>
> is much more readable.
> Btw. Why can I write
>
> project
>
> : usage-requirements
>
> <define>a
> ;
> and get an error when trying something like
>
> alias a
>
> : usage-requirements
>
> <define>a
> ;
>
> as a more verbose alternative.

Because the target syntax was copied mostly-as-is from V1, while syntax for
project was explicitly designed. I agree such a change will be desirable, but
it will take some time because it will requires tweaking all rules.

>
> 5. Needed to compile Qt4 itself.
> Drop me a note for a tarball and qt4.jam patch to compile Qt-4.1.0 and
> 4.1.1-snapshots with V2 on Linux. Work in (slow) progress.
> These hacks using "cast" are ugly, but I don't have the time to work on
> a more qmake like approach.

I'd be willing to try building Qt with V2, for sure!

- Volodya


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