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
d6b85635
Commit
d6b85635
authored
May 13, 2016
by
Maksim Shabunin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6460 from m039:fix/add_extra_modules_path_to_build_sdk
parents
925d8c1d
03e4b755
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
build_sdk.py
platforms/android/build_sdk.py
+12
-2
No files found.
platforms/android/build_sdk.py
View file @
d6b85635
...
...
@@ -92,6 +92,7 @@ class Builder:
def
__init__
(
self
,
workdir
,
opencvdir
):
self
.
workdir
=
check_dir
(
workdir
,
create
=
True
)
self
.
opencvdir
=
check_dir
(
opencvdir
)
self
.
extra_modules_path
=
None
self
.
libdest
=
check_dir
(
os
.
path
.
join
(
self
.
workdir
,
"o4a"
),
create
=
True
,
clean
=
True
)
self
.
docdest
=
check_dir
(
os
.
path
.
join
(
self
.
workdir
,
"javadoc"
),
create
=
True
,
clean
=
True
)
self
.
resultdest
=
check_dir
(
os
.
path
.
join
(
self
.
workdir
,
"OpenCV-android-sdk"
),
create
=
True
,
clean
=
True
)
...
...
@@ -133,9 +134,14 @@ class Builder:
"-DANDROID_NATIVE_API_LEVEL=8"
,
"-DANDROID_ABI='
%
s'"
%
abi
.
cmake_name
,
"-DWITH_TBB=ON"
,
"-DANDROID_TOOLCHAIN_NAME=
%
s"
%
abi
.
toolchain
,
self
.
opencvdir
"-DANDROID_TOOLCHAIN_NAME=
%
s"
%
abi
.
toolchain
]
if
self
.
extra_modules_path
is
not
None
:
cmd
.
append
(
"-DOPENCV_EXTRA_MODULES_PATH='
%
s'"
%
self
.
extra_modules_path
)
cmd
.
append
(
self
.
opencvdir
)
if
self
.
use_ccache
==
True
:
cmd
.
extend
([
"-DNDK_CCACHE=ccache"
,
"-DENABLE_PRECOMPILED_HEADERS=OFF"
])
if
do_install
:
...
...
@@ -258,6 +264,7 @@ if __name__ == "__main__":
parser
.
add_argument
(
"opencv_dir"
,
help
=
"Path to OpenCV source dir"
)
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
(
"--extra_modules_path"
,
help
=
"Path to extra modules to use for build"
)
parser
.
add_argument
(
'--sign_with'
,
help
=
"Sertificate to sign the Manager apk"
)
parser
.
add_argument
(
'--build_doc'
,
action
=
"store_true"
,
help
=
"Build javadoc"
)
parser
.
add_argument
(
'--no_ccache'
,
action
=
"store_true"
,
help
=
"Do not use ccache during library build"
)
...
...
@@ -277,6 +284,9 @@ if __name__ == "__main__":
builder
=
Builder
(
args
.
work_dir
,
args
.
opencv_dir
)
if
args
.
extra_modules_path
is
not
None
:
builder
.
extra_modules_path
=
os
.
path
.
abspath
(
args
.
extra_modules_path
)
if
args
.
no_ccache
:
builder
.
use_ccache
=
False
...
...
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