Boost logo

Boost-Build :

Subject: Re: [Boost-build] prototyping alternative Boost.Build syntax
From: Vladimir Prus (vladimir.prus_at_[hidden])
Date: 2016-10-28 12:48:34


On 28-Oct-16 7:44 PM, Stefan Seefeld wrote:
>> A target is just represented as a string in Jam and
>> Python. The internal structures used by the back end
>> are created on demand.
> That doesn't help me much. If I want to define a new target I surely
> need to invoke some `bjam` function (from the bjam module Vladimir just
> mentioned) to declare that.

Are you sure you want to define a new target? That would bypass all of
logic for creating a target that Boost.Build has?

I though that what you're after is to prototype how do use Python do
define a metatarget, affectively how to replace

    exe a : a.cpp ;

with equivalent Python code. In order to do that, you only need to know
Python interface for declaring metatargets, not b2 interface for
declaring targets. Am I missing something?

Vladimir Prus

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