mirror of
https://github.com/opencv/opencv.git
synced 2024-12-16 10:29:11 +08:00
615d6c22d1
Epoch is gone; now the version component names in C++ and CMake are consistent (except REVISION corresponds to PATCH).
32 lines
835 B
C
32 lines
835 B
C
#include "opencv2/core/version.hpp"
|
|
#include <jni.h>
|
|
|
|
const char* GetPackageName(void);
|
|
const char* GetRevision(void);
|
|
const char* GetLibraryList(void);
|
|
JNIEXPORT jstring JNICALL Java_org_opencv_android_StaticHelper_getLibraryList(JNIEnv *, jclass);
|
|
|
|
#define PACKAGE_NAME "org.opencv.lib_v" CVAUX_STR(CV_VERSION_MAJOR) CVAUX_STR(CV_VERSION_MINOR) "_" ANDROID_PACKAGE_PLATFORM
|
|
#define PACKAGE_REVISION CVAUX_STR(CV_VERSION_REVISION) "." CVAUX_STR(ANDROID_PACKAGE_RELEASE)
|
|
|
|
const char* GetPackageName(void)
|
|
{
|
|
return PACKAGE_NAME;
|
|
}
|
|
|
|
const char* GetRevision(void)
|
|
{
|
|
return PACKAGE_REVISION;
|
|
}
|
|
|
|
const char* GetLibraryList(void)
|
|
{
|
|
return "";
|
|
}
|
|
|
|
JNIEXPORT jstring JNICALL Java_org_opencv_android_StaticHelper_getLibraryList(JNIEnv * env, jclass clazz)
|
|
{
|
|
(void)clazz;
|
|
return (*env)->NewStringUTF(env, GetLibraryList());
|
|
}
|