[Webkit-unassigned] [Bug 243809] New: [WPE][GTK] Share public headers
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 10 19:56:17 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=243809
Bug ID: 243809
Summary: [WPE][GTK] Share public headers
Product: WebKit
Version: WebKit Nightly Build
Hardware: PC
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: WebKitGTK
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mcatanzaro at gnome.org
CC: bugs-noreply at webkitgtk.org
Blocks: 210100
We're soon going to have four public APIs:
* GTK 3
* GTK 4
* WPE 1.0/1.1
* WPE 2.0
To avoid having four different copies of all the public headers, let's generate the public headers from a shared template. We'll start by unifying the existing WPE and GTK headers without making any API changes. Using a customized version of unifdef, we can use PLATFORM(GTK) and PLATFORM(WPE) guards in the header templates in order to hide platform-specific code from the generated headers. Be careful around comments, though: the guards do not work inside comments, so if any part of a doc comment needs to differ, the entire doc comment will need to be duplicated.
Thanks to Adrian for proposing this solution.
Referenced Bugs:
https://bugs.webkit.org/show_bug.cgi?id=210100
[Bug 210100] [META][GTK][GTK4] Support GTK4
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220811/4c5282cf/attachment.htm>
More information about the webkit-unassigned
mailing list