haikuwebkit/Source/WebKitLegacy/PlatformFTW.cmake

439 lines
17 KiB
CMake
Raw Permalink Normal View History

[FTW] Get WebKit, WebKit2, and MiniBrowser building and executing https://bugs.webkit.org/show_bug.cgi?id=200539 .: <rdar://problem/54082550> Reviewed by Dean Jackson. * Source/cmake/OptionsFTW.cmake: Source/ThirdParty/ANGLE: Reviewed by Dean Jackson. * PlatformFTW.cmake: Added. Source/WebCore: <rdar://problem/54082550> Reviewed by Dean Jackson. * platform/graphics/win/BackingStoreBackendDirect2D.h: (WebCore::BackingStoreBackendDirect2D::renderTarget const): (WebCore::BackingStoreBackendDirect2D::surface const): (): Deleted. * platform/graphics/win/BackingStoreBackendDirect2DImpl.cpp: (WebCore::BackingStoreBackendDirect2DImpl::~BackingStoreBackendDirect2DImpl): (WebCore::BackingStoreBackendDirect2DImpl::scroll): (WebCore::createDirect2DImageSurfaceWithFastMalloc): Deleted. * platform/graphics/win/BackingStoreBackendDirect2DImpl.h: * platform/graphics/win/DIBPixelData.cpp: (WebCore::DIBPixelData::DIBPixelData): * platform/graphics/win/DIBPixelData.h: * platform/graphics/win/Direct2DOperations.cpp: (WebCore::Direct2D::fillRectWithRoundedHole): (WebCore::Direct2D::fillRectWithGradient): (WebCore::Direct2D::drawGlyphs): (WebCore::Direct2D::PlatformContextStateSaver::PlatformContextStateSaver): Deleted. (WebCore::Direct2D::PlatformContextStateSaver::~PlatformContextStateSaver): Deleted. (WebCore::Direct2D::PlatformContextStateSaver::save): Deleted. (WebCore::Direct2D::PlatformContextStateSaver::restore): Deleted. (WebCore::Direct2D::PlatformContextStateSaver::didSave const): Deleted. * platform/graphics/win/Direct2DOperations.h: * platform/graphics/win/Direct2DUtilities.cpp: (WebCore::Direct2D::bitmapSize): (WebCore::Direct2D::bitmapResolution): (WebCore::Direct2D::createWicBitmap): (WebCore::Direct2D::createBitmap): (WebCore::Direct2D::createGDIRenderTarget): (WebCore::Direct2D::copyRectFromOneSurfaceToAnother): * platform/graphics/win/Direct2DUtilities.h: * platform/graphics/win/GraphicsContextDirect2D.cpp: (WebCore::GraphicsContext::GraphicsContext): (WebCore::GraphicsContext::platformContext const): (WebCore::GraphicsContextPlatformPrivate::setAlpha): (WebCore::GraphicsContext::savePlatformState): (WebCore::GraphicsContext::restorePlatformState): (WebCore::GraphicsContext::releaseWindowsContext): (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate): (WebCore::GraphicsContextPlatformPrivate::beginDraw): (WebCore::GraphicsContextPlatformPrivate::endDraw): (WebCore::GraphicsContext::beginDraw): (WebCore::GraphicsContext::endDraw): (WebCore::GraphicsContext::setCTM): (WebCore::GraphicsContext::isAcceleratedContext const): * platform/graphics/win/GraphicsContextImplDirect2D.cpp: (WebCore::GraphicsContextImplDirect2D::fillRect): (WebCore::GraphicsContextImplDirect2D::fillRectWithRoundedHole): (WebCore::GraphicsContextImplDirect2D::drawGlyphs): * platform/graphics/win/GraphicsContextPlatformPrivateDirect2D.h: (WebCore::GraphicsContextPlatformPrivate::platformContext): * platform/graphics/win/PathDirect2D.cpp: (WebCore::Path::transform): * platform/graphics/win/PlatformContextDirect2D.cpp: (WebCore::PlatformContextDirect2D::beginDraw): (WebCore::PlatformContextDirect2D::endDraw): * platform/graphics/win/PlatformContextDirect2D.h: (WebCore::PlatformContextStateSaver::PlatformContextStateSaver): (WebCore::PlatformContextStateSaver::~PlatformContextStateSaver): (WebCore::PlatformContextStateSaver::save): (WebCore::PlatformContextStateSaver::restore): (WebCore::PlatformContextStateSaver::didSave const): Source/WebKit: <rdar://problem/54082550> Reviewed by Dean Jackson. * PlatformFTW.cmake: Added. * Shared/ShareableBitmap.h: * Shared/win/ShareableBitmapDirect2D.cpp: Added. * UIProcess/BackingStore.cpp: * UIProcess/BackingStore.h: (WebKit::BackingStore::renderTarget): * UIProcess/CoordinatedGraphics/DrawingAreaProxyCoordinatedGraphics.cpp: * UIProcess/CoordinatedGraphics/DrawingAreaProxyCoordinatedGraphics.h: * UIProcess/win/BackingStoreDirect2D.cpp: Added. * UIProcess/win/WebInspectorProxyWin.cpp: (WebKit::WebInspectorProxy::inspectorPageURL): (WebKit::WebInspectorProxy::inspectorTestPageURL): (WebKit::WebInspectorProxy::inspectorBaseURL): * UIProcess/win/WebView.cpp: (WebKit::WebView::paint): * UIProcess/win/WebView.h: * WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp: (WebKit::DrawingAreaCoordinatedGraphics::display): * WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.h: * WebProcess/WebPage/win/WebInspectorUIWin.cpp: (WebKit::WebInspectorUI::localizedStringsURL): (WebKit::RemoteWebInspectorUI::localizedStringsURL): * WebProcess/win/WebProcessMainWin.cpp: (WebKit::WebProcessMainWin): Source/WebKitLegacy: <rdar://problem/54082550> Reviewed by Dean Jackson. * CMakeLists.txt: * PlatformFTW.cmake: Added. Source/WebKitLegacy/win: <rdar://problem/54082550> Reviewed by Dean Jackson. * AccessibleBase.cpp: (AccessibleBase::get_locale): * CFDictionaryPropertyBag.cpp: (ConvertCFTypeToVariant): (CFDictionaryPropertyBag::Read): (CFDictionaryPropertyBag::Write): * CFDictionaryPropertyBag.h: * COMPropertyBag.h: (HashType>::Read): (HashType>::GetPropertyInfo): * MarshallingHelpers.cpp: * MarshallingHelpers.h: * WebApplicationCache.cpp: * WebArchive.cpp: * WebArchive.h: * WebCache.cpp: * WebCoreSupport/WebFrameLoaderClient.cpp: * WebDatabaseManager.cpp: * WebHistory.cpp: * WebHistoryItem.cpp: * WebKitCOMAPI.cpp: * WebKitCOMAPI.h: * WebKitDLL.cpp: * WebLocalizableStrings.cpp: * WebLocalizableStrings.h: * WebMutableURLRequest.cpp: * WebPreferences.cpp: * WebPreferences.h: * WebView.cpp: * WebView.h: Tools: <rdar://problem/54082550> Reviewed by Dean Jackson. * MiniBrowser/win/WebKitLegacyBrowserWindow.cpp: * PlatformFTW.cmake: Added. Canonical link: https://commits.webkit.org/214325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248444 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-08-08 22:03:58 +00:00
add_definitions(-DUSE_DIRECT2D=1 -DUSE_CURL=1 -DWEBKIT_EXPORTS=1)
list(APPEND WebKitLegacy_PRIVATE_INCLUDE_DIRECTORIES
"${WEBKIT_LIBRARIES_DIR}/include"
)
list(APPEND WebKitLegacy_SOURCES_Classes
win/WebDownloadCURL.cpp
win/WebURLAuthenticationChallengeSenderCURL.cpp
)
list(APPEND WebKitLegacy_PRIVATE_LIBRARIES
[CMake] Use builtin targets https://bugs.webkit.org/show_bug.cgi?id=205166 Reviewed by Darin Adler. .: Add WebKitFindPackage.cmake which wraps CMake's find_package to provide targets for common libraries. Rationale: 1. There are a number of libraries which are found using CMake's internal Find modules that contain targets but not all of them are available in the minimum version of CMake we support, 3.10. 2. Updating to CMake 3.12 or higher is not possible due to the WebKit GTK's support policy. It looks like the next time we can bump the version is spring 2021. 3. Apple builds, both Mac and Windows, have libraries that won't be found using the stock CMake modules. AppleWin also has internal builds where all libraries have a DEBUG_SUFFIX of _debug that would not be picked up. In the implementation of find_package any Apple specific requirements are dealt with and the expected CMake values are populated. For all other cases CMake's original find_package is called so there's no behavior change. Afterwards if there is a library that has a target but the target was not created it is created from the definitions that are present from the find module at CMake 3.10. This makes it so all ports consistently have targets across all versions of CMake above the current minimum. * Source/cmake/OptionsAppleWin.cmake: * Source/cmake/OptionsPlayStation.cmake: * Source/cmake/WebKitCommon.cmake: * Source/cmake/WebKitFindPackage.cmake: Added. * Source/cmake/target/icu.cmake: Removed. PerformanceTests: * MallocBench/MallocBench/CMakeLists.txt: Source/WebCore: * CMakeLists.txt: * PlatformGTK.cmake: * PlatformMac.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/ImageDecoders.cmake: Source/WebCore/PAL: * pal/PlatformPlayStation.cmake: Source/WebKit: * PlatformFTW.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: Source/WebKitLegacy: * PlatformFTW.cmake: * PlatformWin.cmake: Source/WTF: * wtf/PlatformGTK.cmake: * wtf/PlatformJSCOnly.cmake: * wtf/PlatformPlayStation.cmake: * wtf/PlatformWPE.cmake: Tools: * TestWebKitAPI/PlatformWin.cmake: Canonical link: https://commits.webkit.org/220799@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256731 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-02-17 15:37:39 +00:00
OpenSSL::SSL
D3D11.lib
Dxgi.lib
mfuuid.lib
strmiids.lib
[FTW] Get WebKit, WebKit2, and MiniBrowser building and executing https://bugs.webkit.org/show_bug.cgi?id=200539 .: <rdar://problem/54082550> Reviewed by Dean Jackson. * Source/cmake/OptionsFTW.cmake: Source/ThirdParty/ANGLE: Reviewed by Dean Jackson. * PlatformFTW.cmake: Added. Source/WebCore: <rdar://problem/54082550> Reviewed by Dean Jackson. * platform/graphics/win/BackingStoreBackendDirect2D.h: (WebCore::BackingStoreBackendDirect2D::renderTarget const): (WebCore::BackingStoreBackendDirect2D::surface const): (): Deleted. * platform/graphics/win/BackingStoreBackendDirect2DImpl.cpp: (WebCore::BackingStoreBackendDirect2DImpl::~BackingStoreBackendDirect2DImpl): (WebCore::BackingStoreBackendDirect2DImpl::scroll): (WebCore::createDirect2DImageSurfaceWithFastMalloc): Deleted. * platform/graphics/win/BackingStoreBackendDirect2DImpl.h: * platform/graphics/win/DIBPixelData.cpp: (WebCore::DIBPixelData::DIBPixelData): * platform/graphics/win/DIBPixelData.h: * platform/graphics/win/Direct2DOperations.cpp: (WebCore::Direct2D::fillRectWithRoundedHole): (WebCore::Direct2D::fillRectWithGradient): (WebCore::Direct2D::drawGlyphs): (WebCore::Direct2D::PlatformContextStateSaver::PlatformContextStateSaver): Deleted. (WebCore::Direct2D::PlatformContextStateSaver::~PlatformContextStateSaver): Deleted. (WebCore::Direct2D::PlatformContextStateSaver::save): Deleted. (WebCore::Direct2D::PlatformContextStateSaver::restore): Deleted. (WebCore::Direct2D::PlatformContextStateSaver::didSave const): Deleted. * platform/graphics/win/Direct2DOperations.h: * platform/graphics/win/Direct2DUtilities.cpp: (WebCore::Direct2D::bitmapSize): (WebCore::Direct2D::bitmapResolution): (WebCore::Direct2D::createWicBitmap): (WebCore::Direct2D::createBitmap): (WebCore::Direct2D::createGDIRenderTarget): (WebCore::Direct2D::copyRectFromOneSurfaceToAnother): * platform/graphics/win/Direct2DUtilities.h: * platform/graphics/win/GraphicsContextDirect2D.cpp: (WebCore::GraphicsContext::GraphicsContext): (WebCore::GraphicsContext::platformContext const): (WebCore::GraphicsContextPlatformPrivate::setAlpha): (WebCore::GraphicsContext::savePlatformState): (WebCore::GraphicsContext::restorePlatformState): (WebCore::GraphicsContext::releaseWindowsContext): (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate): (WebCore::GraphicsContextPlatformPrivate::beginDraw): (WebCore::GraphicsContextPlatformPrivate::endDraw): (WebCore::GraphicsContext::beginDraw): (WebCore::GraphicsContext::endDraw): (WebCore::GraphicsContext::setCTM): (WebCore::GraphicsContext::isAcceleratedContext const): * platform/graphics/win/GraphicsContextImplDirect2D.cpp: (WebCore::GraphicsContextImplDirect2D::fillRect): (WebCore::GraphicsContextImplDirect2D::fillRectWithRoundedHole): (WebCore::GraphicsContextImplDirect2D::drawGlyphs): * platform/graphics/win/GraphicsContextPlatformPrivateDirect2D.h: (WebCore::GraphicsContextPlatformPrivate::platformContext): * platform/graphics/win/PathDirect2D.cpp: (WebCore::Path::transform): * platform/graphics/win/PlatformContextDirect2D.cpp: (WebCore::PlatformContextDirect2D::beginDraw): (WebCore::PlatformContextDirect2D::endDraw): * platform/graphics/win/PlatformContextDirect2D.h: (WebCore::PlatformContextStateSaver::PlatformContextStateSaver): (WebCore::PlatformContextStateSaver::~PlatformContextStateSaver): (WebCore::PlatformContextStateSaver::save): (WebCore::PlatformContextStateSaver::restore): (WebCore::PlatformContextStateSaver::didSave const): Source/WebKit: <rdar://problem/54082550> Reviewed by Dean Jackson. * PlatformFTW.cmake: Added. * Shared/ShareableBitmap.h: * Shared/win/ShareableBitmapDirect2D.cpp: Added. * UIProcess/BackingStore.cpp: * UIProcess/BackingStore.h: (WebKit::BackingStore::renderTarget): * UIProcess/CoordinatedGraphics/DrawingAreaProxyCoordinatedGraphics.cpp: * UIProcess/CoordinatedGraphics/DrawingAreaProxyCoordinatedGraphics.h: * UIProcess/win/BackingStoreDirect2D.cpp: Added. * UIProcess/win/WebInspectorProxyWin.cpp: (WebKit::WebInspectorProxy::inspectorPageURL): (WebKit::WebInspectorProxy::inspectorTestPageURL): (WebKit::WebInspectorProxy::inspectorBaseURL): * UIProcess/win/WebView.cpp: (WebKit::WebView::paint): * UIProcess/win/WebView.h: * WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp: (WebKit::DrawingAreaCoordinatedGraphics::display): * WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.h: * WebProcess/WebPage/win/WebInspectorUIWin.cpp: (WebKit::WebInspectorUI::localizedStringsURL): (WebKit::RemoteWebInspectorUI::localizedStringsURL): * WebProcess/win/WebProcessMainWin.cpp: (WebKit::WebProcessMainWin): Source/WebKitLegacy: <rdar://problem/54082550> Reviewed by Dean Jackson. * CMakeLists.txt: * PlatformFTW.cmake: Added. Source/WebKitLegacy/win: <rdar://problem/54082550> Reviewed by Dean Jackson. * AccessibleBase.cpp: (AccessibleBase::get_locale): * CFDictionaryPropertyBag.cpp: (ConvertCFTypeToVariant): (CFDictionaryPropertyBag::Read): (CFDictionaryPropertyBag::Write): * CFDictionaryPropertyBag.h: * COMPropertyBag.h: (HashType>::Read): (HashType>::GetPropertyInfo): * MarshallingHelpers.cpp: * MarshallingHelpers.h: * WebApplicationCache.cpp: * WebArchive.cpp: * WebArchive.h: * WebCache.cpp: * WebCoreSupport/WebFrameLoaderClient.cpp: * WebDatabaseManager.cpp: * WebHistory.cpp: * WebHistoryItem.cpp: * WebKitCOMAPI.cpp: * WebKitCOMAPI.h: * WebKitDLL.cpp: * WebLocalizableStrings.cpp: * WebLocalizableStrings.h: * WebMutableURLRequest.cpp: * WebPreferences.cpp: * WebPreferences.h: * WebView.cpp: * WebView.h: Tools: <rdar://problem/54082550> Reviewed by Dean Jackson. * MiniBrowser/win/WebKitLegacyBrowserWindow.cpp: * PlatformFTW.cmake: Added. Canonical link: https://commits.webkit.org/214325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248444 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-08-08 22:03:58 +00:00
)
add_custom_command(
OUTPUT ${WebKitLegacy_DERIVED_SOURCES_DIR}/WebKitVersion.h
MAIN_DEPENDENCY ${WEBKITLEGACY_DIR}/scripts/generate-webkitversion.pl
DEPENDS ${WEBKITLEGACY_DIR}/mac/Configurations/Version.xcconfig
COMMAND ${PERL_EXECUTABLE} ${WEBKITLEGACY_DIR}/scripts/generate-webkitversion.pl --config ${WEBKITLEGACY_DIR}/mac/Configurations/Version.xcconfig --outputDir ${WebKitLegacy_DERIVED_SOURCES_DIR}
VERBATIM)
list(APPEND WebKitLegacy_SOURCES ${WebKitLegacy_DERIVED_SOURCES_DIR}/WebKitVersion.h)
list(APPEND WebKitLegacy_PRIVATE_INCLUDE_DIRECTORIES
"${CMAKE_BINARY_DIR}/../include/private"
"${CMAKE_BINARY_DIR}/../include/private/JavaScriptCore"
"${CMAKE_BINARY_DIR}/../include/private/WebCore"
"${WEBKITLEGACY_DIR}/win"
"${WEBKITLEGACY_DIR}/win/WebCoreSupport"
"${WebKitLegacy_DERIVED_SOURCES_DIR}/include"
"${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces"
)
list(APPEND WebKitLegacy_INCLUDES
win/CFDictionaryPropertyBag.h
win/COMEnumVariant.h
win/COMPropertyBag.h
win/COMVariantSetter.h
win/CodeAnalysisConfig.h
win/DOMCSSClasses.h
win/DOMCoreClasses.h
win/DOMEventsClasses.h
win/DOMHTMLClasses.h
win/DefaultDownloadDelegate.h
win/DefaultPolicyDelegate.h
win/ForEachCoClass.h
win/FullscreenVideoController.h
win/MarshallingHelpers.h
win/MemoryStream.h
win/ProgIDMacros.h
win/WebActionPropertyBag.h
win/WebApplicationCache.h
win/WebArchive.h
win/WebBackForwardList.h
win/WebCache.h
win/WebCachedFramePlatformData.h
win/WebCoreStatistics.h
win/WebDataSource.h
win/WebDatabaseManager.h
win/WebDocumentLoader.h
win/WebDownload.h
win/WebDropSource.h
win/WebElementPropertyBag.h
win/WebError.h
win/WebFrame.h
win/WebFramePolicyListener.h
win/WebGeolocationPolicyListener.h
win/WebGeolocationPosition.h
win/WebHTMLRepresentation.h
win/WebHistory.h
win/WebHistoryItem.h
win/WebJavaScriptCollector.h
win/WebKitCOMAPI.h
win/WebKitClassFactory.h
win/WebKitDLL.h
win/WebKitGraphics.h
win/WebKitLogging.h
win/WebKitStatistics.h
win/WebKitStatisticsPrivate.h
win/WebKitSystemBits.h
win/WebLocalizableStrings.h
win/WebMutableURLRequest.h
win/WebNavigationData.h
win/WebNotification.h
win/WebNotificationCenter.h
win/WebPreferenceKeysPrivate.h
win/WebPreferences.h
win/WebResource.h
win/WebScriptObject.h
win/WebScriptWorld.h
win/WebSecurityOrigin.h
win/WebSerializedJSValue.h
win/WebTextRenderer.h
win/WebURLAuthenticationChallenge.h
win/WebURLAuthenticationChallengeSender.h
win/WebURLCredential.h
win/WebURLProtectionSpace.h
win/WebURLResponse.h
win/WebUserContentURLPattern.h
win/WebView.h
win/WebWorkersPrivate.h
)
list(APPEND WebKitLegacy_SOURCES_Classes
win/AccessibleBase.cpp
win/AccessibleDocument.cpp
win/AccessibleImage.cpp
win/AccessibleTextImpl.cpp
win/BackForwardList.cpp
win/CFDictionaryPropertyBag.cpp
win/DOMCSSClasses.cpp
win/DOMCoreClasses.cpp
win/DOMEventsClasses.cpp
win/DOMHTMLClasses.cpp
win/DefaultDownloadDelegate.cpp
win/DefaultPolicyDelegate.cpp
win/ForEachCoClass.cpp
win/FullscreenVideoController.cpp
win/MarshallingHelpers.cpp
win/MemoryStream.cpp
win/WebActionPropertyBag.cpp
win/WebApplicationCache.cpp
win/WebArchive.cpp
win/WebBackForwardList.cpp
win/WebCache.cpp
win/WebCoreStatistics.cpp
win/WebDataSource.cpp
win/WebDatabaseManager.cpp
win/WebDocumentLoader.cpp
win/WebDownload.cpp
win/WebDropSource.cpp
win/WebElementPropertyBag.cpp
win/WebError.cpp
win/WebFrame.cpp
win/WebFramePolicyListener.cpp
win/WebGeolocationPolicyListener.cpp
win/WebGeolocationPosition.cpp
win/WebHTMLRepresentation.cpp
win/WebHistory.cpp
win/WebHistoryItem.cpp
win/WebInspector.cpp
win/WebJavaScriptCollector.cpp
win/WebKitCOMAPI.cpp
win/WebKitClassFactory.cpp
win/WebKitDLL.cpp
win/WebKitLogging.cpp
win/WebKitMessageLoop.cpp
win/WebKitStatistics.cpp
win/WebKitSystemBits.cpp
win/WebLocalizableStrings.cpp
win/WebMutableURLRequest.cpp
win/WebNavigationData.cpp
win/WebNodeHighlight.cpp
win/WebNotification.cpp
win/WebNotificationCenter.cpp
win/WebPreferences.cpp
win/WebResource.cpp
win/WebScriptObject.cpp
win/WebScriptWorld.cpp
win/WebSecurityOrigin.cpp
win/WebSerializedJSValue.cpp
win/WebTextRenderer.cpp
win/WebURLAuthenticationChallenge.cpp
win/WebURLAuthenticationChallengeSender.cpp
win/WebURLCredential.cpp
win/WebURLProtectionSpace.cpp
win/WebURLResponse.cpp
win/WebUserContentURLPattern.cpp
win/WebView.cpp
win/WebWorkersPrivate.cpp
win/storage/WebDatabaseProvider.cpp
)
list(APPEND WebKitLegacy_SOURCES_WebCoreSupport
win/WebCoreSupport/AcceleratedCompositingContext.cpp
win/WebCoreSupport/WebChromeClient.cpp
win/WebCoreSupport/WebChromeClient.h
win/WebCoreSupport/WebContextMenuClient.cpp
win/WebCoreSupport/WebContextMenuClient.h
win/WebCoreSupport/WebDesktopNotificationsDelegate.cpp
win/WebCoreSupport/WebDesktopNotificationsDelegate.h
win/WebCoreSupport/WebDragClient.cpp
win/WebCoreSupport/WebDragClient.h
win/WebCoreSupport/WebEditorClient.cpp
win/WebCoreSupport/WebEditorClient.h
win/WebCoreSupport/WebFrameLoaderClient.cpp
win/WebCoreSupport/WebFrameLoaderClient.h
win/WebCoreSupport/WebFrameNetworkingContext.cpp
win/WebCoreSupport/WebFrameNetworkingContext.h
win/WebCoreSupport/WebGeolocationClient.cpp
win/WebCoreSupport/WebGeolocationClient.h
win/WebCoreSupport/WebInspectorClient.cpp
win/WebCoreSupport/WebInspectorClient.h
win/WebCoreSupport/WebInspectorDelegate.cpp
win/WebCoreSupport/WebInspectorDelegate.h
win/WebCoreSupport/WebPlatformStrategies.cpp
win/WebCoreSupport/WebPlatformStrategies.h
win/WebCoreSupport/WebPluginInfoProvider.cpp
win/WebCoreSupport/WebPluginInfoProvider.h
win/WebCoreSupport/WebVisitedLinkStore.cpp
win/WebCoreSupport/WebVisitedLinkStore.h
)
if (USE_CF)
list(APPEND WebKitLegacy_SOURCES_Classes
cf/WebCoreSupport/WebInspectorClientCF.cpp
)
list(APPEND WebKitLegacy_LIBRARIES
${COREFOUNDATION_LIBRARY}
)
endif ()
[FTW] Get WebKit, WebKit2, and MiniBrowser building and executing https://bugs.webkit.org/show_bug.cgi?id=200539 .: <rdar://problem/54082550> Reviewed by Dean Jackson. * Source/cmake/OptionsFTW.cmake: Source/ThirdParty/ANGLE: Reviewed by Dean Jackson. * PlatformFTW.cmake: Added. Source/WebCore: <rdar://problem/54082550> Reviewed by Dean Jackson. * platform/graphics/win/BackingStoreBackendDirect2D.h: (WebCore::BackingStoreBackendDirect2D::renderTarget const): (WebCore::BackingStoreBackendDirect2D::surface const): (): Deleted. * platform/graphics/win/BackingStoreBackendDirect2DImpl.cpp: (WebCore::BackingStoreBackendDirect2DImpl::~BackingStoreBackendDirect2DImpl): (WebCore::BackingStoreBackendDirect2DImpl::scroll): (WebCore::createDirect2DImageSurfaceWithFastMalloc): Deleted. * platform/graphics/win/BackingStoreBackendDirect2DImpl.h: * platform/graphics/win/DIBPixelData.cpp: (WebCore::DIBPixelData::DIBPixelData): * platform/graphics/win/DIBPixelData.h: * platform/graphics/win/Direct2DOperations.cpp: (WebCore::Direct2D::fillRectWithRoundedHole): (WebCore::Direct2D::fillRectWithGradient): (WebCore::Direct2D::drawGlyphs): (WebCore::Direct2D::PlatformContextStateSaver::PlatformContextStateSaver): Deleted. (WebCore::Direct2D::PlatformContextStateSaver::~PlatformContextStateSaver): Deleted. (WebCore::Direct2D::PlatformContextStateSaver::save): Deleted. (WebCore::Direct2D::PlatformContextStateSaver::restore): Deleted. (WebCore::Direct2D::PlatformContextStateSaver::didSave const): Deleted. * platform/graphics/win/Direct2DOperations.h: * platform/graphics/win/Direct2DUtilities.cpp: (WebCore::Direct2D::bitmapSize): (WebCore::Direct2D::bitmapResolution): (WebCore::Direct2D::createWicBitmap): (WebCore::Direct2D::createBitmap): (WebCore::Direct2D::createGDIRenderTarget): (WebCore::Direct2D::copyRectFromOneSurfaceToAnother): * platform/graphics/win/Direct2DUtilities.h: * platform/graphics/win/GraphicsContextDirect2D.cpp: (WebCore::GraphicsContext::GraphicsContext): (WebCore::GraphicsContext::platformContext const): (WebCore::GraphicsContextPlatformPrivate::setAlpha): (WebCore::GraphicsContext::savePlatformState): (WebCore::GraphicsContext::restorePlatformState): (WebCore::GraphicsContext::releaseWindowsContext): (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate): (WebCore::GraphicsContextPlatformPrivate::beginDraw): (WebCore::GraphicsContextPlatformPrivate::endDraw): (WebCore::GraphicsContext::beginDraw): (WebCore::GraphicsContext::endDraw): (WebCore::GraphicsContext::setCTM): (WebCore::GraphicsContext::isAcceleratedContext const): * platform/graphics/win/GraphicsContextImplDirect2D.cpp: (WebCore::GraphicsContextImplDirect2D::fillRect): (WebCore::GraphicsContextImplDirect2D::fillRectWithRoundedHole): (WebCore::GraphicsContextImplDirect2D::drawGlyphs): * platform/graphics/win/GraphicsContextPlatformPrivateDirect2D.h: (WebCore::GraphicsContextPlatformPrivate::platformContext): * platform/graphics/win/PathDirect2D.cpp: (WebCore::Path::transform): * platform/graphics/win/PlatformContextDirect2D.cpp: (WebCore::PlatformContextDirect2D::beginDraw): (WebCore::PlatformContextDirect2D::endDraw): * platform/graphics/win/PlatformContextDirect2D.h: (WebCore::PlatformContextStateSaver::PlatformContextStateSaver): (WebCore::PlatformContextStateSaver::~PlatformContextStateSaver): (WebCore::PlatformContextStateSaver::save): (WebCore::PlatformContextStateSaver::restore): (WebCore::PlatformContextStateSaver::didSave const): Source/WebKit: <rdar://problem/54082550> Reviewed by Dean Jackson. * PlatformFTW.cmake: Added. * Shared/ShareableBitmap.h: * Shared/win/ShareableBitmapDirect2D.cpp: Added. * UIProcess/BackingStore.cpp: * UIProcess/BackingStore.h: (WebKit::BackingStore::renderTarget): * UIProcess/CoordinatedGraphics/DrawingAreaProxyCoordinatedGraphics.cpp: * UIProcess/CoordinatedGraphics/DrawingAreaProxyCoordinatedGraphics.h: * UIProcess/win/BackingStoreDirect2D.cpp: Added. * UIProcess/win/WebInspectorProxyWin.cpp: (WebKit::WebInspectorProxy::inspectorPageURL): (WebKit::WebInspectorProxy::inspectorTestPageURL): (WebKit::WebInspectorProxy::inspectorBaseURL): * UIProcess/win/WebView.cpp: (WebKit::WebView::paint): * UIProcess/win/WebView.h: * WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp: (WebKit::DrawingAreaCoordinatedGraphics::display): * WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.h: * WebProcess/WebPage/win/WebInspectorUIWin.cpp: (WebKit::WebInspectorUI::localizedStringsURL): (WebKit::RemoteWebInspectorUI::localizedStringsURL): * WebProcess/win/WebProcessMainWin.cpp: (WebKit::WebProcessMainWin): Source/WebKitLegacy: <rdar://problem/54082550> Reviewed by Dean Jackson. * CMakeLists.txt: * PlatformFTW.cmake: Added. Source/WebKitLegacy/win: <rdar://problem/54082550> Reviewed by Dean Jackson. * AccessibleBase.cpp: (AccessibleBase::get_locale): * CFDictionaryPropertyBag.cpp: (ConvertCFTypeToVariant): (CFDictionaryPropertyBag::Read): (CFDictionaryPropertyBag::Write): * CFDictionaryPropertyBag.h: * COMPropertyBag.h: (HashType>::Read): (HashType>::GetPropertyInfo): * MarshallingHelpers.cpp: * MarshallingHelpers.h: * WebApplicationCache.cpp: * WebArchive.cpp: * WebArchive.h: * WebCache.cpp: * WebCoreSupport/WebFrameLoaderClient.cpp: * WebDatabaseManager.cpp: * WebHistory.cpp: * WebHistoryItem.cpp: * WebKitCOMAPI.cpp: * WebKitCOMAPI.h: * WebKitDLL.cpp: * WebLocalizableStrings.cpp: * WebLocalizableStrings.h: * WebMutableURLRequest.cpp: * WebPreferences.cpp: * WebPreferences.h: * WebView.cpp: * WebView.h: Tools: <rdar://problem/54082550> Reviewed by Dean Jackson. * MiniBrowser/win/WebKitLegacyBrowserWindow.cpp: * PlatformFTW.cmake: Added. Canonical link: https://commits.webkit.org/214325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248444 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-08-08 22:03:58 +00:00
if (COMPILER_IS_GCC_OR_CLANG)
WEBKIT_ADD_TARGET_CXX_FLAGS(WebKitLegacy -Wno-overloaded-virtual)
endif ()
list(APPEND WebKitLegacy_SOURCES ${WebKitLegacy_INCLUDES} ${WebKitLegacy_SOURCES_Classes} ${WebKitLegacy_SOURCES_WebCoreSupport})
source_group(Includes FILES ${WebKitLegacy_INCLUDES})
source_group(Classes FILES ${WebKitLegacy_SOURCES_Classes})
source_group(WebCoreSupport FILES ${WebKitLegacy_SOURCES_WebCoreSupport})
# Build the COM interface:
macro(GENERATE_INTERFACE _infile _defines _depends)
get_filename_component(_filewe ${_infile} NAME_WE)
add_custom_command(
OUTPUT ${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/${_filewe}.h
MAIN_DEPENDENCY ${_infile}
DEPENDS ${_depends}
COMMAND midl.exe /I "${CMAKE_CURRENT_SOURCE_DIR}/win/Interfaces" /I "${CMAKE_CURRENT_SOURCE_DIR}/win/Interfaces/Accessible2" /I "${WebKitLegacy_DERIVED_SOURCES_DIR}/include" /I "${CMAKE_CURRENT_SOURCE_DIR}/win" /WX /char signed /env win32 /tlb "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${_filewe}.tlb" /out "${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces" /h "${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/${_filewe}.h" /iid "${_filewe}_i.c" ${_defines} "${CMAKE_CURRENT_SOURCE_DIR}/${_infile}"
USES_TERMINAL VERBATIM)
set_source_files_properties(${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/${_filewe}.h PROPERTIES GENERATED TRUE)
set_source_files_properties(${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/${_filewe}_i.c PROPERTIES GENERATED TRUE)
endmacro()
set(MIDL_DEFINES /D\ \"__PRODUCTION__=01\")
set(WEBKITLEGACY_IDL_DEPENDENCIES
win/Interfaces/AccessibleComparable.idl
win/Interfaces/DOMCSS.idl
win/Interfaces/DOMCore.idl
win/Interfaces/DOMEvents.idl
win/Interfaces/DOMExtensions.idl
win/Interfaces/DOMHTML.idl
win/Interfaces/DOMPrivate.idl
win/Interfaces/DOMRange.idl
win/Interfaces/DOMWindow.idl
win/Interfaces/IGEN_DOMObject.idl
win/Interfaces/IWebArchive.idl
win/Interfaces/IWebBackForwardList.idl
win/Interfaces/IWebBackForwardListPrivate.idl
win/Interfaces/IWebCache.idl
win/Interfaces/IWebCoreStatistics.idl
win/Interfaces/IWebDataSource.idl
win/Interfaces/IWebDatabaseManager.idl
win/Interfaces/IWebDesktopNotificationsDelegate.idl
win/Interfaces/IWebDocument.idl
win/Interfaces/IWebDownload.idl
win/Interfaces/IWebEditingDelegate.idl
win/Interfaces/IWebEmbeddedView.idl
win/Interfaces/IWebError.idl
win/Interfaces/IWebErrorPrivate.idl
win/Interfaces/IWebFormDelegate.idl
win/Interfaces/IWebFrame.idl
win/Interfaces/IWebFrameLoadDelegate.idl
win/Interfaces/IWebFrameLoadDelegatePrivate.idl
win/Interfaces/IWebFrameLoadDelegatePrivate2.idl
win/Interfaces/IWebFramePrivate.idl
win/Interfaces/IWebFrameView.idl
win/Interfaces/IWebGeolocationPolicyListener.idl
win/Interfaces/IWebGeolocationPosition.idl
win/Interfaces/IWebGeolocationProvider.idl
win/Interfaces/IWebHTMLRepresentation.idl
win/Interfaces/IWebHTTPURLResponse.idl
win/Interfaces/IWebHistory.idl
win/Interfaces/IWebHistoryDelegate.idl
win/Interfaces/IWebHistoryItem.idl
win/Interfaces/IWebHistoryItemPrivate.idl
win/Interfaces/IWebHistoryPrivate.idl
win/Interfaces/IWebInspector.idl
win/Interfaces/IWebInspectorPrivate.idl
win/Interfaces/IWebJavaScriptCollector.idl
win/Interfaces/IWebKitStatistics.idl
win/Interfaces/IWebMutableURLRequest.idl
win/Interfaces/IWebMutableURLRequestPrivate.idl
win/Interfaces/IWebNavigationData.idl
win/Interfaces/IWebNotification.idl
win/Interfaces/IWebNotificationCenter.idl
win/Interfaces/IWebNotificationObserver.idl
win/Interfaces/IWebPolicyDelegate.idl
win/Interfaces/IWebPolicyDelegatePrivate.idl
win/Interfaces/IWebPreferences.idl
win/Interfaces/IWebPreferencesPrivate.idl
win/Interfaces/IWebResource.idl
win/Interfaces/IWebResourceLoadDelegate.idl
win/Interfaces/IWebResourceLoadDelegatePrivate.idl
win/Interfaces/IWebResourceLoadDelegatePrivate2.idl
win/Interfaces/IWebScriptObject.idl
win/Interfaces/IWebScriptWorld.idl
win/Interfaces/IWebSecurityOrigin.idl
win/Interfaces/IWebSerializedJSValue.idl
win/Interfaces/IWebSerializedJSValuePrivate.idl
win/Interfaces/IWebTextRenderer.idl
win/Interfaces/IWebUIDelegate.idl
win/Interfaces/IWebUIDelegate2.idl
win/Interfaces/IWebUIDelegatePrivate.idl
win/Interfaces/IWebURLAuthenticationChallenge.idl
win/Interfaces/IWebURLRequest.idl
win/Interfaces/IWebURLResponse.idl
win/Interfaces/IWebURLResponsePrivate.idl
win/Interfaces/IWebUndoManager.idl
win/Interfaces/IWebUndoTarget.idl
win/Interfaces/IWebUserContentURLPattern.idl
win/Interfaces/IWebView.idl
win/Interfaces/IWebViewPrivate.idl
win/Interfaces/IWebWorkersPrivate.idl
win/Interfaces/JavaScriptCoreAPITypes.idl
win/Interfaces/WebKit.idl
win/Interfaces/WebScrollbarTypes.idl
win/Interfaces/Accessible2/Accessible2.idl
win/Interfaces/Accessible2/Accessible2_2.idl
win/Interfaces/Accessible2/AccessibleApplication.idl
win/Interfaces/Accessible2/AccessibleEditableText.idl
win/Interfaces/Accessible2/AccessibleRelation.idl
win/Interfaces/Accessible2/AccessibleStates.idl
win/Interfaces/Accessible2/AccessibleText.idl
win/Interfaces/Accessible2/AccessibleText2.idl
win/Interfaces/Accessible2/IA2CommonTypes.idl
"${WebKitLegacy_DERIVED_SOURCES_DIR}/include/autoversion.h"
)
add_custom_command(
OUTPUT ${WebKitLegacy_DERIVED_SOURCES_DIR}/include/autoversion.h
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMAND ${PERL_EXECUTABLE} ${WEBKIT_LIBRARIES_DIR}/tools/scripts/auto-version.pl ${WebKitLegacy_DERIVED_SOURCES_DIR}
VERBATIM)
GENERATE_INTERFACE(win/Interfaces/WebKit.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
GENERATE_INTERFACE(win/Interfaces/Accessible2/AccessibleApplication.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
GENERATE_INTERFACE(win/Interfaces/Accessible2/Accessible2.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
GENERATE_INTERFACE(win/Interfaces/Accessible2/Accessible2_2.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
GENERATE_INTERFACE(win/Interfaces/Accessible2/AccessibleRelation.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
GENERATE_INTERFACE(win/Interfaces/Accessible2/AccessibleStates.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
GENERATE_INTERFACE(win/Interfaces/Accessible2/IA2CommonTypes.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
GENERATE_INTERFACE(win/Interfaces/Accessible2/AccessibleEditableText.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
GENERATE_INTERFACE(win/Interfaces/Accessible2/AccessibleText.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
GENERATE_INTERFACE(win/Interfaces/Accessible2/AccessibleText2.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
add_library(WebKitLegacyGUID STATIC
"${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/WebKit.h"
"${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/AccessibleApplication.h"
"${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/Accessible2.h"
"${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/Accessible2_2.h"
"${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/AccessibleRelation.h"
"${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/AccessibleStates.h"
"${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/IA2CommonTypes.h"
"${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/AccessibleEditableText.h"
"${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/AccessibleText.h"
"${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/AccessibleText2.h"
"${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/WebKit_i.c"
"${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/AccessibleApplication_i.c"
"${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/Accessible2_i.c"
"${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/Accessible2_2_i.c"
"${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/AccessibleRelation_i.c"
"${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/AccessibleEditableText_i.c"
"${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/AccessibleText_i.c"
"${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/AccessibleText2_i.c"
)
set_target_properties(WebKitLegacyGUID PROPERTIES OUTPUT_NAME WebKitGUID${DEBUG_SUFFIX})
list(APPEND WebKitLegacy_PRIVATE_LIBRARIES
Comctl32
Comsupp
Crypt32
D2d1
Dwrite
Dxguid
Iphlpapi
Psapi
Rpcrt4
Shlwapi
Usp10
Version
WebKitGUID${DEBUG_SUFFIX}
WindowsCodecs
Winmm
[FTW] Get WebKit, WebKit2, and MiniBrowser building and executing https://bugs.webkit.org/show_bug.cgi?id=200539 .: <rdar://problem/54082550> Reviewed by Dean Jackson. * Source/cmake/OptionsFTW.cmake: Source/ThirdParty/ANGLE: Reviewed by Dean Jackson. * PlatformFTW.cmake: Added. Source/WebCore: <rdar://problem/54082550> Reviewed by Dean Jackson. * platform/graphics/win/BackingStoreBackendDirect2D.h: (WebCore::BackingStoreBackendDirect2D::renderTarget const): (WebCore::BackingStoreBackendDirect2D::surface const): (): Deleted. * platform/graphics/win/BackingStoreBackendDirect2DImpl.cpp: (WebCore::BackingStoreBackendDirect2DImpl::~BackingStoreBackendDirect2DImpl): (WebCore::BackingStoreBackendDirect2DImpl::scroll): (WebCore::createDirect2DImageSurfaceWithFastMalloc): Deleted. * platform/graphics/win/BackingStoreBackendDirect2DImpl.h: * platform/graphics/win/DIBPixelData.cpp: (WebCore::DIBPixelData::DIBPixelData): * platform/graphics/win/DIBPixelData.h: * platform/graphics/win/Direct2DOperations.cpp: (WebCore::Direct2D::fillRectWithRoundedHole): (WebCore::Direct2D::fillRectWithGradient): (WebCore::Direct2D::drawGlyphs): (WebCore::Direct2D::PlatformContextStateSaver::PlatformContextStateSaver): Deleted. (WebCore::Direct2D::PlatformContextStateSaver::~PlatformContextStateSaver): Deleted. (WebCore::Direct2D::PlatformContextStateSaver::save): Deleted. (WebCore::Direct2D::PlatformContextStateSaver::restore): Deleted. (WebCore::Direct2D::PlatformContextStateSaver::didSave const): Deleted. * platform/graphics/win/Direct2DOperations.h: * platform/graphics/win/Direct2DUtilities.cpp: (WebCore::Direct2D::bitmapSize): (WebCore::Direct2D::bitmapResolution): (WebCore::Direct2D::createWicBitmap): (WebCore::Direct2D::createBitmap): (WebCore::Direct2D::createGDIRenderTarget): (WebCore::Direct2D::copyRectFromOneSurfaceToAnother): * platform/graphics/win/Direct2DUtilities.h: * platform/graphics/win/GraphicsContextDirect2D.cpp: (WebCore::GraphicsContext::GraphicsContext): (WebCore::GraphicsContext::platformContext const): (WebCore::GraphicsContextPlatformPrivate::setAlpha): (WebCore::GraphicsContext::savePlatformState): (WebCore::GraphicsContext::restorePlatformState): (WebCore::GraphicsContext::releaseWindowsContext): (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate): (WebCore::GraphicsContextPlatformPrivate::beginDraw): (WebCore::GraphicsContextPlatformPrivate::endDraw): (WebCore::GraphicsContext::beginDraw): (WebCore::GraphicsContext::endDraw): (WebCore::GraphicsContext::setCTM): (WebCore::GraphicsContext::isAcceleratedContext const): * platform/graphics/win/GraphicsContextImplDirect2D.cpp: (WebCore::GraphicsContextImplDirect2D::fillRect): (WebCore::GraphicsContextImplDirect2D::fillRectWithRoundedHole): (WebCore::GraphicsContextImplDirect2D::drawGlyphs): * platform/graphics/win/GraphicsContextPlatformPrivateDirect2D.h: (WebCore::GraphicsContextPlatformPrivate::platformContext): * platform/graphics/win/PathDirect2D.cpp: (WebCore::Path::transform): * platform/graphics/win/PlatformContextDirect2D.cpp: (WebCore::PlatformContextDirect2D::beginDraw): (WebCore::PlatformContextDirect2D::endDraw): * platform/graphics/win/PlatformContextDirect2D.h: (WebCore::PlatformContextStateSaver::PlatformContextStateSaver): (WebCore::PlatformContextStateSaver::~PlatformContextStateSaver): (WebCore::PlatformContextStateSaver::save): (WebCore::PlatformContextStateSaver::restore): (WebCore::PlatformContextStateSaver::didSave const): Source/WebKit: <rdar://problem/54082550> Reviewed by Dean Jackson. * PlatformFTW.cmake: Added. * Shared/ShareableBitmap.h: * Shared/win/ShareableBitmapDirect2D.cpp: Added. * UIProcess/BackingStore.cpp: * UIProcess/BackingStore.h: (WebKit::BackingStore::renderTarget): * UIProcess/CoordinatedGraphics/DrawingAreaProxyCoordinatedGraphics.cpp: * UIProcess/CoordinatedGraphics/DrawingAreaProxyCoordinatedGraphics.h: * UIProcess/win/BackingStoreDirect2D.cpp: Added. * UIProcess/win/WebInspectorProxyWin.cpp: (WebKit::WebInspectorProxy::inspectorPageURL): (WebKit::WebInspectorProxy::inspectorTestPageURL): (WebKit::WebInspectorProxy::inspectorBaseURL): * UIProcess/win/WebView.cpp: (WebKit::WebView::paint): * UIProcess/win/WebView.h: * WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp: (WebKit::DrawingAreaCoordinatedGraphics::display): * WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.h: * WebProcess/WebPage/win/WebInspectorUIWin.cpp: (WebKit::WebInspectorUI::localizedStringsURL): (WebKit::RemoteWebInspectorUI::localizedStringsURL): * WebProcess/win/WebProcessMainWin.cpp: (WebKit::WebProcessMainWin): Source/WebKitLegacy: <rdar://problem/54082550> Reviewed by Dean Jackson. * CMakeLists.txt: * PlatformFTW.cmake: Added. Source/WebKitLegacy/win: <rdar://problem/54082550> Reviewed by Dean Jackson. * AccessibleBase.cpp: (AccessibleBase::get_locale): * CFDictionaryPropertyBag.cpp: (ConvertCFTypeToVariant): (CFDictionaryPropertyBag::Read): (CFDictionaryPropertyBag::Write): * CFDictionaryPropertyBag.h: * COMPropertyBag.h: (HashType>::Read): (HashType>::GetPropertyInfo): * MarshallingHelpers.cpp: * MarshallingHelpers.h: * WebApplicationCache.cpp: * WebArchive.cpp: * WebArchive.h: * WebCache.cpp: * WebCoreSupport/WebFrameLoaderClient.cpp: * WebDatabaseManager.cpp: * WebHistory.cpp: * WebHistoryItem.cpp: * WebKitCOMAPI.cpp: * WebKitCOMAPI.h: * WebKitDLL.cpp: * WebLocalizableStrings.cpp: * WebLocalizableStrings.h: * WebMutableURLRequest.cpp: * WebPreferences.cpp: * WebPreferences.h: * WebView.cpp: * WebView.h: Tools: <rdar://problem/54082550> Reviewed by Dean Jackson. * MiniBrowser/win/WebKitLegacyBrowserWindow.cpp: * PlatformFTW.cmake: Added. Canonical link: https://commits.webkit.org/214325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248444 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-08-08 22:03:58 +00:00
)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SUBSYSTEM:WINDOWS")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SUBSYSTEM:WINDOWS")
# We need the webkit libraries to come before the system default libraries to prevent symbol conflicts with uuid.lib.
# To do this we add system default libs as webkit libs and zero out system default libs.
string(REPLACE " " "\;" CXX_LIBS ${CMAKE_CXX_STANDARD_LIBRARIES})
list(APPEND WebKitLegacy_LIBRARIES ${CXX_LIBS})
set(CMAKE_CXX_STANDARD_LIBRARIES "")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${MSVC_RUNTIME_LINKER_FLAGS}")
# If this directory isn't created before midl runs and attempts to output WebKit.tlb,
# It fails with an unusual error - midl failed - failed to save all changes
file(MAKE_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
file(MAKE_DIRECTORY ${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces)
set(WebKitLegacy_PUBLIC_FRAMEWORK_HEADERS
${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/Accessible2.h
${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/Accessible2_2.h
${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/AccessibleApplication.h
${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/AccessibleEditableText.h
${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/AccessibleRelation.h
${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/AccessibleStates.h
${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/AccessibleText.h
${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/AccessibleText2.h
${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/IA2CommonTypes.h
${WebKitLegacy_DERIVED_SOURCES_DIR}/Interfaces/WebKit.h
win/AccessibleBase.h
win/AccessibleDocument.h
win/CFDictionaryPropertyBag.h
win/WebDataSource.h
win/WebFrame.h
win/WebKitCOMAPI.h
)
WEBKIT_MAKE_FORWARDING_HEADERS(WebKitLegacyGUID
TARGET_NAME WebKitLegacyFrameworkHeaders
DESTINATION ${WebKitLegacy_FRAMEWORK_HEADERS_DIR}/WebKitLegacy
FILES ${WebKitLegacy_PUBLIC_FRAMEWORK_HEADERS}
FLATTENED
)
set(WebKitLegacy_OUTPUT_NAME
WebKit${DEBUG_SUFFIX}
)