From f60aaf7531bdaa72b66623a1922ff2b356c6614e Mon Sep 17 00:00:00 2001 From: SpaiR Date: Wed, 3 Jun 2020 14:47:38 +0300 Subject: [PATCH] Add readme notice about MacOS --- README.md | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d996516..d1a75cd 100644 --- a/README.md +++ b/README.md @@ -46,10 +46,13 @@ ext { imguiVersion = '1.76-0.10' } -switch (org.gradle.internal.os.OperatingSystem.current()) { +switch (OperatingSystem.current()) { case OperatingSystem.LINUX: project.ext.natives = "natives-linux" break + case OperatingSystem.MAC_OS: + project.ext.natives = "natives-macos" + break case OperatingSystem.WINDOWS: project.ext.natives = System.getProperty("os.arch").contains("64") ? "natives-windows" : "natives-windows-x86" break @@ -102,6 +105,18 @@ dependencies { natives-linux + + lwjgl-natives-macos-amd64 + + + mac + amd64 + + + + natives-macos + + lwjgl-natives-windows-amd64 @@ -194,13 +209,19 @@ dependencies { With Raw Jars - Go to the [release page](https://github.com/SpaiR/imgui-java/releases/latest) - - Download `binding-${version}.jar`, `lwjgl3-${version}.jar` and `imgui-java-natives.jar` - - The last one contains native libs for all OSs. - - Add them to your classpath and use imgui-java. + - Download `binding-${version}.jar`, `lwjgl3-${version}.jar` and binary libraries for your OS + - imgui-java.dll - Windows 32bit + - imgui-java64.dll - Windows 64bit + - libimgui-java.so - Linux 32bit + - libimgui-java64.so - Linux 64bit + - libimgui-java64.dylib - MacOsX 64bit + - Add jars to your classpath. + - To use binary libraries you'll need to provide a VM option: `imgui.library.path` or `java.library.path`. + It should point to the folder where you've placed downloaded binaries. Important!
-If you're using native libs in a direct way (without adding to classpath), you'll need to provide a VM option: `imgui.library.path` or `java.library.path`. It should point to the folder where you've placed downloaded binaries. +If you're using native libs directly, you'll need to provide a VM option: `imgui.library.path` or `java.library.path`. It should point to the folder where you've placed downloaded binaries. **You are ready to use imgui-java binding!**