1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-21 19:33:03 +04:00

Merge pull request #10923 from Preventis:patch-ios

Fixed dynamic build script for iOS (#10923)

* Readded UIDeviceFamily (was removed in beec247)

* Added correct bitcode flag to python build script for iOS

* Missed the bitcodedisabled check

* Corrected the syntax in my proposed changes
This commit is contained in:
Ben John
2018-03-13 14:09:26 +01:00
committed by Alexander Alekhin
parent 0792ef8789
commit 2f0060e399
2 changed files with 9 additions and 1 deletions
+6 -1
View File
@@ -24,5 +24,10 @@
</array>
<key>MinimumOSVersion</key>
<string>8.0</string>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
</dict>
</plist>
</plist>
+3
View File
@@ -152,6 +152,9 @@ class Builder:
"ONLY_ACTIVE_ARCH=NO",
]
if not self.bitcodedisabled:
buildcmd.append("BITCODE_GENERATION_MODE=bitcode")
for arch in archs:
buildcmd.append("-arch")
buildcmd.append(arch.lower())