Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
f473b615
Commit
f473b615
authored
Mar 20, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android: build package with API 21
enables Video I/O backend via Media NDK
parent
6501cb93
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
test_cmake_build.py
platforms/android/build-tests/test_cmake_build.py
+4
-4
build_sdk.py
platforms/android/build_sdk.py
+1
-1
No files found.
platforms/android/build-tests/test_cmake_build.py
View file @
f473b615
...
...
@@ -112,10 +112,10 @@ class TestCmakeBuild(unittest.TestCase):
def
suite
(
workdir
,
opencv_cmake_path
):
abis
=
{
"armeabi-v7a"
:
{
"ANDROID_ABI"
:
"armeabi-v7a"
,
"ANDROID_TOOLCHAIN"
:
"clang"
,
"ANDROID_STL"
:
"c++_static"
},
"arm64-v8a"
:
{
"ANDROID_ABI"
:
"arm64-v8a"
,
"ANDROID_TOOLCHAIN"
:
"clang"
,
"ANDROID_STL"
:
"c++_static"
},
"x86"
:
{
"ANDROID_ABI"
:
"x86"
,
"ANDROID_TOOLCHAIN"
:
"clang"
,
"ANDROID_STL"
:
"c++_static"
},
"x86_64"
:
{
"ANDROID_ABI"
:
"x86_64"
,
"ANDROID_TOOLCHAIN"
:
"clang"
,
"ANDROID_STL"
:
"c++_static"
},
"armeabi-v7a"
:
{
"ANDROID_ABI"
:
"armeabi-v7a"
,
"ANDROID_TOOLCHAIN"
:
"clang"
,
"ANDROID_STL"
:
"c++_static"
,
'ANDROID_NATIVE_API_LEVEL'
:
"21"
},
"arm64-v8a"
:
{
"ANDROID_ABI"
:
"arm64-v8a"
,
"ANDROID_TOOLCHAIN"
:
"clang"
,
"ANDROID_STL"
:
"c++_static"
,
'ANDROID_NATIVE_API_LEVEL'
:
"21"
},
"x86"
:
{
"ANDROID_ABI"
:
"x86"
,
"ANDROID_TOOLCHAIN"
:
"clang"
,
"ANDROID_STL"
:
"c++_static"
,
'ANDROID_NATIVE_API_LEVEL'
:
"21"
},
"x86_64"
:
{
"ANDROID_ABI"
:
"x86_64"
,
"ANDROID_TOOLCHAIN"
:
"clang"
,
"ANDROID_STL"
:
"c++_static"
,
'ANDROID_NATIVE_API_LEVEL'
:
"21"
},
}
suite
=
unittest
.
TestSuite
()
...
...
platforms/android/build_sdk.py
View file @
f473b615
...
...
@@ -281,7 +281,7 @@ if __name__ == "__main__":
parser
=
argparse
.
ArgumentParser
(
description
=
'Build OpenCV for Android SDK'
)
parser
.
add_argument
(
"work_dir"
,
nargs
=
'?'
,
default
=
'.'
,
help
=
"Working directory (and output)"
)
parser
.
add_argument
(
"opencv_dir"
,
nargs
=
'?'
,
default
=
os
.
path
.
join
(
SCRIPT_DIR
,
'../..'
),
help
=
"Path to OpenCV source dir"
)
parser
.
add_argument
(
'--config'
,
default
=
'ndk-18.config.py'
,
type
=
str
,
help
=
"Package build configuration"
,
)
parser
.
add_argument
(
'--config'
,
default
=
'ndk-18
-api-level-21
.config.py'
,
type
=
str
,
help
=
"Package build configuration"
,
)
parser
.
add_argument
(
'--ndk_path'
,
help
=
"Path to Android NDK to use for build"
)
parser
.
add_argument
(
'--sdk_path'
,
help
=
"Path to Android SDK to use for build"
)
parser
.
add_argument
(
'--use_android_buildtools'
,
action
=
"store_true"
,
help
=
'Use cmake/ninja build tools from Android SDK'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment