Look for newer SDKs, plus some future proofing.
This commit is contained in:
@@ -292,14 +292,10 @@ def main(scriptName, args):
|
|||||||
# TODO: there should be a command line option to set the SDK...
|
# TODO: there should be a command line option to set the SDK...
|
||||||
if sys.platform.startswith("darwin"):
|
if sys.platform.startswith("darwin"):
|
||||||
for xcodePath in getXcodePaths():
|
for xcodePath in getXcodePaths():
|
||||||
sdks = [
|
sdks = [ xcodePath+"/SDKs/MacOSX10.{}.sdk".format(n)
|
||||||
xcodePath+"/SDKs/MacOSX10.5.sdk",
|
for n in xrange(5, 15) ]
|
||||||
xcodePath+"/SDKs/MacOSX10.6.sdk",
|
|
||||||
xcodePath+"/SDKs/MacOSX10.7.sdk",
|
|
||||||
xcodePath+"/SDKs/MacOSX10.8.sdk",
|
|
||||||
]
|
|
||||||
|
|
||||||
# use the lowest available sdk
|
# use the lowest available sdk on the build machine
|
||||||
for sdk in sdks:
|
for sdk in sdks:
|
||||||
if os.path.exists(sdk):
|
if os.path.exists(sdk):
|
||||||
wxpy_configure_opts.append(
|
wxpy_configure_opts.append(
|
||||||
|
Reference in New Issue
Block a user