Build Webkit with Waylnad backend and wayland plugins

suranjana.bhattacharya at wipro.com suranjana.bhattacharya at wipro.com
Thu May 31 06:56:04 PDT 2012


Hello, 

Thanks for the help!
I am making changes in the PluginViewGtk.cpp file to add conditional checking for "GDK_WINDOWING_X11" and "GDK_WINDOWING_WAYLAND" on the macros which is directly calling X11 macros, like.

        #ifdef GDK_WINDOWING_X11
        Display* display = GDK_DISPLAY_XDISPLAY(gdk_display_get_default());
        #endif 
	#ifdef GDK_WINDOWING_WAYLAND
	Display* display = GDK_DISPLAY_WAYLAND(gdk_display_get_default());
	#endif 
 But I am unable to understand following things.
1. Whether gtk2xtbin.h needs to be included? I guess this is using X11 library calls. So to moveto wayland this may not require.
2. There is a Macro "GDK_WINDOW_XWINDOW". For this I have not seen any equivalent macro in wayland .
3. Is there any other file than "PluginViewGtk.cpp" where I may need to change for Wayland plugin?

 

Regards,
Suranjana
________________________________________
From: Mika Boström [mika.bostrom at nomovok.com]
Sent: Thursday, May 31, 2012 5:42 PM
To: Suranjana Bhattacharya (WT01 - Manufacturing & Hi Tech)
Cc: wayland-devel at lists.freedesktop.org
Subject: Re: Build Webkit with Waylnad backend and wayland plugins

On 05/31/12 14:43, suranjana.bhattacharya at wipro.com wrote:
> Hello, I am trying to build webkit 1.8.0 with Wayland backend .
> Following are the configuration I am working with.
>
> 1. Wayland : 0.85
> 2. Webkit : 1.8.0
> 3. gtk +-3.4
>
> I found that webkit is using gtk plugins which is internally
> referring  X11 macro. Can anyone help me which are the files I need
> to look to remove  X11 plugin dependencies from webkit and build it
> with Wayland backend

I've done that once, for an earlier gtkwebkit version. (Can't release
code, as it was done for a client.) You may want to check
https://bugs.webkit.org/show_bug.cgi?id=81456 for some hints I provided
for Darxus.

So you'll need to change the autoconf/automake files a bit, use the
dummy NPAPI implementation and check that all uses of plugins behave
properly.

You'll probably also need to see whether PlatformScreenGtk.cpp works
properly with the modified build flags. It used to call gdk_x11_FOO()
for me. Could be fixed in 1.8.0 but haven't looked recently.

--
 Mika Boström / mika.bostrom at nomovok.com
 Software Architect

Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com


More information about the wayland-devel mailing list