|
|
|
@ -151,14 +151,13 @@ add_custom_target(${api_target} DEPENDS ${java_files} ${documented_java_files} $ |
|
|
|
|
add_library(${the_module} SHARED ${handwrittren_h_sources} ${handwrittren_cpp_sources} ${generated_cpp_sources}) |
|
|
|
|
if(BUILD_FAT_JAVA_LIB) |
|
|
|
|
set(__deps ${OPENCV_MODULE_${the_module}_DEPS} ${OPENCV_MODULES_BUILD}) |
|
|
|
|
list(REMOVE_ITEM __deps ${the_module}) |
|
|
|
|
list(REMOVE_ITEM __deps ${the_module} opencv_ts) |
|
|
|
|
ocv_list_unique(__deps) |
|
|
|
|
set(__extradeps ${__deps}) |
|
|
|
|
ocv_list_filterout(__extradeps "^opencv_") |
|
|
|
|
if(__extradeps) |
|
|
|
|
list(REMOVE_ITEM __deps ${__extradeps}) |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
target_link_libraries(${the_module} -Wl,-whole-archive ${__deps} -Wl,-no-whole-archive ${__extradeps} ${OPENCV_LINKER_LIBS}) |
|
|
|
|
else() |
|
|
|
|
target_link_libraries(${the_module} ${OPENCV_MODULE_${the_module}_DEPS} ${OPENCV_LINKER_LIBS}) |
|
|
|
|