including arbitrary files into the binary
Walter Bright
newshound1 at digitalmars.com
Sat Sep 8 09:09:38 PDT 2007
Jarrett Billingsley wrote:
> You could write a D program that does all this machination for you as a
> build step or so. It could copy all the files to a directory, come up with
> an AA, write out a .d file with the AA declaration and the imports, and then
> compile that into an object, which you then link into your program.
For the AA declaration you can use hex string literals for the binary data:
x"00 0A FD EE"
etc. They're easy for a simple D program to generate.
More information about the Digitalmars-d
mailing list