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)
<sysinclude>/usr/src/qt/mkspecs/macx-g++
<sysinclude>/usr/src/qt/include
<define>MACOSX_102
<define>QT_NO_DEBUG
<define>QT_SHARED
<find-library>qt.3.1.2
<find-library>z
;

stage bin/browser.app/Contents/MacOS : <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.

Paul.

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!
> http://us.click.yahoo.com/p7cEmB/s7qGAA/yigFAA/z3wwlB/TM
> ---------------------------------------------------------------------
> ~->
>
> To unsubscribe from this group, send an email to:
> jamboost-unsubscribe_at_[hidden]
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
---------------------
Paul Hamilton
pHamtec P/L - Software Makers
http://www.phamtec.com/
mailto:paul_at_[hidden]

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 acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk