[webkit-qt] WebKit2, PluginProcess and LightHouse

keith.kyzivat at nokia.com keith.kyzivat at nokia.com
Mon Aug 8 11:28:12 PDT 2011


Right now you should be able to achieve a Qt Lighthouse webkit build by doing the following, without any code changes:
Tools/Scripts/build-webkit --makeargs=\"-j4\" DEFINES+=PLUGIN_ARCHITECTURE_UNSUPPORTED=1 DEFINES+=ENABLE_NETSCAPE_PLUGIN_API=0

________________________________________
From: webkit-qt-bounces at lists.webkit.org [webkit-qt-bounces at lists.webkit.org] on behalf of ext Holger Freyther [zecke at selfish.org]
Sent: Sunday, August 07, 2011 8:19 PM
To: webkit-qt at lists.webkit.org
Subject: Re: [webkit-qt] WebKit2, PluginProcess and LightHouse

 <simon.hausmann <at> nokia.com> writes:

>
>
>
> Currently the plugin architecture (npapi details) is defined by the platform
(x11, win, mac). I don't think we should aim for different plugin host processes
based on the available lighthouse backends.

I just ask for things to compile and properly fail (e.g. disabling
plugins).

Today: To fix build of WebKit2 for Qt/E I do:

diff --git a/Source/WebKit2/config.h b/Source/WebKit2/config.h
index 39ec8d9..68d5430 100644
--- a/Source/WebKit2/config.h
+++ b/Source/WebKit2/config.h
@@ -146,7 +146,13 @@ static const type& name() \
 #define PLUGIN_ARCHITECTURE_MAC 1
 #elif PLATFORM(WIN)
 #define PLUGIN_ARCHITECTURE_WIN 1
-#elif (PLATFORM(QT) || (PLATFORM(GTK))) && (OS(UNIX) && !OS(MAC_OS_X))
+#elif PLATFORM(QT)
+ #if defined(Q_WS_X11)
+  #define PLUGIN_ARCHITECTURE_X11 1
+ #else
+  #define PLUGIN_ARCHITECTURE_UNSUPPORTED 1
+ #endif
+#elif PLATFORM(GTK) && (OS(UNIX) && !OS(MAC_OS_X))
 #define PLUGIN_ARCHITECTURE_X11 1
 #else
 #define PLUGIN_ARCHITECTURE_UNSUPPORTED 1


Future:
  Q_WS_ will not be there anymore, OS(UNIX) is a bad indication
  to see if X11 headers are installed. Do we need to add detection
  for X11 headers to our buildprocess then?

  To me it looks like the PLUGIN_ARCHITECTURE check needs to become
  a runtime check, because only at runtime we know if we are running
  on Xlib/Xcb or on something like Wayland? How do we detect the
  used QPA platform at runtime?




_______________________________________________
webkit-qt mailing list
webkit-qt at lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt


More information about the webkit-qt mailing list