Bug 50861

Summary: [Qt][WK2] Make WebKit2 static library compile on Symbian
Product: WebKit Reporter: Siddharth Mathur <s.mathur>
Component: WebKit QtAssignee: Siddharth Mathur <s.mathur>
Status: RESOLVED WONTFIX    
Severity: Normal CC: abecsi, laszlo.gombos, ossy, webkit.review.bot
Priority: P2 Keywords: Qt
Version: 528+ (Nightly build)   
Hardware: S60 Hardware   
OS: S60 3rd edition   
Bug Depends on: 50866    
Bug Blocks: 50251    
Attachments:
Description Flags
Fix include ordering like WebCore.pro and disabling NPAPI support for now
none
Fixed patch with no WK2_DIR
laszlo.gombos: review-
use Netscape plugin feature flag none

Description Siddharth Mathur 2010-12-10 19:24:55 PST
Mods to WebKit.pro to make the static lib compile on Symbian. 
For now, Netscape plugin features are turned off
Comment 1 Siddharth Mathur 2010-12-10 19:53:07 PST
Created attachment 76291 [details]
Fix include ordering like WebCore.pro and disabling NPAPI support for now
Comment 2 Eric Seidel (no email) 2010-12-10 20:41:43 PST
Comment on attachment 76291 [details]
Fix include ordering like WebCore.pro and disabling NPAPI support for now

OK.
Comment 3 WebKit Review Bot 2010-12-10 20:59:15 PST
Comment on attachment 76291 [details]
Fix include ordering like WebCore.pro and disabling NPAPI support for now

Clearing flags on attachment: 76291

Committed r73834: <http://trac.webkit.org/changeset/73834>
Comment 4 WebKit Review Bot 2010-12-10 20:59:20 PST
All reviewed patches have been landed.  Closing bug.
Comment 5 Csaba Osztrogonác 2010-12-11 01:44:59 PST
Reopen, because it was rolled out by http://trac.webkit.org/changeset/73847
Comment 6 Siddharth Mathur 2010-12-13 07:57:08 PST
Created attachment 76385 [details]
Fixed patch with no WK2_DIR
Comment 7 Siddharth Mathur 2010-12-13 08:00:17 PST
Comment on attachment 76385 [details]
Fixed patch with no WK2_DIR

Sorry about the build bust with the previous patch.
Comment 8 Csaba Osztrogonác 2010-12-13 09:56:23 PST
Comment on attachment 76385 [details]
Fixed patch with no WK2_DIR

View in context: https://bugs.webkit.org/attachment.cgi?id=76385&action=review

Non symbian case looks good to me.

> WebKit2/WebKit2.pro:641
> +    !symbian: {
> +            # TODO: Resolve compiler errors with NPEvent/QEvents on Symbian
> +            INCLUDEPATH += WebProcess/Plugins/Netscape
> +            HEADERS += \
> +                WebProcess/Plugins/Netscape/NetscapePlugin.h \
> +                WebProcess/Plugins/Netscape/NetscapePluginModule.h \
> +                WebProcess/Plugins/Netscape/NetscapePluginStream.h
> +
> +            SOURCES += \
> +                WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp \
> +                WebProcess/Plugins/Netscape/NetscapePlugin.cpp \
> +                WebProcess/Plugins/Netscape/NetscapePluginModule.cpp \
> +                WebProcess/Plugins/Netscape/NetscapePluginStream.cpp \
> +                WebProcess/Plugins/Netscape/qt/NetscapePluginQt.cpp
> +        }
>  

"!symbian: {" should be on the beginning of the line
Comment 9 Csaba Osztrogonác 2010-12-13 09:59:46 PST
Laszlo, could you review the symbian case?
Comment 10 Laszlo Gombos 2010-12-13 12:36:46 PST
Comment on attachment 76385 [details]
Fixed patch with no WK2_DIR

View in context: https://bugs.webkit.org/attachment.cgi?id=76385&action=review

r- because of the unnecessary symbian guards and the expected maintenance burden. Perhaps we should restrict this bug only to enable WebKit2 builds to build without NPAPI support for the Qt port.

> WebKit2/WebKit2.pro:26
> +!symbian {

In general we should aim to minimize the symbian guards to keep the build system manageable. I do not think this guard is essential - we have a similar section in WebCore.pro without symbian guards. Is this section fixing something ?

> WebKit2/WebKit2.pro:38
> +    MMP_RULES += "USERINCLUDE ../WebCore/bridge"

There is a way around this problem by using the PREPEND_INCLUDEPATH variable. r65877 is an example of how this was resolved for WebCore.pro earlier. 
I think we should either follow the WebCore.pro solution here as well or we should delay addressing this problem after we got rid of the WebKit2 static library; in fact the problem might go away after we got rid of WebKit2 library.

> WebKit2/WebKit2.pro:626
> +    !symbian: {

Let's re-use the "contains(DEFINES, ENABLE_NETSCAPE_PLUGIN_API=1)" guard here the same way as we have in WebCore.pro; this makes the configuration available on all QtWebKit ports and enables us to control this feature build time without changing the source code (e.g. from build-webkit).
Comment 11 Siddharth Mathur 2010-12-13 13:45:44 PST
Created attachment 76428 [details]
use Netscape plugin feature flag
Comment 12 Siddharth Mathur 2010-12-13 14:47:43 PST
On second thoughts, this patch isn't need if we add all WK2 files to WebCore.pro, which is what is needed for symbols to be exported correctly on Symbian/RVCT and probably Windows.