adding OpenCV Manager
This commit is contained in:
2
android/package/CMakeLists.txt
Normal file
2
android/package/CMakeLists.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
#tbd
|
||||
add_subdirectory(info_lib)
|
1
android/package/info_lib/CMakeLists.txt
Normal file
1
android/package/info_lib/CMakeLists.txt
Normal file
@@ -0,0 +1 @@
|
||||
#tbd
|
17
android/package/info_lib/jni/Android.mk
Normal file
17
android/package/info_lib/jni/Android.mk
Normal file
@@ -0,0 +1,17 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
src/info.c
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(LOCAL_PATH)/include \
|
||||
$(TOP)/frameworks/base/core/jni
|
||||
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
|
||||
LOCAL_MODULE := libopencvinfo
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
2
android/package/info_lib/jni/Application.mk
Normal file
2
android/package/info_lib/jni/Application.mk
Normal file
@@ -0,0 +1,2 @@
|
||||
APP_ABI := armeabi-v7a x86
|
||||
APP_PLATFORM := android-8
|
3
android/package/info_lib/jni/include/info.h
Normal file
3
android/package/info_lib/jni/include/info.h
Normal file
@@ -0,0 +1,3 @@
|
||||
// Function return list of shared libs seporated with ";" symbol
|
||||
// in load order
|
||||
const char* GetLibraryList();
|
31
android/package/info_lib/jni/include/info_jni.h
Normal file
31
android/package/info_lib/jni/include/info_jni.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/* DO NOT EDIT THIS FILE - it is machine generated */
|
||||
#include <jni.h>
|
||||
/* Header for class org_opencv_android_OpenCVLoader */
|
||||
|
||||
#ifndef _Included_org_opencv_android_OpenCVLoader
|
||||
#define _Included_org_opencv_android_OpenCVLoader
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#undef org_opencv_android_OpenCVLoader_Success
|
||||
#define org_opencv_android_OpenCVLoader_Success 0L
|
||||
#undef org_opencv_android_OpenCVLoader_NoService
|
||||
#define org_opencv_android_OpenCVLoader_NoService 1L
|
||||
#undef org_opencv_android_OpenCVLoader_RestartRequired
|
||||
#define org_opencv_android_OpenCVLoader_RestartRequired 2L
|
||||
#undef org_opencv_android_OpenCVLoader_MarketError
|
||||
#define org_opencv_android_OpenCVLoader_MarketError 3L
|
||||
#undef org_opencv_android_OpenCVLoader_InitFailed
|
||||
#define org_opencv_android_OpenCVLoader_InitFailed 255L
|
||||
/*
|
||||
* Class: org_opencv_android_OpenCVLoader
|
||||
* Method: GetLibraryList
|
||||
* Signature: ()Ljava/lang/String;
|
||||
*/
|
||||
JNIEXPORT jstring JNICALL Java_org_opencv_android_StaticHelper_getLibraryList
|
||||
(JNIEnv *, jclass);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
18
android/package/info_lib/jni/src/info.c
Normal file
18
android/package/info_lib/jni/src/info.c
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "info.h"
|
||||
#include <jni.h>
|
||||
|
||||
#ifndef LIB_STRING
|
||||
#define LIB_STRING "libtbb.so;libopencv_java.so"
|
||||
#endif
|
||||
|
||||
const char* GetLibraryList()
|
||||
{
|
||||
return LIB_STRING;
|
||||
}
|
||||
|
||||
JNIEXPORT jstring JNICALL Java_org_opencv_android_StaticHelper_getLibraryList(JNIEnv* jenv, jclass clazz)
|
||||
{
|
||||
jstring result = (*jenv)->NewStringUTF(jenv, LIB_STRING);
|
||||
|
||||
return result;
|
||||
}
|
Reference in New Issue
Block a user