Boost logo

Boost-Build :

Subject: Re: [Boost-build] prototyping alternative Boost.Build syntax
From: Stefan Seefeld (stefan_at_[hidden])
Date: 2016-10-29 18:16:38


On 28.10.2016 13:11, Vladimir Prus wrote:
>
> Modify
> https://github.com/boostorg/build/blob/develop/src/kernel/bootstrap.py
>
> so that the bootstrap function has:
>
> bjam_interface = __import__('bjam')
>
> bjam_interface.define_action("gcc.compile", "g++ -c -o $(<) $(>)")
> bjam_interface.set_update_action("gcc.compile", "a.o", "a.cpp")
>
> Then, you'd go from there.

Starting from the above I have managed to write a tiny Python-based
makefile that does the expected:

https://github.com/stefanseefeld/boost.build/commit/47d4e11f04bbaa4e658a490cc2ad0d1330d486dd

(Please hold off any discussion on the syntax I use. This is not yet a
proposal ! :-) )

Thanks,
        Stefan

-- 
      ...ich hab' noch einen Koffer in Berlin...

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