|
Boost-Build : |
Subject: Re: [Boost-build] Automatic version number or build-id
From: Niklas Angare (li51ckf02_at_[hidden])
Date: 2015-10-01 18:48:40
"Vladimir Prus" <vladimir.prus_at_[hidden]> wrote:
> On 26-Sep-15 1:22 AM, Niklas Angare wrote:
>> "Vladimir Prus" <vladimir.prus_at_[hidden]> wrote:
>>> On 19-Sep-15 4:15 PM, Niklas Angare wrote:
>>>> I'm trying to get Boost.Build to generate a source file at build time
>>>> containing an automatically generated version
>>>> number or build-id.
...
> The below example should work better, it's modified in two ways:
>
> - It forces rebuild of cpp file, not obj
> - For internal reasons, there are two targets for the cpp file, and I
> force rebuild of both.
>
> Could you give it a try?
It seems to work very well. Thanks so much!
> This can be simplified further, but only with core changes, so I wanted to
> get this version out to you first.
I look forward to it.
Even this version can be simplified slightly by removing the explicit "obj
build-id" and instead using build-id.cpp directly. The import notfile line
can also be removed of course.
Regards,
Niklas Angare
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