Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0141f84353ca365fac46c35e6df023cb129509a7
      
https://github.com/WebKit/WebKit/commit/0141f84353ca365fac46c35e6df023cb129509a7
  Author: Adrian Taylor <[email protected]>
  Date:   2026-05-08 (Fri, 08 May 2026)

  Changed paths:
    M Source/WTF/wtf/CMakeLists.txt
    M Source/WTF/wtf/PlatformEnableCocoa.h

  Log Message:
  -----------
  [Swift GTK] Export WTF modulemap on cmake
https://bugs.webkit.org/show_bug.cgi?id=314390

Reviewed by Richard Robinson.

In preparation for enabling Swift on non-Apple platforms, we need our WTF
headers to be described by a modulemap. This PR adds a WTF modulemap on cmake.
The WTF modulemap references some headers which previously were not present in
cmake builds, and they need to be present, so we expose them too. They will
be interpreted on non-Apple platforms so a tweak to header guards is required.
Similarly, the WTF modulemap references an SPI directory which won't be
present on non-Apple platforms so we need to make a fake directory for that
in order to keep the modulemap well-formed.

Alternatives considered:
- ship a different modulemap for non-Apple platforms
- dynamically change the modulemap for non-Apple platforms, using cmake
  or similar scripting
Both of these seemed to have a significantly higher maintenance burden than the
current approach.

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



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

Reply via email to