Boost logo

Boost-Build :

Subject: Re: [Boost-build] Manipulating requirements based on a program's return value
From: Edward Diener (eldiener_at_[hidden])
Date: 2016-05-24 19:10:22


On 5/24/2016 6:48 PM, Steven Watanabe wrote:
> AMDG
>
> On 05/24/2016 04:18 PM, Edward Diener wrote:
>> On 5/24/2016 5:14 PM, Steven Watanabe wrote:
>>>
>>> <snip>
>>> Try configure.check-target-builds. It's mostly
>>> used to check compiles, but it can also be used
>>> for an arbitrary target.
>>
>> Yes, that is what I have been looking at. It seems as if I must either
>> create some target or not create some target for check-target-builds to
>> work. So it seems as if my run_some_program must be in an action which
>> either creates some target or not. Is that the idea ?
>
> Yes.
>
>> If so, how do I
>> pass pass_some_parameter to my action ?
>
> Unless you can hard-code the parameter in the
> action, you'll want to use a feature for it.
>
> http://www.boost.org/build/doc/html/bbv2/extending/features.html

Thanks !

>
>> Or is it that I have to build
>> run_some_program each time with my pass_some_parameter being some
>> #define which tells my run_some_program what to do ?
>>
>
> In Christ,
> Steven Watanabe


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