Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 90857c2436a11b05d471daa03c85928d837e49ae
      
https://github.com/WebKit/WebKit/commit/90857c2436a11b05d471daa03c85928d837e49ae
  Author: Elliott Williams <[email protected]>
  Date:   2026-07-07 (Tue, 07 Jul 2026)

  Changed paths:
    M Source/WebKit/CMakeLists.txt
    M Source/WebKit/Headers.cmake
    M Source/WebKit/PlatformMac.cmake
    M Source/WebKitLegacy/PlatformMac.cmake
    A Source/WebKitLegacy/scripts/forward-headers-cmake.pl
    M Source/cmake/WebKitMacros.cmake
    M Tools/TestWebKitAPI/PlatformMac.cmake

  Log Message:
  -----------
  [CMake] Build WebKit headers to correct API/SPI location
https://bugs.webkit.org/show_bug.cgi?id=318791

Reviewed by Richard Robinson.

In the Cocoa ports, list WebKit's public and private headers separately,
matching what we have in Xcode. Copy them to their own respective
directories at build time.

For WebKit's API headers that are forwarded from WebKitLegacy, use a
small script that rewrites <WebKitLegacy/X.h> to <WebKit/X.h> in include
statements.

These changes are needed to reorganize CMake's headers into framework
bundles, and be able to build WebKit's clang modules successfully on
Mac.

* Source/WebKit/CMakeLists.txt:
* Source/WebKit/Headers.cmake: Also sort header lists to satisfy
  check-webkit-style.
* Source/WebKit/PlatformMac.cmake:
* Source/WebKitLegacy/PlatformMac.cmake:
* Source/WebKitLegacy/scripts/forward-headers-cmake.pl: Added. Perl
  instead of Python for execution speed and brevity.
* Source/cmake/WebKitMacros.cmake: Support using a custom command in
  WEBKIT_COPY_FILES, used by WebKitLegacy to call
  `forward-headers-cmake.pl` above.
* Tools/TestWebKitAPI/PlatformMac.cmake:

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



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

Reply via email to