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
4f6238aa
Commit
4f6238aa
authored
May 02, 2017
by
Yuriy Solovyov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use all available cpu cores in iOS/OSX build procedure
parent
04573615
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
build_framework.py
platforms/ios/build_framework.py
+2
-2
build_framework.py
platforms/osx/build_framework.py
+2
-2
No files found.
platforms/ios/build_framework.py
View file @
4f6238aa
...
...
@@ -28,7 +28,7 @@ Adding --dynamic parameter will build opencv2.framework as App Store dynamic fra
"""
from
__future__
import
print_function
import
glob
,
re
,
os
,
os
.
path
,
shutil
,
string
,
sys
,
argparse
,
traceback
import
glob
,
re
,
os
,
os
.
path
,
shutil
,
string
,
sys
,
argparse
,
traceback
,
multiprocessing
from
subprocess
import
check_call
,
check_output
,
CalledProcessError
def
execute
(
cmd
,
cwd
=
None
):
...
...
@@ -166,7 +166,7 @@ class Builder:
"-sdk"
,
target
.
lower
(),
"-configuration"
,
"Release"
,
"-parallelizeTargets"
,
"-jobs"
,
"4"
,
"-jobs"
,
multiprocessing
.
cpu_count
()
,
]
+
([
"-target"
,
"ALL_BUILD"
]
if
self
.
dynamic
else
[])
return
buildcmd
...
...
platforms/osx/build_framework.py
View file @
4f6238aa
...
...
@@ -4,7 +4,7 @@ The script builds OpenCV.framework for OSX.
"""
from
__future__
import
print_function
import
os
,
os
.
path
,
sys
,
argparse
,
traceback
import
os
,
os
.
path
,
sys
,
argparse
,
traceback
,
multiprocessing
# import common code
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
+
'/../ios'
))
...
...
@@ -23,7 +23,7 @@ class OSXBuilder(Builder):
"-sdk"
,
target
.
lower
(),
"-configuration"
,
"Release"
,
"-parallelizeTargets"
,
"-jobs"
,
"4"
"-jobs"
,
multiprocessing
.
cpu_count
()
]
return
buildcmd
...
...
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