|
Boost-Build : |
Subject: [Boost-build] Manipulating requirements based on a program's return value
From: Edward Diener (eldiener_at_[hidden])
Date: 2016-05-24 16:59:56
I am looking for a way in Boost Build that I can create a conditional
requirement based on whether a particular program I run returns a
particular value. In other words, instead of a conditional requirement like:
<toolset>gcc:<link>static
I could have a conditional requirement like:
run_some_program(pass_some_parameter)==1:<link>static
Of course I am making up syntax that has nothing to do with Boost build
but the gist of my desire is to be able to set a conditional requirement
based on a program's return value when passed some specific input
parameter(s).
It seems as if this sort of thing should be possible in Boost Build but
I have not figured out how to achieve it given my knowledge of Boost
Build. Are there any facilities for doing such a thing in Boost Build ?
If there are, any pointers would be helpful.
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