Boost logo

Boost-Build :

Subject: Re: [Boost-build] inject binary resource in executable
From: Phillip Seaver (phil_at_[hidden])
Date: 2014-04-09 12:58:21


The original program is from someone else, but I wrote the boost-build
part and use it in some of our projects. I put the files in
boost-build/contrib

In the project build.jam, I put "using bin2c ;", add a bin2c call, and
add an "<implicit-dependency>" to the target that uses the header. For
example,

using bin2c ;
bin2c main_png.h : main.png ;
exe prog : main.cpp : <implicit-dependency>main_png.h ;

Hope that helps.

Phillip

On 4/9/14 10:31 AM, George Georgiev wrote:
> I was hoping to avoid introducing any additional dependencies, but
> thanks I will figure it out.
>
>
> On Wed, Apr 9, 2014 at 7:20 AM, Vladimir Prus <ghost_at_[hidden]
> <mailto:ghost_at_[hidden]>> wrote:
>
> On 09.04.2014 17:55, George Georgiev wrote:
>
> Thanks Volodya,
>
> It is smallish. Do you know if somebody already did the C
> Array conversion with jam.
>
>
> We do have a Boost.Build example that uses Python script:
>
>
> https://github.com/boostorg/build/blob/develop/example/customization/inline_file.py
>
> if that's OK with you.
>
> - Volodya
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
>
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build



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