|
Boost-Build : |
Subject: Re: [Boost-build] inject binary resource in executable
From: Vladimir Prus (ghost_at_[hidden])
Date: 2014-04-09 10:19:07
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 an example that uses Python script:
>
> 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 build script?
>
> Thanks,
> George
>
>
> On Wed, Apr 9, 2014 at 2:16 AM, Vladimir Prus <ghost_at_[hidden] <mailto:ghost_at_[hidden]>> wrote:
>
> On 09.04.2014 01:46, George Georgiev wrote:
>
> Hi,
>
> 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:
>
> https://github.com/__MentorEmbedded/p2-installer/__blob/master/sfx/scripts/build/__internal/core_build_windows___p2_sfx.sh#L99
> <https://github.com/MentorEmbedded/p2-installer/blob/master/sfx/scripts/build/internal/core_build_windows_p2_sfx.sh#L99>
>
> This code is part of larger self-extractor creator though, so mostly useful only as reference.
>
> HTH,
> Volodya
>
> _________________________________________________
> Unsubscribe & other changes: http://lists.boost.org/__mailman/listinfo.cgi/boost-__build
> <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