]> git.saurik.com Git - wxWidgets.git/blobdiff - build/tools/build-wxwidgets.py
More pt_BR translations from Felipe.
[wxWidgets.git] / build / tools / build-wxwidgets.py
index a3d370d20a9ee0a2966f02bc20ecf84b8ceede79..68f8351252ed1a429b211165611f0762b13ec9f3 100755 (executable)
@@ -260,13 +260,20 @@ def main(scriptName, args):
         # developer.  TODO: there should be a command line option to set
         # the SDK...
         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:
-                wxpy_configure_opts.append(
-                    "--with-macosx-sdk=/Developer/SDKs/MacOSX10.4u.sdk")
-            else:
-                wxpy_configure_opts.append(
-                    "--with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk")
-
+                sdks.insert(0, "/Developer/SDKs/MacOSX10.4u.sdk")
+            
+            # use the lowest available sdk
+            for sdk in sdks:
+                if os.path.exists(sdk):
+                    wxpy_configure_opts.append(
+                        "--with-macosx-sdk=%s" % sdk)
+                    break
 
         if not options.mac_framework:
             if installDir and not prefixDir: