Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[CMake] Make WebCore headers copies
https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
2,009 additions
and 457 deletions.
- +35 −28 Source/WebCore/CMakeLists.txt
- +38 −0 Source/WebCore/ChangeLog
- +1,462 −0 Source/WebCore/Headers.cmake
- +47 −32 Source/WebCore/PlatformAppleWin.cmake
- +24 −7 Source/WebCore/PlatformGTK.cmake
- +114 −165 Source/WebCore/PlatformMac.cmake
- +1 −1 Source/WebCore/PlatformPlayStation.cmake
- +7 −7 Source/WebCore/PlatformWPE.cmake
- +39 −174 Source/WebCore/PlatformWin.cmake
- +1 −7 Source/WebCore/PlatformWinCairo.cmake
- +13 −1 Source/WebCore/platform/Cairo.cmake
- +29 −1 Source/WebCore/platform/Curl.cmake
- +8 −1 Source/WebCore/platform/FreeType.cmake
- +20 −4 Source/WebCore/platform/GStreamer.cmake
- +1 −1 Source/WebCore/platform/HolePunch.cmake
- +1 −1 Source/WebCore/platform/ImageDecoders.cmake
- +32 −0 Source/WebCore/platform/Soup.cmake
- +46 −3 Source/WebCore/platform/TextureMapper.cmake
- +4 −0 Source/WebKit/CMakeLists.txt
- +25 −0 Source/WebKit/ChangeLog
- +1 −1 Source/WebKit/NetworkProcess/curl/NetworkDataTaskCurl.h
- +0 −5 Source/WebKit/PlatformWPE.cmake
- +0 −1 Source/WebKit/PlatformWin.cmake
- +1 −1 Source/WebKit/Scripts/generate-forwarding-headers.pl
- +1 −1 Source/WebKit/UIProcess/API/glib/WebKitUserContentFilterStore.cpp
- +1 −1 Source/WebKit/UIProcess/API/wpe/WebKitColorPrivate.h
- +1 −1 Source/WebKit/UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp
- +1 −1 Source/WebKit/UIProcess/win/PageClientImpl.cpp
- +1 −1 Source/WebKitLegacy/CMakeLists.txt
- +18 −0 Source/WebKitLegacy/ChangeLog
- +0 −1 Source/WebKitLegacy/PlatformWin.cmake
- +24 −0 Tools/ChangeLog
- +2 −1 Tools/DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt
- +1 −1 Tools/DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h
- +1 −1 Tools/DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h
- +1 −1 Tools/DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h
- +4 −1 Tools/TestWebKitAPI/CMakeLists.txt
- +0 −1 Tools/TestWebKitAPI/PlatformWin.cmake
- +2 −2 Tools/TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp
- +1 −1 Tools/TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp
- +1 −1 Tools/WebKitTestRunner/win/PlatformWebViewWin.cpp
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.