summaryrefslogtreecommitdiffstats
path: root/Tools/wx
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-05-25 19:08:45 +0100
committerSteve Block <steveblock@google.com>2011-06-08 13:51:31 +0100
commit2bde8e466a4451c7319e3a072d118917957d6554 (patch)
tree28f4a1b869a513e565c7760d0e6a06e7cf1fe95a /Tools/wx
parent6939c99b71d9372d14a0c74a772108052e8c48c8 (diff)
downloadexternal_webkit-2bde8e466a4451c7319e3a072d118917957d6554.zip
external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.gz
external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.bz2
Merge WebKit at r82507: Initial merge by git
Change-Id: I60ce9d780725b58b45e54165733a8ffee23b683e
Diffstat (limited to 'Tools/wx')
-rw-r--r--Tools/wx/build/settings.py30
-rw-r--r--Tools/wx/build/waf_extensions.py19
2 files changed, 31 insertions, 18 deletions
diff --git a/Tools/wx/build/settings.py b/Tools/wx/build/settings.py
index 2b757c4..6d7a7a5 100644
--- a/Tools/wx/build/settings.py
+++ b/Tools/wx/build/settings.py
@@ -186,7 +186,7 @@ os.environ['CREATE_HASH_TABLE'] = create_hash_table
feature_defines = ['ENABLE_DATABASE', 'ENABLE_XSLT', 'ENABLE_JAVASCRIPT_DEBUGGER',
'ENABLE_SVG', 'ENABLE_SVG_USE', 'ENABLE_FILTERS', 'ENABLE_SVG_FONTS',
'ENABLE_SVG_ANIMATION', 'ENABLE_SVG_AS_IMAGE', 'ENABLE_SVG_FOREIGN_OBJECT',
- 'ENABLE_JIT', 'BUILDING_%s' % build_port.upper()]
+ 'ENABLE_DOM_STORAGE', 'BUILDING_%s' % build_port.upper()]
msvc_version = 'msvc2008'
@@ -230,20 +230,8 @@ def common_configure(conf):
print "ERROR: You must use the Win32 Python from python.org, not Cygwin Python, when building on Windows."
sys.exit(1)
- if sys.platform.startswith('darwin') and build_port == 'wx':
- import platform
- if platform.release().startswith('10'): # Snow Leopard
- # wx currently only supports 32-bit compilation, so we want gcc-4.0 instead of 4.2 on Snow Leopard
- # unless the user has explicitly set a different compiler.
- if not "CC" in os.environ:
- conf.env['CC'] = 'gcc-4.0'
- if not "CXX" in os.environ:
- conf.env['CXX'] = 'g++-4.0'
conf.check_tool('compiler_cxx')
conf.check_tool('compiler_cc')
- if Options.options.wxpython:
- conf.check_tool('python')
- conf.check_python_headers()
if sys.platform.startswith('darwin'):
conf.check_tool('osx')
@@ -324,8 +312,6 @@ def common_configure(conf):
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"
@@ -341,10 +327,22 @@ def common_configure(conf):
conf.env.append_value('CPPFLAGS', sdkflags)
conf.env.append_value('LINKFLAGS', sdkflags)
-
+
+ conf.env.append_value('LINKFLAGS', ['-framework', 'Security'])
+
conf.env.append_value('CPPPATH_SQLITE3', [os.path.join(wklibs_dir, 'WebCoreSQLite3')])
conf.env.append_value('LIB_SQLITE3', ['WebCoreSQLite3'])
+ # NOTE: The order here is important, because python sets the MACOSX_DEPLOYMENT_TARGET to
+ # 10.3 even on intel. So we must first set the SDK and arch flags, then load Python's config,
+ # and finally override the value Python set for MACOSX_DEPLOYMENT_TARGET
+ if Options.options.wxpython:
+ conf.check_tool('python')
+ conf.check_python_headers()
+
+ if sys.platform.startswith('darwin'):
+ os.environ[mac_target] = conf.env[mac_target] = min_version
+
conf.env.append_value('CXXDEFINES', feature_defines)
if config == 'Release':
conf.env.append_value('CPPDEFINES', 'NDEBUG')
diff --git a/Tools/wx/build/waf_extensions.py b/Tools/wx/build/waf_extensions.py
index f50f264..4105bb1 100644
--- a/Tools/wx/build/waf_extensions.py
+++ b/Tools/wx/build/waf_extensions.py
@@ -40,10 +40,25 @@ def exec_command(s, **kw):
if i.find(" ") != -1:
i = '"%s"' % i
t.append(i)
- os.write(fd, ' '.join(t[1:]))
+
+ t1 = t[1:]
+ # Fix for LNK1170 error
+ filename_str = '@' + filename
+ filename2_str = None
+ if len(' '.join(s)) > 131070:
+ t2 = t[len(t) / 2:]
+ t1 = t[1:len(t) / 2]
+ (fd2, filename2) = tempfile.mkstemp()
+ os.write(fd2, ' '.join(t2))
+ os.close(fd2)
+ filename2_str = '@' + filename2
+ os.write(fd, ' '.join(t1))
os.close(fd)
- s = [s[0], '@' + filename]
+ s = [s[0]]
+ s.append(filename_str)
+ if filename2_str:
+ s.append(filename2_str)
if 'log' in kw:
kw['stdout'] = kw['stderr'] = kw['log']