Add support for MacOsX

This commit is contained in:
SpaiR committed 2020-06-02 22:02:40 +03:00
1 parent f327038f3b
commit 99bb339eae
6 files changed
+28 -5

No files matched your search

+5 -1
View File
@@ -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";
}