summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-22 01:19:35 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-22 01:19:35 +0000
commitc736303377d5fc8f086cd9d2e8e373aa69a246ce (patch)
treee54416444aefdfe7e991e83bfa3181552e214aa1 /webkit
parent4f1af28c58778a2d8d1ed334ed47518d93c31ce5 (diff)
downloadchromium_src-c736303377d5fc8f086cd9d2e8e373aa69a246ce.zip
chromium_src-c736303377d5fc8f086cd9d2e8e373aa69a246ce.tar.gz
chromium_src-c736303377d5fc8f086cd9d2e8e373aa69a246ce.tar.bz2
Move Platform{Canvase,Device}Mac.cpp from the Mac remove-from-input
list (for things to be ported) to the add-to-input file list. These ended up on the wrong list because we had really confusing logic down at the bottom of SConscript.port, with multiple lists and redundant conditional checks. So refactor the bottom to collect all platform-specific logic behind single checks for the platform, rearrange and rename lists to (hopefully) make it easier to identify what goes where, and add comments. Review URL: http://codereview.chromium.org/11361 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5889 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/SConscript.port72
1 files changed, 34 insertions, 38 deletions
diff --git a/webkit/SConscript.port b/webkit/SConscript.port
index f7421ca..5fecb65 100644
--- a/webkit/SConscript.port
+++ b/webkit/SConscript.port
@@ -115,45 +115,14 @@ input_files = [
'$PORT_DIR/plugins/chromium/PluginDataChromium.cpp',
]
-if env['PLATFORM'] == 'posix':
- # Remove from the list files that haven't yet been made portable to Linux.
- remove_files = [
- '$PORT_DIR/platform/graphics/FontCustomPlatformData.cpp',
- ]
- for remove in remove_files:
- input_files.remove(remove)
-
- # Linux specific implementations
- input_files.extend([
- '$PORT_DIR/platform/chromium/IconLinux.cpp',
- '$PORT_DIR/platform/chromium/ScrollbarThemeChromiumLinux.cpp',
- '$PORT_DIR/platform/graphics/chromium/GlyphPageTreeNodeLinux.cpp',
- '$PORT_DIR/platform/graphics/skia/GdkSkia.cc',
- ])
-
-if env['PLATFORM'] == 'darwin':
- # Remove from the list files that haven't yet been made portable to Mac.
- remove_files = [
- '$PORT_DIR/page/chromium/AXObjectCacheChromium.cpp',
- '$PORT_DIR/page/chromium/EventHandlerChromium.cpp',
- '$PORT_DIR/platform/chromium/CursorChromium.cpp',
- '$PORT_DIR/platform/chromium/DragDataChromium.cpp',
- '$PORT_DIR/platform/chromium/PopupMenuChromium.cpp',
- '$PORT_DIR/platform/chromium/WidgetChromium.cpp',
- '$PORT_DIR/platform/chromium/ScrollbarThemeChromium.cpp',
- '$PORT_DIR/platform/graphics/FontCustomPlatformData.cpp',
- '$PORT_DIR/platform/graphics/ImageSkia.cpp',
- ]
- for remove in remove_files:
- input_files.remove(remove)
-
if env['PLATFORM'] == 'win32':
- # These are win32 specific and will never be ported.
+ # Windows specific implementations.
input_files.extend([
'$PORT_DIR/platform/chromium/FileSystemChromiumWin.cpp',
'$PORT_DIR/platform/chromium/ScrollBarThemeChromiumWin.cpp',
'$PORT_DIR/platform/win/BString.cpp',
'$PORT_DIR/platform/win/SoundWin.cpp',
+
'$PORT_DIR/platform/graphics/FontCacheWin.cpp',
'$PORT_DIR/platform/graphics/FontPlatformDataWin.cpp',
'$PORT_DIR/platform/graphics/FontUtilsWin.cpp',
@@ -169,19 +138,33 @@ if env['PLATFORM'] == 'win32':
])
if env['PLATFORM'] == 'posix':
+ # Linux specific implementations.
input_files.extend([
'$PORT_DIR/platform/chromium/FileSystemPosix.cpp',
- '$PORT_DIR/platform/chromium/SoundPosix.cpp',
+ '$PORT_DIR/platform/chromium/gtk2drawing.c',
+ '$PORT_DIR/platform/chromium/IconLinux.cpp',
'$PORT_DIR/platform/chromium/KeyCodeConversionGtk.cpp',
- '$PORT_DIR/platform/graphics/chromium/FontLinux.cpp',
+ '$PORT_DIR/platform/chromium/RenderThemeGtk.cpp',
+ '$PORT_DIR/platform/chromium/ScrollbarThemeChromiumLinux.cpp',
+ '$PORT_DIR/platform/chromium/SoundPosix.cpp',
+
'$PORT_DIR/platform/graphics/chromium/FontCacheLinux.cpp',
+ '$PORT_DIR/platform/graphics/chromium/FontLinux.cpp',
'$PORT_DIR/platform/graphics/chromium/FontPlatformDataLinux.cpp',
+ '$PORT_DIR/platform/graphics/chromium/GlyphPageTreeNodeLinux.cpp',
'$PORT_DIR/platform/graphics/chromium/SimpleFontDataLinux.cpp',
- '$PORT_DIR/platform/chromium/gtk2drawing.c',
- '$PORT_DIR/platform/chromium/RenderThemeGtk.cpp'
+
+ '$PORT_DIR/platform/graphics/skia/GdkSkia.cc',
])
+ # Remove from the list files that haven't yet been made portable to Linux.
+ to_be_ported_files = [
+ '$PORT_DIR/platform/graphics/FontCustomPlatformData.cpp',
+ ]
+ input_files = list(set(input_files) - set(to_be_ported_files))
+
if env['PLATFORM'] == 'darwin':
+ # Mac specific implementations.
input_files.extend([
'$PORT_DIR/bridge/mac/FrameMac.mm',
'$PORT_DIR/page/EventHandlerMac.mm',
@@ -190,11 +173,24 @@ if env['PLATFORM'] == 'darwin':
'$PORT_DIR/platform/PluginStubsMac.cpp',
'$PORT_DIR/platform/mac/DragDataMac.mm',
'$PORT_DIR/platform/mac/IntRectMac.mm',
- '$PORT_DIR/platform/mac/ScrollViewMac.mm',
'$PORT_DIR/platform/graphics/mac/FontCacheMacPending.cpp',
'$PORT_DIR/rendering/RenderThemeMac.mm',
])
+ # Remove from the list files that haven't yet been made portable to Mac.
+ to_be_ported_files = [
+ '$PORT_DIR/page/chromium/AXObjectCacheChromium.cpp',
+ '$PORT_DIR/page/chromium/EventHandlerChromium.cpp',
+ '$PORT_DIR/platform/chromium/CursorChromium.cpp',
+ '$PORT_DIR/platform/chromium/DragDataChromium.cpp',
+ '$PORT_DIR/platform/chromium/PopupMenuChromium.cpp',
+ '$PORT_DIR/platform/chromium/WidgetChromium.cpp',
+ '$PORT_DIR/platform/chromium/ScrollbarThemeChromium.cpp',
+ '$PORT_DIR/platform/graphics/FontCustomPlatformData.cpp',
+ '$PORT_DIR/platform/graphics/ImageSkia.cpp',
+ ]
+ input_files = list(set(input_files) - set(to_be_ported_files))
+
if env.get('KJS'):
input_files.extend([
'$PORT_DIR/bridge/KJSBridge.cpp',