LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Twk Amz on August 18, 2015, 03:39:19

Title: Can I build lwjgl3 without certain packages?
Post by: Twk Amz on August 18, 2015, 03:39:19
Hi, I was thinking that(as 3.0.0b came out) I don't need things like the ovr or the jemalloc package in my app. But I'm not sure if it is safe to just remove it from the jar.
Is there some way of just compiling lwjgl3 without the parts that I don't need?(that would be jemalloc, ovr, egl, simd, libc packages)
Thanks!
Title: Re: Can I build lwjgl3 without certain packages?
Post by: spasi on August 18, 2015, 07:58:33
Yes, you can remove bindings you don't need from the jar. You can also choose the bindings you want to build LWJGL with, here (https://github.com/LWJGL/lwjgl3/blob/master/config/build-bindings.xml). Set the property that corresponds to a binding to false and that binding will not be included in the build.

Quote from: Twk Amz on August 18, 2015, 03:39:19(that would be jemalloc, ovr, egl, simd, libc packages)

I would recommended against removing jemalloc, it's really powerful and useful. The egl package is not included by default.
Title: Re: Can I build lwjgl3 without certain packages?
Post by: Twk Amz on August 18, 2015, 12:19:31
Thanks a lot. I'll take a look at jemalloc then, although I don't understand what it is used for.