|
Boost-Build : |
Subject: Re: [Boost-build] Boost.Build newbie
From: frederic.bron_at_[hidden]
Date: 2008-12-03 09:56:12
> frederic.bron_at_[hidden] wrote:
>
> > I have read the documentation of boost.build on boost.org and I
> have a few questions:
>
> > 1.) I do not understand what's more in boost.build compared to
> bjam; I see no reference to
> > something else than bjam in boost.build doc.
>
> What "reference" do you mean? Pretty much everything documented in
> Boost.Build documentation
> is a Boost.Build feature.
By reference I mean is there anything else than bjam in boost.build? Reading the doc, it seems to me that bjam is the only thing I need for what's called "boost.build". But there is a specific
documentation for boost.build and boost.jam. I am confused with that.
> > 2.) Is it true that the dependencies must be
> > specified manually in a Jamfile; dependenceis are not
> automatically found with header files. I
> > understood this from this page of the doc :
> > http://www.boost.org/doc/tools/build/doc/html/bbv2/tutorial/libs.html
> However, the example is with
> > a library dependency and not with source file dependecies.
>
> Dependencies on header files are automatically detected. Sources, of
> course, need to be specified.
> What on that page made you think dependencies on headers are not detected?
OK for headers, that's great. However, If main.cc #includes a.hh, then if a.cc exists, I need to link main.o with a.o to make the program "main". It seems to me that I have to say to bjam that the
"main" executable target needs a.o. Is that true?
> > Today I use the makedepend utility and a bash script to build a
> valid Makefile. However, it is
> > hard to maintain and I would like to add msvc compiler on windows
> and it causes me much trouble.
> > Boost.build seems to do that but if I have to manually track the
> dependencies, I prefer to
> > continue with gcc only.
>
> You don't have to track header dependencies.
>
> HTH,
> Volodya
Avis :
Ce message et toute pièce jointe sont la propriété d'Alcan et sont destinés seulement aux personnes ou à l'entité à qui le message est adressé. Si vous avez reçu ce message par erreur, veuillez le
détruire et en aviser l'expéditeur par courriel. Si vous n'êtes pas le destinataire du message, vous n'êtes pas autorisé à utiliser, à copier ou à divulguer le contenu du message ou ses pièces jointes
en tout ou en partie.
Notice:
This message and any attachments are the property of Alcan and are intended solely for the named recipients or entity to whom this message is addressed. If you have received this message in error
please inform the sender via e-mail and destroy the message. If you are not the intended recipient you are not allowed to use, copy or disclose the contents or attachments in whole or in part.
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