mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 03:00:14 +08:00
android: NDK17 support
tested with NDK 17b (17.1.4828580)
This commit is contained in:
parent
d10a219833
commit
bb45bf9695
@ -106,9 +106,13 @@ class ABI:
|
||||
self.cmake_vars = dict(
|
||||
ANDROID_STL="gnustl_static",
|
||||
ANDROID_ABI=self.name,
|
||||
ANDROID_TOOLCHAIN_NAME=toolchain,
|
||||
ANDROID_PLATFORM_ID=platform_id,
|
||||
)
|
||||
if toolchain is not None:
|
||||
self.cmake_vars['ANDROID_TOOLCHAIN_NAME'] = toolchain
|
||||
else:
|
||||
self.cmake_vars['ANDROID_TOOLCHAIN'] = 'clang'
|
||||
self.cmake_vars['ANDROID_STL'] = 'c++_static'
|
||||
if ndk_api_level:
|
||||
self.cmake_vars['ANDROID_NATIVE_API_LEVEL'] = ndk_api_level
|
||||
self.cmake_vars.update(cmake_vars)
|
||||
|
6
platforms/android/ndk-17.config.py
Normal file
6
platforms/android/ndk-17.config.py
Normal file
@ -0,0 +1,6 @@
|
||||
ABIs = [
|
||||
ABI("2", "armeabi-v7a", None, cmake_vars=dict(ANDROID_ABI='armeabi-v7a with NEON')),
|
||||
ABI("3", "arm64-v8a", None),
|
||||
ABI("5", "x86_64", None),
|
||||
ABI("4", "x86", None),
|
||||
]
|
Loading…
Reference in New Issue
Block a user