|
|
@ -144,8 +144,22 @@ public final class NativeLibraryLoader { |
|
|
|
registerNativeLibrary("lwjgl3", Platform.Linux64, "native/linux/liblwjgl.so"); |
|
|
|
registerNativeLibrary("lwjgl3", Platform.Linux64, "native/linux/liblwjgl.so"); |
|
|
|
registerNativeLibrary("lwjgl3", Platform.MacOSX32, "native/macosx/liblwjgl.dylib"); |
|
|
|
registerNativeLibrary("lwjgl3", Platform.MacOSX32, "native/macosx/liblwjgl.dylib"); |
|
|
|
registerNativeLibrary("lwjgl3", Platform.MacOSX64, "native/macosx/liblwjgl.dylib"); |
|
|
|
registerNativeLibrary("lwjgl3", Platform.MacOSX64, "native/macosx/liblwjgl.dylib"); |
|
|
|
//registerNativeLibrary("lwjgl3", Platform.Windows32, "native/windows/jemalloc32.dll"); // These are introduced in LWJGL 3.0.0b
|
|
|
|
|
|
|
|
//registerNativeLibrary("lwjgl3", Platform.Windows64, "native/windows/jemalloc.dll"); // These are introduced in LWJGL 3.0.0b
|
|
|
|
// GLFW for LWJGL 3.x
|
|
|
|
|
|
|
|
registerNativeLibrary("glfw-lwjgl3", Platform.Windows32, "native/windows/glfw32.dll"); |
|
|
|
|
|
|
|
registerNativeLibrary("glfw-lwjgl3", Platform.Windows64, "native/windows/glfw.dll"); |
|
|
|
|
|
|
|
registerNativeLibrary("glfw-lwjgl3", Platform.Linux32, "native/linux/libglfw32.so"); |
|
|
|
|
|
|
|
registerNativeLibrary("glfw-lwjgl3", Platform.Linux64, "native/linux/libglfw.dll"); |
|
|
|
|
|
|
|
registerNativeLibrary("glfw-lwjgl3", Platform.MacOSX32, "native/macosx/libglfw.dylib"); |
|
|
|
|
|
|
|
registerNativeLibrary("glfw-lwjgl3", Platform.MacOSX64, "native/macosx/libglfw.dylib"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// jemalloc for LWJGL 3.x
|
|
|
|
|
|
|
|
registerNativeLibrary("jemalloc-lwjgl3", Platform.Windows32, "native/windows/jemalloc32.dll"); |
|
|
|
|
|
|
|
registerNativeLibrary("jemalloc-lwjgl3", Platform.Windows64, "native/windows/jemalloc.dll"); |
|
|
|
|
|
|
|
registerNativeLibrary("jemalloc-lwjgl3", Platform.Linux32, "native/linux/libjemalloc32.so"); |
|
|
|
|
|
|
|
registerNativeLibrary("jemalloc-lwjgl3", Platform.Linux64, "native/linux/libjemalloc.so"); |
|
|
|
|
|
|
|
registerNativeLibrary("jemalloc-lwjgl3", Platform.MacOSX32, "native/macosx/libjemalloc.dylib"); |
|
|
|
|
|
|
|
registerNativeLibrary("jemalloc-lwjgl3", Platform.MacOSX64, "native/macosx/libjemalloc.dylib"); |
|
|
|
|
|
|
|
|
|
|
|
// OpenAL for LWJGL 3.x
|
|
|
|
// OpenAL for LWJGL 3.x
|
|
|
|
// For OSX: Need to add lib prefix when extracting
|
|
|
|
// For OSX: Need to add lib prefix when extracting
|
|
|
@ -540,14 +554,15 @@ public final class NativeLibraryLoader { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
String pathInJar = library.getPathInNativesJar(); |
|
|
|
final String pathInJar = library.getPathInNativesJar(); |
|
|
|
|
|
|
|
|
|
|
|
if (pathInJar == null) { |
|
|
|
if (pathInJar == null) { |
|
|
|
// This platform does not require the native library to be loaded.
|
|
|
|
// This platform does not require the native library to be loaded.
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
String fileNameInJar; |
|
|
|
final String fileNameInJar; |
|
|
|
|
|
|
|
|
|
|
|
if (pathInJar.contains("/")) { |
|
|
|
if (pathInJar.contains("/")) { |
|
|
|
fileNameInJar = pathInJar.substring(pathInJar.lastIndexOf("/") + 1); |
|
|
|
fileNameInJar = pathInJar.substring(pathInJar.lastIndexOf("/") + 1); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|