Thanks Volodya,

It is smallish. Do you know if somebody already did the C Array conversion with jam.

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@cs.msu.su> 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

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