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
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build