Skip to content

Commit f60aaf7

Browse files
committed
Add readme notice about MacOS
1 parent 99bb339 commit f60aaf7

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

README.md

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@ ext {
4646
imguiVersion = '1.76-0.10'
4747
}
4848
49-
switch (org.gradle.internal.os.OperatingSystem.current()) {
49+
switch (OperatingSystem.current()) {
5050
case OperatingSystem.LINUX:
5151
project.ext.natives = "natives-linux"
5252
break
53+
case OperatingSystem.MAC_OS:
54+
project.ext.natives = "natives-macos"
55+
break
5356
case OperatingSystem.WINDOWS:
5457
project.ext.natives = System.getProperty("os.arch").contains("64") ? "natives-windows" : "natives-windows-x86"
5558
break
@@ -102,6 +105,18 @@ dependencies {
102105
<natives>natives-linux</natives>
103106
</properties>
104107
</profile>
108+
<profile>
109+
<id>lwjgl-natives-macos-amd64</id>
110+
<activation>
111+
<os>
112+
<family>mac</family>
113+
<arch>amd64</arch>
114+
</os>
115+
</activation>
116+
<properties>
117+
<lwjgl.natives>natives-macos</lwjgl.natives>
118+
</properties>
119+
</profile>
105120
<profile>
106121
<id>lwjgl-natives-windows-amd64</id>
107122
<activation>
@@ -194,13 +209,19 @@ dependencies {
194209
<summary><b>With Raw Jars</b></summary>
195210

196211
- Go to the [release page](https://github.com/SpaiR/imgui-java/releases/latest)
197-
- Download `binding-${version}.jar`, `lwjgl3-${version}.jar` and `imgui-java-natives.jar`
198-
- The last one contains native libs for all OSs.
199-
- Add them to your classpath and use imgui-java.
212+
- Download `binding-${version}.jar`, `lwjgl3-${version}.jar` and binary libraries for your OS
213+
- imgui-java.dll - Windows 32bit
214+
- imgui-java64.dll - Windows 64bit
215+
- libimgui-java.so - Linux 32bit
216+
- libimgui-java64.so - Linux 64bit
217+
- libimgui-java64.dylib - MacOsX 64bit
218+
- Add jars to your classpath.
219+
- To use binary libraries you'll need to provide a VM option: `imgui.library.path` or `java.library.path`.
220+
It should point to the folder where you've placed downloaded binaries.
200221
</details>
201222

202223
Important!<br>
203-
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.
224+
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.
204225

205226
**You are ready to use imgui-java binding!**
206227

0 commit comments

Comments
 (0)