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
e009d79c
Commit
e009d79c
authored
Sep 01, 2015
by
Maksim Shabunin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! Some changes to support mingw-w64
parent
771af4f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
CMakeLists.txt
CMakeLists.txt
+1
-1
build_sdk.py
platforms/android/build_sdk.py
+10
-5
No files found.
CMakeLists.txt
View file @
e009d79c
...
...
@@ -171,7 +171,7 @@ OCV_OPTION(WITH_GSTREAMER "Include Gstreamer support" ON
OCV_OPTION
(
WITH_GSTREAMER_0_10
"Enable Gstreamer 0.10 support (instead of 1.x)"
OFF
)
OCV_OPTION
(
WITH_GTK
"Include GTK support"
ON
IF
(
UNIX AND NOT APPLE AND NOT ANDROID
)
)
OCV_OPTION
(
WITH_GTK_2_X
"Use GTK version 2"
OFF
IF
(
UNIX AND NOT APPLE AND NOT ANDROID
)
)
OCV_OPTION
(
WITH_IPP
"Include Intel IPP support"
ON
IF
(
X86_64 OR X86
)
AND NOT WINRT AND NOT MINGW
)
OCV_OPTION
(
WITH_IPP
"Include Intel IPP support"
NOT MINGW
IF
(
X86_64 OR X86
)
AND NOT WINRT
)
OCV_OPTION
(
WITH_JASPER
"Include JPEG2K support"
ON
IF
(
NOT IOS
)
)
OCV_OPTION
(
WITH_JPEG
"Include JPEG support"
ON
)
OCV_OPTION
(
WITH_WEBP
"Include WebP support"
ON
IF
(
NOT IOS AND NOT WINRT
)
)
...
...
platforms/android/build_sdk.py
View file @
e009d79c
...
...
@@ -19,7 +19,7 @@ def execute(cmd, shell=False):
elif
retcode
>
0
:
raise
Fail
(
"Child returned:
%
s"
%
retcode
)
except
OSError
as
e
:
raise
Fail
(
"Execution failed:
%
s"
%
e
.
strerror
)
raise
Fail
(
"Execution failed:
%
d /
%
s"
%
(
e
.
errno
,
e
.
strerror
)
)
def
rm_one
(
d
):
d
=
os
.
path
.
abspath
(
d
)
...
...
@@ -169,6 +169,7 @@ class Builder:
for
ver
,
d
in
self
.
extra_packs
+
[(
"3.0.0"
,
os
.
path
.
join
(
self
.
libdest
,
"lib"
))]:
r
=
ET
.
Element
(
"library"
,
attrib
=
{
"version"
:
ver
})
log
.
info
(
"Adding libraries from
%
s"
,
d
)
for
f
in
glob
.
glob
(
os
.
path
.
join
(
d
,
abi
.
name
,
"*.so"
)):
log
.
info
(
"Copy file:
%
s"
,
f
)
shutil
.
copy2
(
f
,
apklibdest
)
...
...
@@ -176,11 +177,15 @@ class Builder:
continue
log
.
info
(
"Register file:
%
s"
,
os
.
path
.
basename
(
f
))
n
=
ET
.
SubElement
(
r
,
"file"
,
attrib
=
{
"name"
:
os
.
path
.
basename
(
f
)})
xmlname
=
os
.
path
.
join
(
apkxmldest
,
"config
%
s.xml"
%
ver
.
replace
(
"."
,
""
))
log
.
info
(
"Generating XML config:
%
s"
,
xmlname
)
ET
.
ElementTree
(
r
)
.
write
(
xmlname
,
encoding
=
"utf-8"
)
if
len
(
list
(
r
))
>
0
:
xmlname
=
os
.
path
.
join
(
apkxmldest
,
"config
%
s.xml"
%
ver
.
replace
(
"."
,
""
))
log
.
info
(
"Generating XML config:
%
s"
,
xmlname
)
ET
.
ElementTree
(
r
)
.
write
(
xmlname
,
encoding
=
"utf-8"
)
execute
([
"ninja"
,
"opencv_engine"
])
execute
([
"ant"
,
"-f"
,
os
.
path
.
join
(
apkdest
,
"build.xml"
),
"debug"
],
shell
=
True
)
execute
([
"ant"
,
"-f"
,
os
.
path
.
join
(
apkdest
,
"build.xml"
),
"debug"
],
shell
=
(
sys
.
platform
==
'win32'
))
# TODO: Sign apk
def
build_javadoc
(
self
):
...
...
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