[wx] Build fixes for recent changes.
[WebKit-https.git] / wscript
diff --git a/wscript b/wscript
index 54d207f2c192c6ca61b16f5e7ae6cc6ad6f7866e..8942d1388ea59833e0be0bd9785ceb7c2896afce 100644 (file)
--- a/wscript
+++ b/wscript
@@ -48,6 +48,7 @@ if build_port == "wx":
 
 if sys.platform.startswith("win"):
     wk_includes.append(os.path.join(wk_root, 'WebCore','platform','win'))
+    wk_includes.append(os.path.join(wk_root, 'WebCore','platform','graphics','win'))
 
 windows_deps = [
                 'lib/pthreadVC2.dll',
@@ -68,8 +69,7 @@ if build_port == "wx":
         webcore_sources['wx-win'] = [
                'WebCore/platform/graphics/win/GlyphPageTreeNodeCairoWin.cpp',
                'WebCore/platform/graphics/win/TransformationMatrixWin.cpp',
-               'WebCore/platform/win/ScrollAnimatorWin.cpp',
-               'WebCore/platform/win/ScrollAnimatorWin.h',
+               'WebCore/platform/ScrollAnimatorWin.cpp',
                # wxTimer on Windows has a bug that causes it to eat crashes in callbacks
                # so we need to use the Win port's implementation until the wx bug fix is
                # widely available (it was fixed in 2.8.10).
@@ -201,7 +201,7 @@ def build(bld):
     features = [build_port]
     exclude_patterns = ['*AllInOne.cpp', '*Brew.cpp', '*CFNet.cpp', '*Chromium*.cpp', 
             '*Efl.cpp', '*Gtk.cpp', '*Haiku.cpp', '*Mac.cpp', '*None.cpp', '*Qt.cpp', '*Safari.cpp',
-            'test*bindings.*', '*Wince.cpp', "WebDOMCanvas*.cpp", "WebDOMSVG*.cpp"]
+            'test*bindings.*', '*WinCE.cpp', "WebDOMCanvas*.cpp", "WebDOMSVG*.cpp"]
     if build_port == 'wx':
         features.append('curl')
         exclude_patterns.append('*Win.cpp')
@@ -259,6 +259,9 @@ def build(bld):
         excludes.append('HTMLEntityNames.cpp')
         excludes.append('tokenizer.cpp')
 
+        # Qt specific file in common sources
+        excludes.append('ContextShadow.cpp')
+
         # FIXME: these three require headers that I can't seem to find in trunk.
         # Investigate how to resolve these issues.
         excludes.append('JSAbstractView.cpp')
@@ -310,9 +313,18 @@ def build(bld):
             webcore.includes += ' WebKit/mac/WebCoreSupport WebCore/platform/mac'
             webcore.source += " WebKit/mac/WebCoreSupport/WebSystemInterface.mm"
             
+        if building_on_win32:
+            for wxlib in bld.env['LIB_WX']:
+                wxlibname = os.path.join(bld.env['LIBPATH_WX'][0], wxlib + '_vc.dll')
+                if os.path.exists(wxlibname):
+                    bld.install_files(obj.install_path, [wxlibname])
+        
+            for dep in windows_deps:
+                bld.install_files(obj.install_path, [os.path.join(msvclibs_dir, dep)])
+
     webcore.find_sources_in_dirs(full_dirs, excludes = excludes, exts=['.c', '.cpp'])
 
     bld.add_group()
     
-    if build_port == "wx":
+    if build_port == "wx":    
         bld.add_subdirs(['WebKitTools/DumpRenderTree', 'WebKitTools/wx/browser', 'WebKit/wx/bindings/python'])