From 8b22ba25baa63e4ce30e5f3cd5ecb68f50993207 Mon Sep 17 00:00:00 2001 From: arris69 Date: Thu, 12 Mar 2015 21:24:49 +0100 Subject: [PATCH] removed debug function and add buildfile for android ndk-build command --- port/jassimp/jassimp-native/Android.mk | 13 +++++++++++++ port/jassimp/jassimp-native/src/jassimp.cpp | 14 -------------- 2 files changed, 13 insertions(+), 14 deletions(-) create mode 100644 port/jassimp/jassimp-native/Android.mk diff --git a/port/jassimp/jassimp-native/Android.mk b/port/jassimp/jassimp-native/Android.mk new file mode 100644 index 000000000..94b233b32 --- /dev/null +++ b/port/jassimp/jassimp-native/Android.mk @@ -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) diff --git a/port/jassimp/jassimp-native/src/jassimp.cpp b/port/jassimp/jassimp-native/src/jassimp.cpp index 1eeafe304..cc064bd3e 100644 --- a/port/jassimp/jassimp-native/src/jassimp.cpp +++ b/port/jassimp/jassimp-native/src/jassimp.cpp @@ -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);