Subject: Re: [Boost-build] inject binary resource in executable
From: George Georgiev (george.georgiev.sf_at_[hidden])
Date: 2014-04-09 09:55:21
It is smallish. Do you know if somebody already did the C Array conversion
Or if I write it in c/c++ to avoid deploying binary artifacts, is there an
example how I can build an executable and use it in generator with the same
On Wed, Apr 9, 2014 at 2:16 AM, Vladimir Prus <ghost_at_[hidden]> wrote:
> On 09.04.2014 01:46, George Georgiev wrote:
>> I am using boost build. I need to be able to inject a binary resource in
>> executable in a multi-platform fashion. How I obtain it is not
>> critical - whatever way works.
>> Is somebody knows about something out of the box that I can use - else I
>> know that I can make it myself.
> Depends on the size of resource. For something smallish, converting it
> into source file with a C array will work just
> fine. For huge resources, some specific tricks shall be used, like
> "incbin" directive in GNU assembler - which is
> what we used at work, see here:
> This code is part of larger self-extractor creator though, so mostly
> useful only as reference.
> Unsubscribe & other changes: http://lists.boost.org/
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