mirror of https://github.com/kivy/kivy.git
Respect SDKROOT and use_osx_frameworks
This commit is contained in:
parent
d74461b200
commit
e49fbcbce4
5
setup.py
5
setup.py
|
@ -600,9 +600,12 @@ def determine_base_flags():
|
|||
environ.get('LOCALBASE', '/usr/local'), 'include')]
|
||||
flags['library_dirs'] += [join(
|
||||
environ.get('LOCALBASE', '/usr/local'), 'lib')]
|
||||
elif platform == 'darwin':
|
||||
elif platform == 'darwin' and c_options['use_osx_frameworks']:
|
||||
v = os.uname()
|
||||
if v[2] >= '13.0.0':
|
||||
if 'SDKROOT' in environ:
|
||||
sysroot = join(environ['SDKROOT'], 'System/Library/Frameworks')
|
||||
else:
|
||||
# use xcode-select to search on the right Xcode path
|
||||
# XXX use the best SDK available instead of a specific one
|
||||
import platform as _platform
|
||||
|
|
Loading…
Reference in New Issue