I am working on a library that utilizes a stand-alone javascript library specifically for html5 builds of the game. Right now, I am using the <dependency path=...>
tag inside my include.xml
to accomplish this:
<dependency path="lib/html5/api/javascriptfile.js" if="html5"/>
<dependency path="lib/html5/api/javascriptfile.wasm" if="html5"/>
At build time, lime puts files specified by this tag into the /lib
folder. Or at least that is what I want it to do. Lime seems to be ignoring files that are not javascript files. With the above command, the .wasm
file is being left behind. How can I have the build process automatically get that .wasm
file into the lib folder? For development, I am manually moving it there, but this needs to be done automatically for anyone who imports my library in the future.
EDIT:
I figured it out! The trick was to use the <assets>
tag with a rename
attribute:
<dependency path="lib/html5/api/javascriptfile.js" if="html5"/>
<assets path="lib/html5/api/javascriptfile.wasm" rename="lib/javascriptfile.wasm" if="html5"/>