Add readme notice about MacOS

This commit is contained in:
SpaiR committed 2020-06-03 14:47:38 +03:00
1 parent 99bb339eae
commit f60aaf7531
1 file changed
+26 -5
+26 -5
View File
@@ -46,10 +46,13 @@ ext {
imguiVersion = '1.76-0.10' imguiVersion = '1.76-0.10'
} }
switch (org.gradle.internal.os.OperatingSystem.current()) { switch (OperatingSystem.current()) {
case OperatingSystem.LINUX: case OperatingSystem.LINUX:
project.ext.natives = "natives-linux" project.ext.natives = "natives-linux"
break break
case OperatingSystem.MAC_OS:
project.ext.natives = "natives-macos"
break
case OperatingSystem.WINDOWS: case OperatingSystem.WINDOWS:
project.ext.natives = System.getProperty("os.arch").contains("64") ? "natives-windows" : "natives-windows-x86" project.ext.natives = System.getProperty("os.arch").contains("64") ? "natives-windows" : "natives-windows-x86"
break break
@@ -102,6 +105,18 @@ dependencies {
<natives>natives-linux</natives> <natives>natives-linux</natives>
</properties> </properties>
</profile> </profile>
<profile>
<id>lwjgl-natives-macos-amd64</id>
<activation>
<os>
<family>mac</family>
<arch>amd64</arch>
</os>
</activation>
<properties>
<lwjgl.natives>natives-macos</lwjgl.natives>
</properties>
</profile>
<profile> <profile>
<id>lwjgl-natives-windows-amd64</id> <id>lwjgl-natives-windows-amd64</id>
<activation> <activation>
@@ -194,13 +209,19 @@ dependencies {
<summary><b>With Raw Jars</b></summary> <summary><b>With Raw Jars</b></summary>
- Go to the [release page](https://github.com/SpaiR/imgui-java/releases/latest) - 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` - Download `binding-${version}.jar`, `lwjgl3-${version}.jar` and binary libraries for your OS
- The last one contains native libs for all OSs. - imgui-java.dll - Windows 32bit
- Add them to your classpath and use imgui-java. - 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.
</details> </details>
Important!<br> Important!<br>
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!** **You are ready to use imgui-java binding!**