enabled libbreakgen library on Mac

This commit is contained in:
nik
2011-03-31 16:41:58 +04:00
parent 8660555012
commit a521a78b93
2 changed files with 27 additions and 11 deletions
@@ -54,7 +54,16 @@ public class ProcessProxyFactoryImpl extends ProcessProxyFactory {
@Override
public boolean isBreakGenLibraryAvailable() {
@NonNls final String libName = SystemInfo.isWindows ? "breakgen.dll" : "libbreakgen.so";
@NonNls final String libName;
if (SystemInfo.isWindows) {
libName = "breakgen.dll";
}
else if (SystemInfo.isMac) {
libName = "libbreakgen.jnilib";
}
else {
libName = "libbreakgen.so";
}
return new File(PathManager.getBinPath() + File.separator + libName).exists();
}
}