Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nirbheek Chauhan
cerbero
Commits
f2d887b0
Commit
f2d887b0
authored
Feb 25, 2013
by
Andoni Morales Alastruey
Browse files
ios: detect ios platform based on the target architecture
parent
9eb872a0
Changes
3
Hide whitespace changes
Inline
Side-by-side
config/cross-ios-arm7.cbc
View file @
f2d887b0
...
...
@@ -5,4 +5,3 @@ target_arch=Architecture.ARMv7
target_distro=Distro.IOS
target_distro_version=DistroVersion.IOS_6_1
host='arm-apple-darwin'
ios_platform='iPhoneOS'
config/cross-ios-x86.cbc
View file @
f2d887b0
...
...
@@ -5,4 +5,3 @@ target_arch=Architecture.X86
target_distro=Distro.IOS
target_distro_version=DistroVersion.IOS_6_1
host='i386-apple-darwin'
ios_platform='iPhoneSimulator'
config/ios.config
View file @
f2d887b0
...
...
@@ -20,6 +20,12 @@ elif target_distro_version == DistroVersion.IOS_6_1:
else
:
raise
FatalError
(
"Distro version %s not supported"
%(
target_distro_version
))
if
not
ios_platform
:
if
target_arch
==
Architecture
.
X86
:
ios_platform
=
'iPhoneSimulator'
else
:
ios_platform
=
'iPhoneOS'
# For Xcode >= 4.3, the SDK is installed in a completely different path
# FIXME This has not been tested, we should check what is the iOS toolchain path
# for xcode 4.3
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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