Boost logo

Boost-Build :

From: Paul Hamilton (paul_at_[hidden])
Date: 2003-09-17 22:52:25

I got "some" moc going with v1, but run into some obstacles.

first, I had a script which ran the moc compiler separately which had
in it:

moc browserview.hpp > browserview_moc.cpp
moc xmlview.hpp > xmlview_moc .cpp

Then, here was my Jamfile:

# declare the location of this subproject relative to the root
subproject tools/browser ;

exe browser : main.cpp browserview.cpp browserview_moc.cpp
xmlview.cpp xmlview_moc.cpp structureparser.cpp
: <sysinclude>$(PROJECT_ROOT)

stage bin/ : <exe>browser : ;

The whole "stage" thing was so that at the end of the build the program
would be moved into an OS X "bundle" for testing. You won't need that
for other platforms.

What I couldn't work out was the rule so that you can get:

moc xxx.hpp > xxx_moc.cpp

Done automatically in the jam file.

Hope this helps.


On Thursday, September 18, 2003, at 01:54 AM, Pedro Ferreira wrote:

> Hi all,
> can someone please tell me how to use the moc compiler.
> What should I add to the sources? Looking at qt.jam, line 51, I'd
> expect to
> add a .h file, but that won't work.
> I'm using BBv2 milestone 7.
> Many thanks in advance,
> Pedro
> ------------------------ Yahoo! Groups Sponsor
> ---------------------~-->
> Upgrade to 128-Bit SSL Security!
> ---------------------------------------------------------------------
> ~->
> To unsubscribe from this group, send an email to:
> jamboost-unsubscribe_at_[hidden]
> Your use of Yahoo! Groups is subject to
Paul Hamilton
pHamtec P/L - Software Makers

The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender and delete the
material from any computer.


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at