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

Unified Diff: skia/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 | « sdch/SConscript ('k') | testing/SConscript.gtest » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/SConscript
===================================================================
--- skia/SConscript (revision 7247)
+++ skia/SConscript (working copy)
@@ -23,7 +23,7 @@
],
)
-if env['PLATFORM'] == 'win32':
+if env.Bit('windows'):
env.Append(
CCFLAGS = [
'/TP',
@@ -36,7 +36,7 @@
'/wd4800',
],
)
-elif env['PLATFORM'] in ('posix', 'darwin'):
+elif env.Bit('posix'):
env.Append(CCFLAGS = ['-Wno-unused'])
input_files = [
@@ -159,7 +159,7 @@
'sgl/SkXfermode.cpp',
]
-if env['PLATFORM'] == 'posix':
+if env.Bit('linux'):
input_files.append('ext/bitmap_platform_device_linux.cc')
input_files.append('ext/platform_canvas_linux.cc')
input_files.append('ext/platform_device_linux.cc')
@@ -176,15 +176,15 @@
env.Append(CCFLAGS = ['-Wno-unused-function'])
-if env['PLATFORM'] in ('darwin', 'posix'):
+if env.Bit('posix'):
input_files.append('ports/SkThread_pthread.cpp')
-if env['PLATFORM'] == 'darwin':
+if env.Bit('mac'):
input_files.append('ext/bitmap_platform_device_mac.cc')
input_files.append('ext/platform_canvas_mac.cc')
input_files.append('ext/platform_device_mac.cc')
-if env['PLATFORM'] == 'win32':
+if env.Bit('windows'):
input_files.append('ext/bitmap_platform_device_win.cc')
input_files.append('ext/platform_canvas_win.cc')
input_files.append('ext/platform_device_win.cc')
« no previous file with comments | « sdch/SConscript ('k') | testing/SConscript.gtest » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698