OpenGL JNI Canvas compiled only when needed

This commit is contained in:
Simon Robertshaw 2012-06-04 12:21:07 +01:00
parent a247951115
commit bc35d622ad
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,4 @@
#ifdef USE_JNI
#import <jawt_md.h> #import <jawt_md.h>
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
@ -31,3 +32,4 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif

View File

@ -1,3 +1,4 @@
#ifdef USE_JNI
#include "OpenGLCanvasMacOS.h" #include "OpenGLCanvasMacOS.h"
static jfieldID ctxID = NULL; static jfieldID ctxID = NULL;
@ -165,3 +166,4 @@ JNIEXPORT void JNICALL Java_OpenGLCanvas_releaseOpenGL(JNIEnv *env, jobject canv
freeContext(env, canvas, ci); freeContext(env, canvas, ci);
} }
#endif