Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 065d53aea21b7758aa8ad917aa3a291d271b3cab
      
https://github.com/WebKit/WebKit/commit/065d53aea21b7758aa8ad917aa3a291d271b3cab
  Author: Adrian Taylor <[email protected]>
  Date:   2025-11-24 (Mon, 24 Nov 2025)

  Changed paths:
    M Source/WebKit/Configurations/WebKit.xcconfig
    A Source/WebKit/Shared/WebKit-Swift.h
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj

  Log Message:
  -----------
  Add Swift wrapper header
https://bugs.webkit.org/show_bug.cgi?id=302931
rdar://165200310

Reviewed by Geoffrey Garen and Elliott Williams.

In future various parts of WebKit's C++ will want to include the generated
definitions/declarations of Swift types and functions. This is already the case
with the Swift demo feature and will become more important with upcoming
CoreIPC work. To do this, C++ needs to refer to a header file emitted by Swift.
That header file has a few quirks which make it awkward to include:

* It generates warnings which WebKit treats as errors.
* It does not include pre-requisite headers, e.g. for the types used as
  parameters to Swift functions.
* The WebKit build process may generate the header with two different names
  depending on SDK version.

This commit introduces a 'wrapper' header which resolves all these problems in
one place, so that any other code wishing to refer to Swift definitions and
declarations can simply #include "WebKit-Swift.h". At the moment this is not a
dramatic simplification, but it will become so as Swift usage expands.

Canonical link: https://commits.webkit.org/303477@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to