removed debug function and add buildfile for android ndk-build command

pull/491/head
arris69 2015-03-12 21:24:49 +01:00
parent ead3b26ea9
commit 8b22ba25ba
2 changed files with 13 additions and 14 deletions

View File

@ -0,0 +1,13 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := jassimp
LOCAL_SRC_FILES := src/jassimp.cpp
LOCAL_CFLAGS += -DJNI_LOG
#LOCAL_STATIC_LIBRARIES := assimp_static
LOCAL_SHARED_LIBRARIES := assimp
LOCAL_LDLIBS := -llog
include $(BUILD_SHARED_LIBRARY)

View File

@ -15,20 +15,6 @@
#define lprintf
#endif
static void dumpRefTable(JNIEnv *env){
/* DEBUG STUFF */
jclass clazz = env->FindClass("dalvik/system/VMDebug");
jmethodID dump_mid = env->GetStaticMethodID( clazz, "dumpReferenceTables", "()V" );
env->CallStaticVoidMethod( clazz, dump_mid );
env->DeleteLocalRef(clazz);
/*jint res = env->EnsureLocalCapacity(20);
if(res < 0){
lprintf("too many meshes on the model!\n");
}*/
}
static bool createInstance(JNIEnv *env, const char* className, jobject& newInstance)
{
jclass clazz = env->FindClass(className);