|
Boost-Build : |
Subject: Re: [Boost-build] A few questions
From: Vladimir Prus (vladimir.prus_at_[hidden])
Date: 2015-03-12 15:12:37
On 03/12/2015 12:03 PM, Steven Watanabe wrote:
> AMDG
>
> On 03/12/2015 12:43 PM, Ryan Gonzalez wrote:
>> I have a few questions about using Boost.Build. I know they sound kind of
>> weird, but I can guarantee that I'm not trying to blow anything up. :)
>>
>> 1) Is it possible to run the command to compile a program on-the-spot, i.e.
>> skip the meta-target phase for this particular target? This is the question
>> I said would sound weird. See, I'm trying to run a "compile test"; if a
>> source file compiles (and, in some cases, runs), then one thing is
>> executed, otherwise another is executed.
>>
>
> Use the check-target-builds rule. See:
> http://www.boost.org/build/doc/html/bbv2/reference/rules.html
There's also lower-level, possibly more flexiible, configure.builds, see example at:
https://github.com/boostorg/build/blob/server/example/libraries/app/jamfile.jam
https://github.com/boostorg/build/blob/server/example/libraries/jamroot.jam
HTH,
-- Vladimir Prus http://vladimirprus.com
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