Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: webkit/SConscript

Issue 15051: Convert from using env['PLATFORM'] directly to using the more flexible... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/zlib/zlib.scons ('k') | webkit/SConscript.javascriptcore_pcre » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import os 5 import os
6 6
7 Import(['env']) 7 Import(['env'])
8 8
9 env = env.Clone() 9 env = env.Clone()
10 env_res = env.Clone() 10 env_res = env.Clone()
(...skipping 22 matching lines...) Expand all
33 # addRepository() for the entire $OBJ_ROOT tree, that adds an 33 # addRepository() for the entire $OBJ_ROOT tree, that adds an
34 # extra -I or -L option for the webkit/port/ subdirectory, after the 34 # extra -I or -L option for the webkit/port/ subdirectory, after the
35 # third_party/WebKit/WebCore/ in the above list. We'd like to 35 # third_party/WebKit/WebCore/ in the above list. We'd like to
36 # eliminate that in the future, but that will require some 36 # eliminate that in the future, but that will require some
37 # deeper magic, and maybe a SCons modification.) 37 # deeper magic, and maybe a SCons modification.)
38 38
39 port_dir = env.Dir('$WEBKIT_DIR/port') 39 port_dir = env.Dir('$WEBKIT_DIR/port')
40 port_dir.addRepository(env.Dir('$CHROME_SRC_DIR/webkit/port')) 40 port_dir.addRepository(env.Dir('$CHROME_SRC_DIR/webkit/port'))
41 port_dir.addRepository(env.Dir('$CHROME_SRC_DIR/third_party/WebKit/WebCore')) 41 port_dir.addRepository(env.Dir('$CHROME_SRC_DIR/third_party/WebKit/WebCore'))
42 42
43 if env['PLATFORM'] == 'win32': 43 if env.Bit('windows'):
44 env['WEBKIT_PLATFORM_SUBDIR'] = 'win' 44 env['WEBKIT_PLATFORM_SUBDIR'] = 'win'
45 elif env['PLATFORM'] == 'darwin': 45 elif env.Bit('mac'):
46 env['WEBKIT_PLATFORM_SUBDIR'] = 'mac' 46 env['WEBKIT_PLATFORM_SUBDIR'] = 'mac'
47 env.Append( 47 env.Append(
48 CCFLAGS = [ 48 CCFLAGS = [
49 '-Wno-reorder', 49 '-Wno-reorder',
50 '-Wno-unused', 50 '-Wno-unused',
51 ], 51 ],
52 ) 52 )
53 env.Prepend( 53 env.Prepend(
54 CPPPATH = [env.subst(x) for x in [ 54 CPPPATH = [env.subst(x) for x in [
55 '$CHROME_SRC_DIR/third_party/WebKit/WebCore/platform/graphics/cg', 55 '$CHROME_SRC_DIR/third_party/WebKit/WebCore/platform/graphics/cg',
56 '$CHROME_SRC_DIR/third_party/WebKit/WebCore/loader/archive/cf', 56 '$CHROME_SRC_DIR/third_party/WebKit/WebCore/loader/archive/cf',
57 ]] 57 ]]
58 ) 58 )
59 elif env['PLATFORM'] == 'posix': 59 elif env.Bit('linux'):
60 env.Append( 60 env.Append(
61 CPPDEFINES = [ 61 CPPDEFINES = [
62 # We want webkit to use pthreads rather than gthread. 62 # We want webkit to use pthreads rather than gthread.
63 'WTF_USE_PTHREADS=1', 63 'WTF_USE_PTHREADS=1',
64 ], 64 ],
65 ) 65 )
66 66
67 if env['PLATFORM'] in ('darwin', 'posix'): 67 if env.Bit('posix'):
68 env.Append( 68 env.Append(
69 CCFLAGS = [ 69 CCFLAGS = [
70 '-Wno-parentheses', 70 '-Wno-parentheses',
71 ], 71 ],
72 ) 72 )
73 73
74 env.Append( 74 env.Append(
75 WEBCORE_DIR = '$THIRD_PARTY_WEBKIT_DIR/WebCore', 75 WEBCORE_DIR = '$THIRD_PARTY_WEBKIT_DIR/WebCore',
76 PENDING_DIR = "$WEBKIT_DIR/pending", 76 PENDING_DIR = "$WEBKIT_DIR/pending",
77 PORT_DIR = "$WEBKIT_DIR/port", 77 PORT_DIR = "$WEBKIT_DIR/port",
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 bindings = 'build/port/SConscript', 227 bindings = 'build/port/SConscript',
228 V8Bindings = 'build/V8Bindings/SConscript', 228 V8Bindings = 'build/V8Bindings/SConscript',
229 WebCore = 'build/WebCore/SConscript', 229 WebCore = 'build/WebCore/SConscript',
230 default_plugin = 'default_plugin/SConscript', 230 default_plugin = 'default_plugin/SConscript',
231 glue = 'glue/SConscript', 231 glue = 'glue/SConscript',
232 npapi_test_plugin = 'glue/plugins/test/SConscript', 232 npapi_test_plugin = 'glue/plugins/test/SConscript',
233 npapi_layout_test_plugin = 'tools/npapi_layout_test_plugin/SConscript', 233 npapi_layout_test_plugin = 'tools/npapi_layout_test_plugin/SConscript',
234 test_shell = 'tools/test_shell/SConscript', 234 test_shell = 'tools/test_shell/SConscript',
235 ) 235 )
236 236
237 if env['PLATFORM'] == 'win32': 237 if env.Bit('windows'):
238 # These extra dirs aren't win32-specific, they're just the dirs that 238 # These extra dirs aren't win32-specific, they're just the dirs that
239 # haven't yet been made portable. 239 # haven't yet been made portable.
240 sconscript_dirs.extend(env.ChromiumLoadComponentSConscripts( 240 sconscript_dirs.extend(env.ChromiumLoadComponentSConscripts(
241 LOAD_NAMES = ['webkit'], 241 LOAD_NAMES = ['webkit'],
242 activex_shim = 'activex_shim/SConscript', 242 activex_shim = 'activex_shim/SConscript',
243 npaxshim = 'activex_shim_dll/SConscript', 243 npaxshim = 'activex_shim_dll/SConscript',
244 )) 244 ))
245 245
246 env.Append( 246 env.Append(
247 CPPDEFINES = [ 247 CPPDEFINES = [
(...skipping 17 matching lines...) Expand all
265 265
266 env.SConscript(sconscript_dirs, exports=['env', 'env_res']) 266 env.SConscript(sconscript_dirs, exports=['env', 'env_res'])
267 267
268 # Setup alias for all webkit related targets. 268 # Setup alias for all webkit related targets.
269 # We'd like to do this as follows, but it leads to out-of-memory 269 # We'd like to do this as follows, but it leads to out-of-memory
270 # errors when SCons tries to use the entire contents of the 270 # errors when SCons tries to use the entire contents of the
271 # directory tree as a huge content-signature string. 271 # directory tree as a huge content-signature string.
272 # Instead we're going to let all the subsidiary SConscript files 272 # Instead we're going to let all the subsidiary SConscript files
273 # add their own individual targets to the 'webkit' Alias. 273 # add their own individual targets to the 'webkit' Alias.
274 #env.Alias('webkit', ['.', '$DESTINATION_ROOT/icudt38.dll']) 274 #env.Alias('webkit', ['.', '$DESTINATION_ROOT/icudt38.dll'])
275 if env['PLATFORM'] == 'win32': 275 if env.Bit('windows'):
276 env.Alias('webkit', ['$DESTINATION_ROOT/icudt38.dll']) 276 env.Alias('webkit', ['$DESTINATION_ROOT/icudt38.dll'])
277 277
278 version = env.Command('$WEBKIT_DIR/build/WebCore/webkit_version.h', 278 version = env.Command('$WEBKIT_DIR/build/WebCore/webkit_version.h',
279 ['$WEBCORE_DIR/Configurations/Version.xcconfig', 279 ['$WEBCORE_DIR/Configurations/Version.xcconfig',
280 '$CHROME_SRC_DIR/webkit/build/webkit_version.py'], 280 '$CHROME_SRC_DIR/webkit/build/webkit_version.py'],
281 "$PYTHON ${SOURCES[1]} ${SOURCES[0]} ${TARGET.dir}") 281 "$PYTHON ${SOURCES[1]} ${SOURCES[0]} ${TARGET.dir}")
282 env.AlwaysBuild(version) 282 env.AlwaysBuild(version)
OLDNEW
« no previous file with comments | « third_party/zlib/zlib.scons ('k') | webkit/SConscript.javascriptcore_pcre » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698