summaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/common/os
diff options
context:
space:
mode:
authorBritta Eckhardt <[email protected]>2013-06-13 20:53:44 +0200
committerSven Gothel <[email protected]>2013-06-13 20:53:44 +0200
commit3cf28f2980b1593e4b32230d5206decd6afe2cbb (patch)
treec1c2a4c8e8b644456f7b2bc91c7d02797db569fd /src/java/jogamp/common/os
parent1fedf87d2808ea1afa51ec4d6432a8e5379ae07e (diff)
Fix Bug 749: Add Support for Solaris SPARC 32bit
Diffstat (limited to 'src/java/jogamp/common/os')
-rw-r--r--src/java/jogamp/common/os/MachineDescriptionRuntime.java29
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;
}
}