Bug 191401 - Add USE(LIBWPE) to WebCore
Summary: Add USE(LIBWPE) to WebCore
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Don Olmstead
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-11-07 15:18 PST by Don Olmstead
Modified: 2018-11-16 08:40 PST (History)
6 users (show)

See Also:


Attachments
Patch (9.54 KB, patch)
2018-11-07 15:21 PST, Don Olmstead
no flags Details | Formatted Diff | Diff
Patch (22.24 KB, patch)
2018-11-15 18:10 PST, Don Olmstead
no flags Details | Formatted Diff | Diff
Patch (22.24 KB, patch)
2018-11-15 18:14 PST, Don Olmstead
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Don Olmstead 2018-11-07 15:18:28 PST
The PlayStation port is planning on having a libwpe implementation but has no plans to use glib.

PLATFORM(WPE) = USE(LIBWPE) + USE(GLIB)
PLATFORM(PLAYSTATION) = USE(LIBWPE)

This will migrate all usage of wpe_* functions to be USE(LIBWPE) rather than PLATFORM(WPE).
Comment 1 Don Olmstead 2018-11-07 15:21:39 PST
Created attachment 354166 [details]
Patch
Comment 2 Adrian Perez 2018-11-07 23:32:14 PST
Comment on attachment 354166 [details]
Patch

Reviewing informally... patch looks good to me. Probably it is
a good idea that Žan rubber-stamps this before landing, tho :)
Comment 3 Michael Catanzaro 2018-11-08 06:49:37 PST
Comment on attachment 354166 [details]
Patch

My only concern is that this is going to introduce some confusion. We're going to be tempted to use GLib in WPE files that can now no longer depend on GLib. So a couple suggestions:

 * Rename GLContextEGLWPE.cpp to GLContextEGLLibwpe.cpp as a reminder that it's now used on non-WPE platforms.
 * Rename PlatformDisplayWPE.cpp to PlatformDisplayLibwpe.cpp for the same reason, and rename the class PlatformDisplayWPE to PlatformDisplayLibwpe.

An alternative spelling would be LibWPE.

See what Zan thinks before making any changes, since he might disagree.
Comment 4 Zan Dobersek 2018-11-12 05:45:39 PST
(In reply to Michael Catanzaro from comment #3)
>  * Rename GLContextEGLWPE.cpp to GLContextEGLLibwpe.cpp as a reminder that
> it's now used on non-WPE platforms.
>  * Rename PlatformDisplayWPE.cpp to PlatformDisplayLibwpe.cpp for the same
> reason, and rename the class PlatformDisplayWPE to PlatformDisplayLibwpe.
> 
> An alternative spelling would be LibWPE.
> 

These make sense, please apply the renames. I'd personally prefer 'LibWPE', but it's not a strong preference.
Comment 5 Michael Catanzaro 2018-11-13 16:38:31 PST
(In reply to Zan Dobersek from comment #4)
> These make sense, please apply the renames.

And to all the files using USE(LIBWPE), not just the two I mentioned. (E.g. PlatformKeyboardEventLibWPE.cpp.)
Comment 6 Don Olmstead 2018-11-15 18:10:42 PST
Created attachment 355007 [details]
Patch
Comment 7 Don Olmstead 2018-11-15 18:14:51 PST
Created attachment 355008 [details]
Patch
Comment 8 Don Olmstead 2018-11-15 19:09:44 PST
Ok I think this is good to review. This renames the files and moves to a libwpe location.
Comment 9 WebKit Commit Bot 2018-11-16 08:39:00 PST
Comment on attachment 355008 [details]
Patch

Clearing flags on attachment: 355008

Committed r238282: <https://trac.webkit.org/changeset/238282>
Comment 10 WebKit Commit Bot 2018-11-16 08:39:02 PST
All reviewed patches have been landed.  Closing bug.
Comment 11 Radar WebKit Bug Importer 2018-11-16 08:40:25 PST
<rdar://problem/46128013>