On Thu, 28 Mar 2013,
the....@gmail.com wrote:
> about big blobs,�I don't feel like I have the skills to add those .m files
> to compile time, I'm a Java guy with poor C skills :-/
Yeah, it's a pain to do even when you know what you're doing :)
> However, I thought that maybe we could pack the compiled .dylib (maybe even
> .so and .dll lets not be racist) inside avian and load them dynamically ?
> like modify Classloader.java and/or the underlying lib-loading magic to keep
> a static list of libs to be loaded from inside ?
Yes, that's basically what I was suggesting. I recommend doing what SWT
does: embed the libraries in the jar (e.g. classpath.jar) and extract them
from that jar at runtime using Class.getResourceAsStream, then load them
using System.load:
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/bundles/org.eclipse.swt/Eclipse%20SWT%20PI/common_j2se/org/eclipse/swt/internal/Library.java