mirror of
https://github.com/opencv/opencv.git
synced 2024-12-05 09:49:12 +08:00
0d1a0b126b
* Add Android Media NDK video i/o file capture back-end * Fix failing test * Improve error handling/prevent resource leaks * Add license text * Modify default for WITH_ANDROID_MEDIANDK option * Fix spelling of deleter_AMediaExtractor
9 lines
394 B
CMake
9 lines
394 B
CMake
# if(ANDROID AND ANDROID_NATIVE_API_LEVEL GREATER_EQUAL 21) <-- would be nicer but requires CMake 3.7 or later
|
|
if(ANDROID AND ANDROID_NATIVE_API_LEVEL GREATER 20)
|
|
set(HAVE_ANDROID_MEDIANDK TRUE)
|
|
set(libs "-landroid -llog -lmediandk")
|
|
ocv_add_external_target(android_mediandk "" "${libs}" "HAVE_ANDROID_MEDIANDK")
|
|
endif()
|
|
|
|
set(HAVE_ANDROID_MEDIANDK ${HAVE_ANDROID_MEDIANDK} PARENT_SCOPE)
|