diff options
author | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-08 22:07:27 +0000 |
---|---|---|
committer | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-08 22:07:27 +0000 |
commit | f8d434bd5be573b2954faa2ff4bfef37db6d194e (patch) | |
tree | 0de372e9941087b7f1c6df83f6d758182de1158d /webkit/SConscript.port | |
parent | b096b26c613aa283549fbdc67cbb8e47321d53bd (diff) | |
download | chromium_src-f8d434bd5be573b2954faa2ff4bfef37db6d194e.zip chromium_src-f8d434bd5be573b2954faa2ff4bfef37db6d194e.tar.gz chromium_src-f8d434bd5be573b2954faa2ff4bfef37db6d194e.tar.bz2 |
Update the SCons build for the WebKit merge:
* Update relevant file lists.
* Modify CPPPATH directory lists to mirror the VS build.
* Add new command-line defines.
* Remove an incorrect /css/ subdirectory from the generated CSS*.in paths
so the DAG properly hooks them up with the right source files.
* Change the idiom when we exclude files that just haven't been ported
yet: keep all the to-be-ported files on the global list, and explicitly
remove them on the necessary platforms. (This should make it a little
easier to verify that we have all the right files, and the config
change when porting a file will be to just delete the relevant line.)
* Comment the use of addRepository().
Review URL: http://codereview.chromium.org/6323
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3063 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/SConscript.port')
-rw-r--r-- | webkit/SConscript.port | 173 |
1 files changed, 123 insertions, 50 deletions
diff --git a/webkit/SConscript.port b/webkit/SConscript.port index bd4da3f..4b5702a 100644 --- a/webkit/SConscript.port +++ b/webkit/SConscript.port @@ -6,6 +6,8 @@ Import('env') env = env.Clone() +env.Append() + if env['PLATFORM'] == 'win32': env.Prepend( CCFLAGS = [ @@ -21,52 +23,113 @@ elif env['PLATFORM'] == 'posix': env.Append( # For the image readers and decoders: CXXFLAGS = "-Wno-sign-compare", + LIBS = 'libpng' ) input_files = [ - '$PORT_DIR/css/RGBColor.cpp', - '$PORT_DIR/history/BackForwardList.cpp', - '$PORT_DIR/history/CachedPage.cpp', - '$PORT_DIR/loader/IconLoader.cpp', - '$PORT_DIR/platform/Language.cpp', - '$PORT_DIR/platform/TemporaryLinkStubs.cpp', - '$PORT_DIR/platform/graphics/AffineTransformSkia.cpp', - '$PORT_DIR/platform/graphics/ImageSourceSkia.cpp', - '$PORT_DIR/platform/graphics/NativeImageSkia.cpp', - '$PORT_DIR/platform/graphics/PathSkia.cpp', - '$PORT_DIR/platform/graphics/SkPaintContext.cpp', - '$PORT_DIR/platform/graphics/svg/RenderPathSkia.cpp', - '$PORT_DIR/platform/graphics/svg/SVGPaintServerGradientSkia.cpp', - '$PORT_DIR/platform/graphics/svg/SVGPaintServerPatternSkia.cpp', - '$PORT_DIR/platform/graphics/svg/SVGPaintServerSkia.cpp', - '$PORT_DIR/platform/graphics/svg/SVGPaintServerSolidSkia.cpp', - '$PORT_DIR/platform/graphics/svg/SVGResourceClipperSkia.cpp', - '$PORT_DIR/platform/graphics/svg/SVGResourceFilterSkia.cpp', - '$PORT_DIR/platform/graphics/svg/SVGResourceMaskerSkia.cpp', - '$PORT_DIR/platform/graphics/svg/SkiaSupport.cpp', - '$PORT_DIR/platform/image-decoders/bmp/BMPImageDecoder.cpp', - '$PORT_DIR/platform/image-decoders/bmp/BMPImageReader.cpp', - '$PORT_DIR/platform/image-decoders/gif/GIFImageDecoder.cpp', - '$PORT_DIR/platform/image-decoders/gif/GIFImageReader.cpp', - '$PORT_DIR/platform/image-decoders/ico/ICOImageDecoder.cpp', - '$PORT_DIR/platform/image-decoders/jpeg/JPEGImageDecoder.cpp', - '$PORT_DIR/platform/image-decoders/png/PNGImageDecoder.cpp', - '$PORT_DIR/platform/image-decoders/xbm/XBMImageDecoder.cpp', + '$PORT_DIR/css/RGBColor.cpp', + + '$PORT_DIR/history/BackForwardList.cpp', + '$PORT_DIR/history/CachedPage.cpp', + + '$PORT_DIR/loader/IconLoader.cpp', + '$PORT_DIR/loader/IconDatabaseNone.cpp', + + '$PORT_DIR/page/Console.cpp', + '$PORT_DIR/page/Location.cpp', + '$PORT_DIR/page/Navigator.cpp', + + '$PORT_DIR/platform/BString.cpp', + '$PORT_DIR/platform/FramelessScrollView.cpp', + '$PORT_DIR/platform/GKURL.cpp', + '$PORT_DIR/platform/Language.cpp', + '$PORT_DIR/platform/TemporaryLinkStubs.cpp', + '$PORT_DIR/platform/UniscribeStateTextRun.cpp', + '$PORT_DIR/platform/WCDataObject.cpp', + + '$PORT_DIR/platform/graphics/AffineTransformSkia.cpp', + '$PORT_DIR/platform/graphics/ColorSkia.cpp', + '$PORT_DIR/platform/graphics/FloatPointSkia.cpp', + '$PORT_DIR/platform/graphics/FloatRectSkia.cpp', + '$PORT_DIR/platform/graphics/FontCustomPlatformData.cpp', + '$PORT_DIR/platform/graphics/GradientSkia.cpp', + '$PORT_DIR/platform/graphics/GraphicsContextPlatformPrivate.cpp', + '$PORT_DIR/platform/graphics/GraphicsContextSkia.cpp', + '$PORT_DIR/platform/graphics/ImageBufferSkia.cpp', + '$PORT_DIR/platform/graphics/ImageSkia.cpp', + '$PORT_DIR/platform/graphics/ImageSourceSkia.cpp', + '$PORT_DIR/platform/graphics/IntPointSkia.cpp', + '$PORT_DIR/platform/graphics/IntRectSkia.cpp', + '$PORT_DIR/platform/graphics/NativeImageSkia.cpp', + '$PORT_DIR/platform/graphics/PathSkia.cpp', + '$PORT_DIR/platform/graphics/PatternSkia.cpp', + '$PORT_DIR/platform/graphics/PlatformContextSkia.cpp', + '$PORT_DIR/platform/graphics/SkGraphicsContext.cpp', + '$PORT_DIR/platform/graphics/SkiaUtils.cpp', + '$PORT_DIR/platform/graphics/SkPaintContext.cpp', + + '$PORT_DIR/platform/graphics/svg/RenderPathSkia.cpp', + '$PORT_DIR/platform/graphics/svg/SkiaSupport.cpp', + '$PORT_DIR/platform/graphics/svg/SVGPaintServerGradientSkia.cpp', + '$PORT_DIR/platform/graphics/svg/SVGPaintServerPatternSkia.cpp', + '$PORT_DIR/platform/graphics/svg/SVGPaintServerSkia.cpp', + '$PORT_DIR/platform/graphics/svg/SVGPaintServerSolidSkia.cpp', + '$PORT_DIR/platform/graphics/svg/SVGResourceClipperSkia.cpp', + '$PORT_DIR/platform/graphics/svg/SVGResourceFilterSkia.cpp', + '$PORT_DIR/platform/graphics/svg/SVGResourceMaskerSkia.cpp', + + '$PORT_DIR/platform/image-decoders/bmp/BMPImageDecoder.cpp', + '$PORT_DIR/platform/image-decoders/bmp/BMPImageReader.cpp', + '$PORT_DIR/platform/image-decoders/gif/GIFImageDecoder.cpp', + #'$PENDING_DIR/GIFImageDecoder.cpp', + '$PORT_DIR/platform/image-decoders/gif/GIFImageReader.cpp', + '$PORT_DIR/platform/image-decoders/ico/ICOImageDecoder.cpp', + '$PORT_DIR/platform/image-decoders/jpeg/JPEGImageDecoder.cpp', + '$PORT_DIR/platform/image-decoders/png/PNGImageDecoder.cpp', + '$PORT_DIR/platform/image-decoders/xbm/XBMImageDecoder.cpp', + + '$PORT_DIR/platform/network/AuthenticationChallenge.cpp', + '$PORT_DIR/platform/network/DNS.cpp', + + '$PORT_DIR/plugins/PluginDataChromium.cpp', ] +if env['PLATFORM'] in ('posix', 'darwin'): + # Remove from the list files that haven't yet been made portable + # to Mac and Linux. + remove_files = [ + '$PORT_DIR/page/Console.cpp', + '$PORT_DIR/page/Location.cpp', + '$PORT_DIR/page/Navigator.cpp', + '$PORT_DIR/platform/BString.cpp', + '$PORT_DIR/platform/FramelessScrollView.cpp', + '$PORT_DIR/platform/GKURL.cpp', + '$PORT_DIR/platform/UniscribeStateTextRun.cpp', + '$PORT_DIR/platform/WCDataObject.cpp', + '$PORT_DIR/platform/graphics/FontCustomPlatformData.cpp', + '$PORT_DIR/platform/graphics/GraphicsContextSkia.cpp', + '$PORT_DIR/platform/graphics/ImageBufferSkia.cpp', + '$PORT_DIR/platform/graphics/ImageSkia.cpp', + '$PORT_DIR/platform/graphics/PlatformContextSkia.cpp', + '$PORT_DIR/platform/graphics/SkiaUtils.cpp', + '$PORT_DIR/platform/graphics/SkGraphicsContext.cpp', + '$PORT_DIR/platform/network/AuthenticationChallenge.cpp', + '$PORT_DIR/platform/network/DNS.cpp', + '$PORT_DIR/plugins/PluginDataChromium.cpp', + ] + for remove in remove_files: + input_files.remove(remove) + if env['PLATFORM'] == 'win32': - # These files aren't win32-specific, they're just files that haven't yet been - # made portable. + # These are win32 specific and will never be ported. input_files.extend([ '$PORT_DIR/bridge/FrameWin.cpp', - '$PORT_DIR/bridge/HistoryWin.cpp', '$PORT_DIR/bridge/PageWin.cpp', '$PORT_DIR/bridge/PluginsWin.cpp', - '$PORT_DIR/loader/IconDatabaseNone.cpp', + '$PORT_DIR/page/AccessibilityObjectWin.cpp', '$PORT_DIR/page/AXObjectCacheWin.cpp', '$PORT_DIR/page/DragControllerWin.cpp', '$PORT_DIR/page/EventHandlerWin.cpp', - '$PORT_DIR/platform/BString.cpp', '$PORT_DIR/platform/ClipboardUtilitiesWin.cpp', '$PORT_DIR/platform/ClipboardWin.cpp', '$PORT_DIR/platform/ContextMenuItemWin.cpp', @@ -76,8 +139,6 @@ if env['PLATFORM'] == 'win32': '$PORT_DIR/platform/DragImageWin.cpp', '$PORT_DIR/platform/EditorWin.cpp', '$PORT_DIR/platform/FileChooserWin.cpp', - '$PORT_DIR/platform/FramelessScrollView.cpp', - '$PORT_DIR/platform/GKURL.cpp', '$PORT_DIR/platform/KeyEventWin.cpp', '$PORT_DIR/platform/LogWin.cpp', '$PORT_DIR/platform/MimeTypeRegistryWin.cpp', @@ -94,34 +155,46 @@ if env['PLATFORM'] == 'win32': '$PORT_DIR/platform/SystemTimeWin.cpp', '$PORT_DIR/platform/TextBoundariesWin.cpp', '$PORT_DIR/platform/TextBreakIteratorInternalICUWin.cpp', - '$PORT_DIR/platform/UniscribeStateTextRun.cpp', - '$PORT_DIR/platform/WCDataObject.cpp', '$PORT_DIR/platform/WheelEventWin.cpp', '$PORT_DIR/platform/WidgetWin.cpp', '$PORT_DIR/platform/graphics/FontCacheWin.cpp', - '$PORT_DIR/platform/graphics/FontCustomPlatformData.cpp', '$PORT_DIR/platform/graphics/FontPlatformDataWin.cpp', '$PORT_DIR/platform/graphics/FontWin.cpp', '$PORT_DIR/platform/graphics/GlyphPageTreeNodeWin.cpp', - '$PORT_DIR/platform/graphics/GraphicsContextPrivate.cpp', - '$PORT_DIR/platform/graphics/GraphicsContextSkia.cpp', '$PORT_DIR/platform/graphics/IconWin.cpp', - '$PORT_DIR/platform/graphics/ImageBufferSkia.cpp', - '$PORT_DIR/platform/graphics/ImageSkia.cpp', - '$PORT_DIR/platform/graphics/PlatformContextSkia.cpp', + '$PORT_DIR/platform/graphics/IntPointWin.cpp', + '$PORT_DIR/platform/graphics/IntRectWin.cpp', + '$PORT_DIR/platform/graphics/IntSizeWin.cpp', '$PORT_DIR/platform/graphics/SimpleFontDataWin.cpp', - '$PORT_DIR/platform/graphics/SkiaUtils.cpp', - '$PORT_DIR/platform/graphics/SkGraphicsContext.cpp', '$PORT_DIR/platform/network/CookieJarWin.cpp', + '$PORT_DIR/platform/network/NetworkStateNotifierWin.cpp', '$PORT_DIR/rendering/RenderThemeWin.cpp', ]) -if env['PLATFORM'] == 'win32': - # These are extremely win32 specific and will never be ported. +if env['PLATFORM'] == 'darwin': input_files.extend([ - '$PORT_DIR/platform/graphics/IntPointWin.cpp', - '$PORT_DIR/platform/graphics/IntRectWin.cpp', - '$PORT_DIR/platform/graphics/IntSizeWin.cpp', + '$PORT_DIR/bridge/mac/FrameMac.mm', + '$PORT_DIR/page/EventHandlerMac.mm', + '$PORT_DIR/page/WebCoreFrameBridge.mm', + '$PORT_DIR/platform/GKURLMac.mm', + '$PORT_DIR/platform/PluginStubsMac.cpp', + '$PORT_DIR/platform/mac/ClipboardMac.mm', + '$PORT_DIR/platform/mac/DragDataMac.mm', + '$PORT_DIR/platform/mac/IntRectMac.mm', + '$PORT_DIR/platform/mac/PasteboardMac.mm', + '$PORT_DIR/platform/mac/ScrollViewMac.mm', + '$PORT_DIR/platform/graphics/mac/FontCacheMacPending.cpp', + '$PORT_DIR/rendering/RenderThemeMac.mm', + ]) + +if env.get('KJS'): + input_files.extend([ + '$PORT_DIR/bridge/ScriptControllerKJS.cpp', + ]) +else: + input_files.extend([ + '$PORT_DIR/bridge/ScriptControllerV8.cpp', + '$PORT_DIR/bridge/ExceptionContextV8.cpp', ]) env.ChromeStaticLibrary("port", input_files) |