Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 15145f0a33b858f23df76b1e7750f60354c67a40
      
https://github.com/WebKit/WebKit/commit/15145f0a33b858f23df76b1e7750f60354c67a40
  Author: Alejandro G. Castro <[email protected]>
  Date:   2026-05-11 (Mon, 11 May 2026)

  Changed paths:
    M Source/WebCore/CMakeLists.txt

  Log Message:
  -----------
  [WPE][GTK] Build WebCoreTestSupport only when test targets are enabled
https://bugs.webkit.org/show_bug.cgi?id=314397

Reviewed by Adrian Perez de Castro.

WebCoreTestSupport is test infrastructure used by WebKitTestRunner,
DumpRenderTree, and API test targets. It is currently declared, has
bindings generated, copies private headers, and is compiled even when both
ENABLE_LAYOUT_TESTS and ENABLE_API_TESTS are disabled.

This unnecessary build work can break production cross-builds. For example,
WPE Android builds with NDK r27 fail while compiling WebCoreTestSupport,
even though no layout or API test target is being built.

Add an internal ENABLE_WEBCORE_TEST_SUPPORT helper and use it to build
WebCoreTestSupport only when layout tests or API tests are enabled. Also
avoid passing test-only IDL files to the WebCore bindings preprocessor when
test support is disabled.

No behavior change for configurations that build layout tests or API tests.

* Source/WebCore/CMakeLists.txt:

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



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

Reply via email to