public static String getPlatformLibraryName ( final String aLibraryName ) { String libName = null ; switch ( getArchitecture ( ) ) { case LINUX_32 : case LINUX_64 : case LINUX_ARM : libName = LIB_PREFIX + aLibraryName + ".so" ; break ; case WINDOWS_32 : case WINDOWS_64 : libName = aLibraryName + ".dll" ; break ; case OSX_32 : case OSX_64 : libName = LIB_PREFIX + aLibraryName + ".dylib" ; break ; default : LOGGER . warn ( "Unexpected architecture value: {}" , getArchitecture ( ) ) ; break ; } LOGGER . debug ( MessageCodes . UTIL_025 , libName ) ; return libName ; }
Gets the library name for the current platform .