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
b7c13461
Commit
b7c13461
authored
Nov 26, 2018
by
Adrian Kashivskyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ability to specify iPhoneSimulator ARCHS
parent
65f22292
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
build_framework.py
platforms/ios/build_framework.py
+4
-1
No files found.
platforms/ios/build_framework.py
View file @
b7c13461
...
...
@@ -283,12 +283,15 @@ if __name__ == "__main__":
parser
.
add_argument
(
'--disable-bitcode'
,
default
=
False
,
dest
=
'bitcodedisabled'
,
action
=
'store_true'
,
help
=
'disable bitcode (enabled by default)'
)
parser
.
add_argument
(
'--iphoneos_deployment_target'
,
default
=
os
.
environ
.
get
(
'IPHONEOS_DEPLOYMENT_TARGET'
,
IPHONEOS_DEPLOYMENT_TARGET
),
help
=
'specify IPHONEOS_DEPLOYMENT_TARGET'
)
parser
.
add_argument
(
'--iphoneos_archs'
,
default
=
'armv7,armv7s,arm64'
,
help
=
'select iPhoneOS target ARCHS'
)
parser
.
add_argument
(
'--iphonesimulator_archs'
,
default
=
'i386,x86_64'
,
help
=
'select iPhoneSimulator target ARCHS'
)
args
=
parser
.
parse_args
()
os
.
environ
[
'IPHONEOS_DEPLOYMENT_TARGET'
]
=
args
.
iphoneos_deployment_target
print
(
'Using IPHONEOS_DEPLOYMENT_TARGET='
+
os
.
environ
[
'IPHONEOS_DEPLOYMENT_TARGET'
])
iphoneos_archs
=
args
.
iphoneos_archs
.
split
(
','
)
print
(
'Using iPhoneOS ARCHS='
+
str
(
iphoneos_archs
))
iphonesimulator_archs
=
args
.
iphonesimulator_archs
.
split
(
','
)
print
(
'Using iPhoneSimulator ARCHS='
+
str
(
iphonesimulator_archs
))
b
=
iOSBuilder
(
args
.
opencv
,
args
.
contrib
,
args
.
dynamic
,
args
.
bitcodedisabled
,
args
.
without
,
[
...
...
@@ -296,6 +299,6 @@ if __name__ == "__main__":
]
if
os
.
environ
.
get
(
'BUILD_PRECOMMIT'
,
None
)
else
[
(
iphoneos_archs
,
"iPhoneOS"
),
(
[
"i386"
,
"x86_64"
]
,
"iPhoneSimulator"
),
(
iphonesimulator_archs
,
"iPhoneSimulator"
),
])
b
.
build
(
args
.
out
)
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