Add support for MacOsX
This commit is contained in:
1 parent
f327038f3b
commit
99bb339eae
6 files changed
+28
-5
No files matched your search
@@ -56,13 +56,17 @@ public final class ImGui {
|
||||
|
||||
private static String resolveFullLibName() {
|
||||
final boolean isWin = System.getProperty("os.name").toLowerCase().contains("win");
|
||||
final boolean isMac = System.getProperty("os.name").toLowerCase().contains("mac");
|
||||
final String libPrefix;
|
||||
final String libSuffix;
|
||||
|
||||
if (isWin) {
|
||||
libPrefix = "";
|
||||
libSuffix = ".dll";
|
||||
} else { // Only linux as an alternative OS
|
||||
} else if (isMac) {
|
||||
libPrefix = "lib";
|
||||
libSuffix = ".dylib";
|
||||
} else {
|
||||
libPrefix = "lib";
|
||||
libSuffix = ".so";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user