removed debug function and add buildfile for android ndk-build command
parent
ead3b26ea9
commit
8b22ba25ba
|
@ -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)
|
|
@ -15,20 +15,6 @@
|
||||||
#define lprintf
|
#define lprintf
|
||||||
#endif
|
#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)
|
static bool createInstance(JNIEnv *env, const char* className, jobject& newInstance)
|
||||||
{
|
{
|
||||||
jclass clazz = env->FindClass(className);
|
jclass clazz = env->FindClass(className);
|
||||||
|
|
Loading…
Reference in New Issue