Boost logo

Boost-Build :

Subject: Re: [Boost-build] prototyping alternative Boost.Build syntax
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-10-28 12:21:59


On 10/28/2016 09:31 AM, Stefan Seefeld wrote:
> On 28.10.2016 11:10, Vladimir Prus wrote:
>> Therefore b2:
>> - Starts Python code
>> - Provides a very small interface to declare low-level targets and
>> actions
>> - Does know know anything else about what Python code does.
> Cool ! So what I'm after is that "small interface to declare low-level
> targets and actions". Is that defined / documented somewhere ? What is
> the code I need to read to understand that ?

  A target is just represented as a string in Jam and
Python. The internal structures used by the back end
are created on demand.

  The code for handling actions in Python, is in two places.
In kernel/bootstrap.jam, there are a few Jam rules that are
designed to be called from python, in particular,
set-update-action(action, targets, sources, properties).
There's also a bjam.define_action(name, body, bindlist, flags)
implemented in builtins.c.

In Christ,
Steven Watanabe

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at