Get the SDK root from the environment.

$SDKROOT is set in kivy-ios/tools/environment.sh
This commit is contained in:
Joseph Hager 2012-04-17 15:12:41 -04:00
parent 144428b7b5
commit 3ba4b8adb4
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ def determine_base_flags():
'extra_link_args': [],
'extra_compile_args': []}
if c_options['use_ios']:
sysroot = '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk'
sysroot = environ['SDKROOT']
flags['include_dirs'] += [sysroot]
flags['extra_compile_args'] += ['-isysroot', sysroot]
flags['extra_link_args'] += ['-isysroot', sysroot]