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

Unified Diff: webkit/glue/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/default_plugin/SConscript ('k') | webkit/glue/plugins/test/SConscript » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/SConscript
===================================================================
--- webkit/glue/SConscript (revision 7247)
+++ webkit/glue/SConscript (working copy)
@@ -12,7 +12,7 @@
]
)
-if env['PLATFORM'] == 'win32':
+if env.Bit('windows'):
env.Append(
CCFLAGS = [
'/TP',
@@ -79,7 +79,7 @@
'webview_impl.cc',
]
-if env['PLATFORM'] == 'posix':
+if env.Bit('linux'):
# TODO(port): until we have plugin support for Linux, these files aren't
# built.
remove_files = [
@@ -92,7 +92,7 @@
for file in remove_files:
input_files.remove(file)
-if env['PLATFORM'] == 'win32':
+if env.Bit('windows'):
# TODO(port): These extra files aren't win32-specific, they've just not been
# tested on other platforms yet.
input_files.extend([
@@ -106,25 +106,25 @@
'webdropdata.cc',
])
-if env['PLATFORM'] == 'win32':
+if env.Bit('windows'):
input_files.extend([
'plugins/plugin_stream_win.cc',
'webcursor_win.cc',
'webinputevent_win.cc',
'webkit_glue_win.cc',
])
-elif env['PLATFORM'] == 'posix':
+elif env.Bit('linux'):
input_files.extend([
'webcursor_gtk.cc',
'webinputevent_linux.cc',
'webkit_glue_gtk.cc',
])
-elif env['PLATFORM'] == 'darwin':
+elif env.Bit('mac'):
input_files.extend([
'webcursor_mac.mm',
])
-if env['PLATFORM'] in ('posix', 'darwin'):
+if env.Bit('posix'):
input_files.extend([
'plugins/plugin_stream_posix.cc',
])
« no previous file with comments | « webkit/default_plugin/SConscript ('k') | webkit/glue/plugins/test/SConscript » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698