if ((!Boolean.parseBoolean(jnaNosys)) || Platform.isAndroid()) { try { LOG.log(DEBUG_JNA_LOAD_LEVEL, "Trying (via loadLibrary) {0}", libName);
if (Platform.isAndroid()) { try { LOG.log(DEBUG_LOAD_LEVEL, "Preload (via System.loadLibrary) " + libraryName);
|| (Platform.isLinux() && (Platform.isARM() || Platform.isPPC() || Platform.isMIPS())) || Platform.isAIX() || Platform.isAndroid() ? 8 : LONG_SIZE; MAX_PADDING = (Platform.isMac() && Platform.isPPC()) ? 8 : MAX_ALIGNMENT;
@NotNull static String getPlatformFolderName() { String result; if (Platform.isMac()) { result = "macosx"; } else if (Platform.isWindows()) { result = "win"; } else if (Platform.isLinux() || Platform.isAndroid()) { result = "linux"; } else if (Platform.isFreeBSD()) { result = "freebsd"; } else if (Platform.isOpenBSD()) { result = "openbsd"; } else { throw new IllegalStateException("Platform " + Platform.getOSType() + " is not supported"); } return result; }
private static String getNativeLibraryName() { String result; if (Platform.isMac()) { result = "libpty.dylib"; } else if (Platform.isWindows()) { result = "winpty.dll"; } else if (Platform.isLinux() || Platform.isFreeBSD() || Platform.isOpenBSD() || Platform.isAndroid()) { result = "libpty.so"; } else { throw new IllegalStateException("Platform " + Platform.getOSType() + " is not supported"); } return result; }
@Override public OSFacade call() { if (Platform.isMac()) { return new com.pty4j.unix.macosx.OSFacadeImpl(); } if (Platform.isFreeBSD()) { return new com.pty4j.unix.freebsd.OSFacadeImpl(); } if (Platform.isOpenBSD()) { return new com.pty4j.unix.openbsd.OSFacadeImpl(); } if (Platform.isLinux() || Platform.isAndroid()) { return new com.pty4j.unix.linux.OSFacadeImpl(); } if (Platform.isWindows()) { throw new IllegalArgumentException("WinPtyProcess should be used on Windows"); } throw new RuntimeException("Pty4J has no support for OS " + System.getProperty("os.name")); } });
if (Platform.isAndroid()) { try { if (Native.DEBUG_LOAD) {
|| (Platform.isLinux() && (Platform.isARM() || Platform.isPPC() || Platform.isMIPS())) || Platform.isAIX() || Platform.isAndroid() ? 8 : LONG_SIZE; MAX_PADDING = (Platform.isMac() && Platform.isPPC()) ? 8 : MAX_ALIGNMENT;