Commit ea58cdc7 authored by Andrey Kamaev's avatar Andrey Kamaev

(trunk) Do not use prebuilt Android camera libs for armeabi hardware target

parent 9c71134c
...@@ -1241,6 +1241,7 @@ if(ANDROID) ...@@ -1241,6 +1241,7 @@ if(ANDROID)
else() else()
SET(OPENCV_LIBTYPE_CONFIGMAKE "STATIC") SET(OPENCV_LIBTYPE_CONFIGMAKE "STATIC")
endif() endif()
if(ARMEABI_V7A)
if(BUILD_ANDROID_CAMERA_WRAPPER) if(BUILD_ANDROID_CAMERA_WRAPPER)
set(CMAKE_CAMERA_LIBS_CONFIGCMAKE "native_camera_r${ANDROID_VERSION}") set(CMAKE_CAMERA_LIBS_CONFIGCMAKE "native_camera_r${ANDROID_VERSION}")
else() else()
...@@ -1252,6 +1253,7 @@ if(ANDROID) ...@@ -1252,6 +1253,7 @@ if(ANDROID)
SET(CMAKE_CAMERA_LIBS_CONFIGCMAKE "${CMAKE_CAMERA_LIBS_CONFIGCMAKE} ${cam_lib}") SET(CMAKE_CAMERA_LIBS_CONFIGCMAKE "${CMAKE_CAMERA_LIBS_CONFIGCMAKE} ${cam_lib}")
endforeach() endforeach()
endif() endif()
endif()
endif(ANDROID) endif(ANDROID)
# ------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------
# Part 1/2: ${BIN_DIR}/OpenCV.mk -> For use *without* "make install" # Part 1/2: ${BIN_DIR}/OpenCV.mk -> For use *without* "make install"
...@@ -1517,11 +1519,15 @@ message(STATUS " V4L/V4L2: ${HAVE_CAMV4L}/${HAVE_CAMV4L2}") ...@@ -1517,11 +1519,15 @@ message(STATUS " V4L/V4L2: ${HAVE_CAMV4L}/${HAVE_CAMV4L2}")
endif() endif()
message(STATUS " Xine: ${HAVE_XINE}") message(STATUS " Xine: ${HAVE_XINE}")
if(ANDROID) if(ANDROID)
if (ARMEABI_V7A)
if(BUILD_ANDROID_CAMERA_WRAPPER) if(BUILD_ANDROID_CAMERA_WRAPPER)
message(STATUS " AndroidNativeCamera: build for Android ${ANDROID_VERSION}") message(STATUS " AndroidNativeCamera: build for Android ${ANDROID_VERSION}")
else() else()
message(STATUS " AndroidNativeCamera: use prebuilt libraries") message(STATUS " AndroidNativeCamera: use prebuilt libraries")
endif(BUILD_ANDROID_CAMERA_WRAPPER) endif(BUILD_ANDROID_CAMERA_WRAPPER)
else(ARMEABI_V7A)
message(STATUS " AndroidNativeCamera: NO")
endif(ARMEABI_V7A)
endif() endif()
endif() #if(UNIX AND NOT APPLE) endif() #if(UNIX AND NOT APPLE)
......
...@@ -37,7 +37,7 @@ IF (NOT BUILD_SHARED_LIBS) ...@@ -37,7 +37,7 @@ IF (NOT BUILD_SHARED_LIBS)
) )
ENDIF() ENDIF()
if (NOT BUILD_ANDROID_CAMERA_WRAPPER) if (ARMEABI_V7A AND NOT BUILD_ANDROID_CAMERA_WRAPPER)
file(GLOB camera_wrappers "${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/lib/libnative_camera_r*.so") file(GLOB camera_wrappers "${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/lib/libnative_camera_r*.so")
foreach(wrapper ${camera_wrappers}) foreach(wrapper ${camera_wrappers})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment