summaryrefslogtreecommitdiffstats
path: root/make/dynlink-unix-CustomJavaCode.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-07-24 22:04:40 +0200
committerSven Gothel <[email protected]>2011-07-24 22:04:40 +0200
commit625727ee75b758bef4f9f5f3816b37547c9f6875 (patch)
tree63fce88fa5e37abe2e852608a8b79ac8f28029d0 /make/dynlink-unix-CustomJavaCode.java
parent26374fad042f4a33f799cdee367dc903b27a44f7 (diff)
Cleaned up android build ; Cross junit/java android test/script; Fix Test1p2ProcAddressEmitter
Fix Test1p2ProcAddressEmitter - 3 tests used the wrong binding instance, where no native lib was loaded for - duh :) Cleaned up android build - add unix src (UnixDynamicLinkerImpl_JNI.c) - remove linker cmds in compile arguments Cross junit/java android test works via script - target command scrip is written to file, pushed and executed Status: com.jogamp.gluegen.test.junit.generation.Test1p2ProcAddressEmitter - passed - on par w/ linux-armv7
Diffstat (limited to 'make/dynlink-unix-CustomJavaCode.java')
0 files changed, 0 insertions, 0 deletions
">#if !defined(__sun) && !defined(_HPUX) #include <X11/extensions/xf86vmode.h> #else /* Need to provide stubs for these */ Bool XF86VidModeGetGammaRampSize( Display *display, int screen, int* size) { return False; } Bool XF86VidModeGetGammaRamp( Display *display, int screen, int size, unsigned short *red_array, unsigned short *green_array, unsigned short *blue_array) { return False; } Bool XF86VidModeSetGammaRamp( Display *display, int screen, int size, unsigned short *red_array, unsigned short *green_array, unsigned short *blue_array) { return False; } #endif /* HP-UX doesn't define RTLD_DEFAULT. */ #if defined(_HPUX) && !defined(RTLD_DEFAULT) #define RTLD_DEFAULT NULL #endif /* Need to expose DefaultScreen and RootWindow macros to Java */ JNIEXPORT jlong JNICALL Java_com_sun_opengl_impl_x11_GLX_DefaultScreen(JNIEnv *env, jclass _unused, jlong display) { return DefaultScreen((Display*) (intptr_t) display); } JNIEXPORT jlong JNICALL Java_com_sun_opengl_impl_x11_GLX_RootWindow(JNIEnv *env, jclass _unused, jlong display, jint screen) { return RootWindow((Display*) (intptr_t) display, screen); } JNIEXPORT jlong JNICALL Java_com_sun_opengl_impl_x11_GLX_dlopen(JNIEnv *env, jclass _unused, jstring name) { const jbyte* chars; void* res; chars = (*env)->GetStringUTFChars(env, name, NULL); res = dlopen(chars, RTLD_LAZY | RTLD_GLOBAL); (*env)->ReleaseStringUTFChars(env, name, chars); return (jlong) ((intptr_t) res); } JNIEXPORT jlong JNICALL Java_com_sun_opengl_impl_x11_GLX_dlsym(JNIEnv *env, jclass _unused, jstring name) { const jbyte* chars; void* res; chars = (*env)->GetStringUTFChars(env, name, NULL); res = dlsym(RTLD_DEFAULT, chars); (*env)->ReleaseStringUTFChars(env, name, chars); return (jlong) ((intptr_t) res); } /* We expect glXGetProcAddressARB to be defined */ extern __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *); /* Need to pull this in as we don't have a stub header for it */ extern Bool XineramaEnabled(Display* display);