Bug 50861 - [Qt][WK2] Make WebKit2 static library compile on Symbian
Summary: [Qt][WK2] Make WebKit2 static library compile on Symbian
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: S60 Hardware S60 3rd edition
: P2 Normal
Assignee: Siddharth Mathur
URL:
Keywords: Qt
Depends on: 50866
Blocks: 50251
  Show dependency treegraph
 
Reported: 2010-12-10 19:24 PST by Siddharth Mathur
Modified: 2010-12-15 11:33 PST (History)
4 users (show)

See Also:


Attachments
Fix include ordering like WebCore.pro and disabling NPAPI support for now (3.49 KB, patch)
2010-12-10 19:53 PST, Siddharth Mathur
no flags Details | Formatted Diff | Diff
Fixed patch with no WK2_DIR (3.48 KB, patch)
2010-12-13 07:57 PST, Siddharth Mathur
laszlo.gombos: review-
Details | Formatted Diff | Diff
use Netscape plugin feature flag (2.76 KB, patch)
2010-12-13 13:45 PST, Siddharth Mathur
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.