diff options
author | Britta Eckhardt <[email protected]> | 2013-06-13 20:53:44 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-06-13 20:53:44 +0200 |
commit | 3cf28f2980b1593e4b32230d5206decd6afe2cbb (patch) | |
tree | c1c2a4c8e8b644456f7b2bc91c7d02797db569fd /src/java/jogamp/common/os/MachineDescriptionRuntime.java | |
parent | 1fedf87d2808ea1afa51ec4d6432a8e5379ae07e (diff) |
Fix Bug 749: Add Support for Solaris SPARC 32bit
Diffstat (limited to 'src/java/jogamp/common/os/MachineDescriptionRuntime.java')
-rw-r--r-- | src/java/jogamp/common/os/MachineDescriptionRuntime.java | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/src/java/jogamp/common/os/MachineDescriptionRuntime.java b/src/java/jogamp/common/os/MachineDescriptionRuntime.java index 8b38b25..a58accd 100644 --- a/src/java/jogamp/common/os/MachineDescriptionRuntime.java +++ b/src/java/jogamp/common/os/MachineDescriptionRuntime.java @@ -74,19 +74,24 @@ public class MachineDescriptionRuntime { private static MachineDescription.StaticConfig getStaticImpl() { if(isCPUArch32Bit()) { - if(PlatformPropsImpl.CPU_ARCH.getFamily() == Platform.CPUFamily.ARM && PlatformPropsImpl.LITTLE_ENDIAN) { - return StaticConfig.ARMle_EABI; - } else if(PlatformPropsImpl.OS_TYPE == Platform.OSType.WINDOWS) { - return StaticConfig.X86_32_WINDOWS; - } else if(PlatformPropsImpl.OS_TYPE == Platform.OSType.MACOS) { - return StaticConfig.X86_32_MACOS; - } - return StaticConfig.X86_32_UNIX; + if(PlatformPropsImpl.CPU_ARCH.getFamily() == Platform.CPUFamily.ARM && PlatformPropsImpl.LITTLE_ENDIAN) { + return StaticConfig.ARMle_EABI; + } else if(PlatformPropsImpl.OS_TYPE == Platform.OSType.WINDOWS) { + return StaticConfig.X86_32_WINDOWS; + } else if(PlatformPropsImpl.OS_TYPE == Platform.OSType.MACOS) { + return StaticConfig.X86_32_MACOS; + } else if (PlatformPropsImpl.OS_TYPE == Platform.OSType.SUNOS) { + if (PlatformPropsImpl.CPU_ARCH == Platform.CPUType.SPARC_32) { + return StaticConfig.SPARC_32_SUNOS; + } + // TODO SPARCv9 description is missing + } + return StaticConfig.X86_32_UNIX; } else { - if(PlatformPropsImpl.OS_TYPE == Platform.OSType.WINDOWS) { - return StaticConfig.X86_64_WINDOWS; - } - return StaticConfig.X86_64_UNIX; + if(PlatformPropsImpl.OS_TYPE == Platform.OSType.WINDOWS) { + return StaticConfig.X86_64_WINDOWS; + } + return StaticConfig.X86_64_UNIX; } } |