Be a little smarter about choosing the default SDK to use.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -260,13 +260,20 @@ def main(scriptName, args):
|
|||||||
# developer. TODO: there should be a command line option to set
|
# developer. TODO: there should be a command line option to set
|
||||||
# the SDK...
|
# the SDK...
|
||||||
if sys.platform.startswith("darwin"):
|
if sys.platform.startswith("darwin"):
|
||||||
|
sdks = [
|
||||||
|
"/Developer/SDKs/MacOSX10.5.sdk",
|
||||||
|
"/Developer/SDKs/MacOSX10.6.sdk",
|
||||||
|
"/Developer/SDKs/MacOSX10.7.sdk",
|
||||||
|
]
|
||||||
if not options.osx_cocoa:
|
if not options.osx_cocoa:
|
||||||
wxpy_configure_opts.append(
|
sdks.insert(0, "/Developer/SDKs/MacOSX10.4u.sdk")
|
||||||
"--with-macosx-sdk=/Developer/SDKs/MacOSX10.4u.sdk")
|
|
||||||
else:
|
# use the lowest available sdk
|
||||||
wxpy_configure_opts.append(
|
for sdk in sdks:
|
||||||
"--with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk")
|
if os.path.exists(sdk):
|
||||||
|
wxpy_configure_opts.append(
|
||||||
|
"--with-macosx-sdk=%s" % sdk)
|
||||||
|
break
|
||||||
|
|
||||||
if not options.mac_framework:
|
if not options.mac_framework:
|
||||||
if installDir and not prefixDir:
|
if installDir and not prefixDir:
|
||||||
|
Reference in New Issue
Block a user