|
|
|
@ -7,18 +7,22 @@ add_android_project(opencv_engine "${CMAKE_CURRENT_SOURCE_DIR}" SDK_TARGET 8 ${A |
|
|
|
|
set(ANDROID_PLATFORM_VERSION_CODE "0") |
|
|
|
|
|
|
|
|
|
if(ARMEABI_V7A) |
|
|
|
|
if (ANDROID_NATIVE_API_LEVEL LESS 9) |
|
|
|
|
set(ANDROID_PLATFORM_VERSION_CODE "2") |
|
|
|
|
elseif(ARMEABI_V6) |
|
|
|
|
set(ANDROID_PLATFORM_VERSION_CODE "1") |
|
|
|
|
elseif(ARMEABI) |
|
|
|
|
set(ANDROID_PLATFORM_VERSION_CODE "1") |
|
|
|
|
elseif(X86) |
|
|
|
|
set(ANDROID_PLATFORM_VERSION_CODE "3") |
|
|
|
|
elseif(MIPS) |
|
|
|
|
set(ANDROID_PLATFORM_VERSION_CODE "4") |
|
|
|
|
else() |
|
|
|
|
message(WARNING "Can not automatically determine the value for ANDROID_PLATFORM_VERSION_CODE") |
|
|
|
|
set(ANDROID_PLATFORM_VERSION_CODE "3") |
|
|
|
|
endif() |
|
|
|
|
elseif(ARMEABI_V6) |
|
|
|
|
set(ANDROID_PLATFORM_VERSION_CODE "1") |
|
|
|
|
elseif(ARMEABI) |
|
|
|
|
set(ANDROID_PLATFORM_VERSION_CODE "1") |
|
|
|
|
elseif(X86) |
|
|
|
|
set(ANDROID_PLATFORM_VERSION_CODE "4") |
|
|
|
|
elseif(MIPS) |
|
|
|
|
set(ANDROID_PLATFORM_VERSION_CODE "5") |
|
|
|
|
else() |
|
|
|
|
message(WARNING "Can not automatically determine the value for ANDROID_PLATFORM_VERSION_CODE") |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/${ANDROID_MANIFEST_FILE}" "${OpenCV_BINARY_DIR}/android/service/engine/.build/${ANDROID_MANIFEST_FILE}" @ONLY) |
|
|
|
|
|
|
|
|
|