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
40d61e5c
Commit
40d61e5c
authored
May 03, 2017
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8688 from ysolovyov:num-jobs-fix
parents
2a5a143f
96f1ef13
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 @
40d61e5c
...
@@ -28,7 +28,7 @@ Adding --dynamic parameter will build opencv2.framework as App Store dynamic fra
...
@@ -28,7 +28,7 @@ Adding --dynamic parameter will build opencv2.framework as App Store dynamic fra
"""
"""
from
__future__
import
print_function
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
from
subprocess
import
check_call
,
check_output
,
CalledProcessError
def
execute
(
cmd
,
cwd
=
None
):
def
execute
(
cmd
,
cwd
=
None
):
...
@@ -166,7 +166,7 @@ class Builder:
...
@@ -166,7 +166,7 @@ class Builder:
"-sdk"
,
target
.
lower
(),
"-sdk"
,
target
.
lower
(),
"-configuration"
,
"Release"
,
"-configuration"
,
"Release"
,
"-parallelizeTargets"
,
"-parallelizeTargets"
,
"-jobs"
,
"4"
,
"-jobs"
,
str
(
multiprocessing
.
cpu_count
())
,
]
+
([
"-target"
,
"ALL_BUILD"
]
if
self
.
dynamic
else
[])
]
+
([
"-target"
,
"ALL_BUILD"
]
if
self
.
dynamic
else
[])
return
buildcmd
return
buildcmd
...
...
platforms/osx/build_framework.py
View file @
40d61e5c
...
@@ -4,7 +4,7 @@ The script builds OpenCV.framework for OSX.
...
@@ -4,7 +4,7 @@ The script builds OpenCV.framework for OSX.
"""
"""
from
__future__
import
print_function
from
__future__
import
print_function
import
os
,
os
.
path
,
sys
,
argparse
,
traceback
import
os
,
os
.
path
,
sys
,
argparse
,
traceback
,
multiprocessing
# import common code
# import common code
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
+
'/../ios'
))
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
+
'/../ios'
))
...
@@ -23,7 +23,7 @@ class OSXBuilder(Builder):
...
@@ -23,7 +23,7 @@ class OSXBuilder(Builder):
"-sdk"
,
target
.
lower
(),
"-sdk"
,
target
.
lower
(),
"-configuration"
,
"Release"
,
"-configuration"
,
"Release"
,
"-parallelizeTargets"
,
"-parallelizeTargets"
,
"-jobs"
,
"4"
"-jobs"
,
str
(
multiprocessing
.
cpu_count
())
]
]
return
buildcmd
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