From cbd0ee21d5f79724d002dbfa8d15ef15cb8050e1 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Wed, 9 Mar 2016 12:12:30 +0300 Subject: [PATCH] revert: java bindings become CMake modules (loadable plugins) This reverts part of commit 0db10a3052a33c7326517e8140e36d46d430a3f5 --- modules/java/CMakeLists.txt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/modules/java/CMakeLists.txt b/modules/java/CMakeLists.txt index 9f241d3f12..35b4be3be1 100644 --- a/modules/java/CMakeLists.txt +++ b/modules/java/CMakeLists.txt @@ -347,16 +347,9 @@ endif(ANDROID) # workarounding lack of `__attribute__ ((visibility("default")))` in jni_md.h/JNIEXPORT string(REPLACE "-fvisibility=hidden" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") -if(ANDROID) - # Android native code need to link with libopencv_java.so - ocv_add_library(${the_module} SHARED ${handwritten_h_sources} ${handwritten_cpp_sources} ${generated_cpp_sources} +ocv_add_library(${the_module} SHARED ${handwritten_h_sources} ${handwritten_cpp_sources} ${generated_cpp_sources} ${copied_files} "${JAR_FILE}" "${JAR_FILE}.dephelper") -else() - ocv_add_library(${the_module} MODULE ${handwritten_h_sources} ${handwritten_cpp_sources} ${generated_cpp_sources} - ${copied_files} - "${JAR_FILE}" "${JAR_FILE}.dephelper") -endif() if(BUILD_FAT_JAVA_LIB) set(__deps ${OPENCV_MODULE_${the_module}_DEPS} ${OPENCV_MODULES_BUILD})