diff options
author | Sven Gothel <[email protected]> | 2011-07-24 11:37:45 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-07-24 11:37:45 +0200 |
commit | 869c49c22573147c94b1e6d931c2cff696a54a47 (patch) | |
tree | 882779724e74c324de714bbc6f8c2f88e5492862 /src/native | |
parent | 9f45b6f09cbce6c7889e099939656356befa585d (diff) |
Android integration / cross-test ; Enhance Platform
- android minor build fix
- started dex'ing (gluegen-rt.apk, more to come for full junit tests)
- android remote dalvikvm launch works (crosstest-java-android-armv7-rel.sh)
- android detection, incl version (reflection)
- Platform:
- Add JAVA_VM_NAME and JAVA_VM_RUNIME
- OSType maybe ANDROID, where the OS name (String) is Linux ! (ok ?)
Diffstat (limited to 'src/native')
-rw-r--r-- | src/native/common/MachineDescriptionRuntime.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/native/common/MachineDescriptionRuntime.c b/src/native/common/MachineDescriptionRuntime.c index a8a69ee..1d5286b 100644 --- a/src/native/common/MachineDescriptionRuntime.c +++ b/src/native/common/MachineDescriptionRuntime.c @@ -13,6 +13,15 @@ #include <gluegen_stdint.h> +JNIEXPORT jboolean JNICALL +Java_jogamp_common_os_MachineDescriptionRuntime_isAndroidImpl(JNIEnv *env, jclass _unused) { +#if defined(ANDROID) + return JNI_TRUE; +#else + return JNI_FALSE; +#endif +} + JNIEXPORT jint JNICALL Java_jogamp_common_os_MachineDescriptionRuntime_getPointerSizeInBytesImpl(JNIEnv *env, jclass _unused) { return sizeof(void *); |