[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.15.1-1414-gc69ee75

kevino at webkit.org kevino at webkit.org
Thu Oct 29 20:45:22 UTC 2009


The following commit has been merged in the webkit-1.1 branch:
commit 485f90240bfe08c1b6d6af7c71163089369e2d93
Author: kevino at webkit.org <kevino at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Oct 15 16:21:15 2009 +0000

    wx build fix. More SDK fixes for Mac, make sure we use the SDK corresponding to
    the OS if none was explicitly set.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49630 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKitTools/ChangeLog b/WebKitTools/ChangeLog
index 62312d9..453da8e 100644
--- a/WebKitTools/ChangeLog
+++ b/WebKitTools/ChangeLog
@@ -1,3 +1,10 @@
+2009-10-15  Kevin Ollivier  <kevino at theolliviers.com>
+
+        wx build fix. More SDK fixes for Mac, make sure we use the SDK corresponding to
+        the OS if none was explicitly set.
+
+        * wx/build/settings.py:
+
 2009-10-14  Pavel Feldman  <pfeldman at chromium.org>
 
         Reviewed by Timothy Hatcher.
diff --git a/WebKitTools/wx/build/settings.py b/WebKitTools/wx/build/settings.py
index 546b09d..0d53413 100644
--- a/WebKitTools/wx/build/settings.py
+++ b/WebKitTools/wx/build/settings.py
@@ -279,30 +279,29 @@ def common_configure(conf):
         min_version = None
         
         mac_target = 'MACOSX_DEPLOYMENT_TARGET'
-        if mac_target in conf.env:
-             min_version = conf.env[mac_target]
-
         if Options.options.macosx_version != '':
             min_version = Options.options.macosx_version
-
-        # WebKit only supports 10.4+, but ppc systems often set this to earlier systems
-        if not min_version or min_version in ['10.1','10.2','10.3']:
-            min_version = '10.4'
-            
-        os.environ[mac_target] = conf.env[mac_target] = min_version
         
+        # WebKit only supports 10.4+, but ppc systems often set this to earlier systems
+        if not min_version:
+            min_version = commands.getoutput('sw_vers -productVersion')[:4]
+            if min_version in ['10.1','10.2','10.3']:
+                min_version = '10.4'
+
+        os.environ[mac_target] = conf.env[mac_target] = min_version        
+
         sdk_version = min_version
         if min_version == "10.4":
             sdk_version += "u"
-
-        conf.env.append_value('CPPPATH', [os.path.join(wklibs_dir, 'WebCoreSQLite3')])
-        conf.env.append_value('LIB', ['WebCoreSQLite3'])
-            
+        
         sdkroot = '/Developer/SDKs/MacOSX%s.sdk' % sdk_version
         sdkflags = ['-arch', 'i386', '-isysroot', sdkroot]
         
-        conf.env.append_value('CPPFLAGS_SQLITE3', sdkflags)
-        conf.env.append_value('LINKFLAGS_SQLITE3', sdkflags)
+        conf.env.append_value('CPPFLAGS', sdkflags)
+        conf.env.append_value('LINKFLAGS', sdkflags)
+        
+        conf.env.append_value('CPPPATH_SQLITE3', [os.path.join(wklibs_dir, 'WebCoreSQLite3')])
+        conf.env.append_value('LIB_SQLITE3', ['WebCoreSQLite3'])
     
     libprefix = ''
     if building_on_win32:

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list