|
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
Stefan,
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 https://vladimirprus.com
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