Title: [247324] trunk/Source
Revision
247324
Author
[email protected]
Date
2019-07-10 13:30:26 -0700 (Wed, 10 Jul 2019)

Log Message

Allow CMake to build WebCore on Mac
https://bugs.webkit.org/show_bug.cgi?id=198979

Patch by Alex Christensen <[email protected]> on 2019-07-10
Reviewed by Don Olmstead.

Source/ThirdParty/ANGLE:

* include/GLSLANG/ShaderLang.h:

Source/WebCore:

* Modules/websockets/ThreadableWebSocketChannel.cpp:
(WebCore::ThreadableWebSocketChannel::validateURL):
* PlatformMac.cmake:
* platform/cocoa/VideoFullscreenModelVideoElement.mm:
* platform/ios/WebItemProviderPasteboard.h:

Source/WebCore/PAL:

* pal/PlatformMac.cmake:

Modified Paths

Diff

Modified: trunk/Source/ThirdParty/ANGLE/ChangeLog (247323 => 247324)


--- trunk/Source/ThirdParty/ANGLE/ChangeLog	2019-07-10 20:13:26 UTC (rev 247323)
+++ trunk/Source/ThirdParty/ANGLE/ChangeLog	2019-07-10 20:30:26 UTC (rev 247324)
@@ -1,3 +1,12 @@
+2019-07-10  Alex Christensen  <[email protected]>
+
+        Allow CMake to build WebCore on Mac
+        https://bugs.webkit.org/show_bug.cgi?id=198979
+
+        Reviewed by Don Olmstead.
+
+        * include/GLSLANG/ShaderLang.h:
+
 2019-07-10  Kenneth Russell  <[email protected]>
 
         Hook up WebGL's back buffer in ANGLE backend on macOS

Modified: trunk/Source/ThirdParty/ANGLE/include/GLSLANG/ShaderLang.h (247323 => 247324)


--- trunk/Source/ThirdParty/ANGLE/include/GLSLANG/ShaderLang.h	2019-07-10 20:13:26 UTC (rev 247323)
+++ trunk/Source/ThirdParty/ANGLE/include/GLSLANG/ShaderLang.h	2019-07-10 20:30:26 UTC (rev 247324)
@@ -8,7 +8,7 @@
 
 #include <stddef.h>
 
-#if defined(__APPLE__)
+#if defined(__APPLE__) && !defined(BUILDING_WITH_CMAKE)
 #include "khrplatform.h"
 #else
 #include "../KHR/khrplatform.h"

Modified: trunk/Source/WebCore/ChangeLog (247323 => 247324)


--- trunk/Source/WebCore/ChangeLog	2019-07-10 20:13:26 UTC (rev 247323)
+++ trunk/Source/WebCore/ChangeLog	2019-07-10 20:30:26 UTC (rev 247324)
@@ -1,3 +1,16 @@
+2019-07-10  Alex Christensen  <[email protected]>
+
+        Allow CMake to build WebCore on Mac
+        https://bugs.webkit.org/show_bug.cgi?id=198979
+
+        Reviewed by Don Olmstead.
+
+        * Modules/websockets/ThreadableWebSocketChannel.cpp:
+        (WebCore::ThreadableWebSocketChannel::validateURL):
+        * PlatformMac.cmake:
+        * platform/cocoa/VideoFullscreenModelVideoElement.mm:
+        * platform/ios/WebItemProviderPasteboard.h:
+
 2019-07-10  Chris Dumez  <[email protected]>
 
         Unreviewed, rolling out r247292.

Modified: trunk/Source/WebCore/Headers.cmake (247323 => 247324)


--- trunk/Source/WebCore/Headers.cmake	2019-07-10 20:13:26 UTC (rev 247323)
+++ trunk/Source/WebCore/Headers.cmake	2019-07-10 20:30:26 UTC (rev 247324)
@@ -374,6 +374,7 @@
     dom/Document.h
     dom/DocumentEventQueue.h
     dom/DocumentFragment.h
+    dom/DocumentFullscreen.h
     dom/DocumentIdentifier.h
     dom/DocumentMarker.h
     dom/DocumentMarkerController.h

Modified: trunk/Source/WebCore/Modules/websockets/ThreadableWebSocketChannel.cpp (247323 => 247324)


--- trunk/Source/WebCore/Modules/websockets/ThreadableWebSocketChannel.cpp	2019-07-10 20:13:26 UTC (rev 247323)
+++ trunk/Source/WebCore/Modules/websockets/ThreadableWebSocketChannel.cpp	2019-07-10 20:30:26 UTC (rev 247324)
@@ -90,6 +90,8 @@
             validatedURL.areCookiesAllowed = !results.summary.blockedCookies;
         }
     }
+#else
+    UNUSED_PARAM(document);
 #endif
     return validatedURL;
 }

Modified: trunk/Source/WebCore/PAL/ChangeLog (247323 => 247324)


--- trunk/Source/WebCore/PAL/ChangeLog	2019-07-10 20:13:26 UTC (rev 247323)
+++ trunk/Source/WebCore/PAL/ChangeLog	2019-07-10 20:30:26 UTC (rev 247324)
@@ -1,3 +1,12 @@
+2019-07-10  Alex Christensen  <[email protected]>
+
+        Allow CMake to build WebCore on Mac
+        https://bugs.webkit.org/show_bug.cgi?id=198979
+
+        Reviewed by Don Olmstead.
+
+        * pal/PlatformMac.cmake:
+
 2019-07-08  Antoine Quint  <[email protected]>
 
         [Pointer Events] Enable only on the most recent version of the supported iOS family

Modified: trunk/Source/WebCore/PAL/pal/PlatformMac.cmake (247323 => 247324)


--- trunk/Source/WebCore/PAL/pal/PlatformMac.cmake	2019-07-10 20:13:26 UTC (rev 247323)
+++ trunk/Source/WebCore/PAL/pal/PlatformMac.cmake	2019-07-10 20:30:26 UTC (rev 247324)
@@ -105,6 +105,7 @@
 
     cf/CoreMediaSoftLink.cpp
 
+    cocoa/AVFoundationSoftLink.mm
     cocoa/FileSizeFormatterCocoa.mm
     cocoa/PassKitSoftLink.mm
 

Modified: trunk/Source/WebCore/PlatformMac.cmake (247323 => 247324)


--- trunk/Source/WebCore/PlatformMac.cmake	2019-07-10 20:13:26 UTC (rev 247323)
+++ trunk/Source/WebCore/PlatformMac.cmake	2019-07-10 20:30:26 UTC (rev 247324)
@@ -144,7 +144,7 @@
     dom/DataTransferMac.mm
     dom/SlotAssignment.cpp
 
-    editing/ios/AutofillElements.cpp
+    editing/cocoa/AutofillElements.cpp
 
     editing/mac/AlternativeTextUIController.mm
     editing/mac/EditorMac.mm
@@ -163,6 +163,8 @@
     page/mac/TextIndicatorWindow.mm
     page/mac/WheelEventDeltaFilterMac.mm
 
+    page/scrolling/ScrollingTreeScrollingNodeDelegate.cpp
+
     page/scrolling/mac/ScrollingCoordinatorMac.mm
     page/scrolling/mac/ScrollingMomentumCalculatorMac.mm
     page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm
@@ -302,6 +304,7 @@
     platform/graphics/cocoa/WebGLLayer.mm
     platform/graphics/cocoa/WebGPULayer.mm
 
+    platform/graphics/cv/ImageRotationSessionVT.mm
     platform/graphics/cv/PixelBufferConformerCV.cpp
     platform/graphics/cv/TextureCacheCV.mm
     platform/graphics/cv/VideoTextureCopierCV.cpp
@@ -430,6 +433,7 @@
     bridge/objc/WebScriptObject.h
     bridge/objc/WebScriptObjectPrivate.h
 
+    editing/cocoa/AutofillElements.h
     editing/cocoa/DataDetection.h
     editing/cocoa/HTMLConverter.h
 
@@ -568,8 +572,15 @@
     ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
     ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
 )
-set(CSS_VALUE_PLATFORM_DEFINES WTF_PLATFORM_MAC=1)
+set(CSS_VALUE_PLATFORM_DEFINES "WTF_PLATFORM_MAC=1 HAVE_OS_DARK_MODE_SUPPORT=1")
 
+add_custom_command(
+    OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/WHLSLStandardLibraryFunctionMap.cpp
+    MAIN_DEPENDENCY Modules/webgpu/WHLSL/WHLSLStandardLibrary.txt
+    DEPENDS Modules/webgpu/WHLSL/WHLSLBuildStandardLibraryFunctionMap.py
+    COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/Modules/webgpu/WHLSL/WHLSLBuildStandardLibraryFunctionMap.py ${WEBCORE_DIR}/Modules/webgpu/WHLSL/WHLSLStandardLibrary.txt ${WebCore_DERIVED_SOURCES_DIR}/WHLSLStandardLibraryFunctionMap.cpp
+    VERBATIM)
+
 list(APPEND WebCoreTestSupport_LIBRARIES PRIVATE WebCore)
 list(APPEND WebCoreTestSupport_SOURCES
     testing/Internals.mm

Modified: trunk/Source/WebCore/platform/cocoa/VideoFullscreenModelVideoElement.mm (247323 => 247324)


--- trunk/Source/WebCore/platform/cocoa/VideoFullscreenModelVideoElement.mm	2019-07-10 20:13:26 UTC (rev 247323)
+++ trunk/Source/WebCore/platform/cocoa/VideoFullscreenModelVideoElement.mm	2019-07-10 20:30:26 UTC (rev 247324)
@@ -29,19 +29,19 @@
 #import "VideoFullscreenModelVideoElement.h"
 
 #import "DOMWindow.h"
+#import "Event.h"
+#import "EventListener.h"
+#import "EventNames.h"
+#import "HTMLElement.h"
+#import "HTMLVideoElement.h"
 #import "History.h"
 #import "Logging.h"
 #import "MediaControlsHost.h"
+#import "Page.h"
 #import "PlaybackSessionModelMediaElement.h"
+#import "TextTrackList.h"
+#import "TimeRanges.h"
 #import <QuartzCore/CoreAnimation.h>
-#import <WebCore/Event.h>
-#import <WebCore/EventListener.h>
-#import <WebCore/EventNames.h>
-#import <WebCore/HTMLElement.h>
-#import <WebCore/HTMLVideoElement.h>
-#import <WebCore/Page.h>
-#import <WebCore/TextTrackList.h>
-#import <WebCore/TimeRanges.h>
 #import <wtf/NeverDestroyed.h>
 #import <wtf/SoftLinking.h>
 

Modified: trunk/Source/WebCore/platform/ios/WebItemProviderPasteboard.h (247323 => 247324)


--- trunk/Source/WebCore/platform/ios/WebItemProviderPasteboard.h	2019-07-10 20:13:26 UTC (rev 247323)
+++ trunk/Source/WebCore/platform/ios/WebItemProviderPasteboard.h	2019-07-10 20:30:26 UTC (rev 247324)
@@ -23,9 +23,11 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#if TARGET_OS_IPHONE
+
 #import <WebCore/AbstractPasteboard.h>
 
-#if TARGET_OS_IPHONE && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
+#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
 
 struct CGSize;
 
@@ -112,4 +114,5 @@
 
 NS_ASSUME_NONNULL_END
 
-#endif // TARGET_OS_IPHONE && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
+#endif // __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
+#endif // TARGET_OS_IPHONE

Modified: trunk/Source/cmake/OptionsMac.cmake (247323 => 247324)


--- trunk/Source/cmake/OptionsMac.cmake	2019-07-10 20:13:26 UTC (rev 247323)
+++ trunk/Source/cmake/OptionsMac.cmake	2019-07-10 20:30:26 UTC (rev 247324)
@@ -19,11 +19,11 @@
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_DRAG_SUPPORT PRIVATE ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_FILTERS_LEVEL_2 PRIVATE ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INDEXED_DATABASE_IN_WORKERS PRIVATE OFF)
-WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INPUT_TYPE_COLOR PRIVATE ON)
-WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INPUT_TYPE_DATE PRIVATE ON)
-WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INPUT_TYPE_DATETIMELOCAL PRIVATE ON)
-WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INPUT_TYPE_MONTH PRIVATE ON)
-WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INPUT_TYPE_TIME PRIVATE ON)
+WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INPUT_TYPE_COLOR PRIVATE OFF)
+WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INPUT_TYPE_DATE PRIVATE OFF)
+WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INPUT_TYPE_DATETIMELOCAL PRIVATE OFF)
+WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INPUT_TYPE_MONTH PRIVATE OFF)
+WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INPUT_TYPE_TIME PRIVATE OFF)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LEGACY_ENCRYPTED_MEDIA PRIVATE ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LETTERPRESS PRIVATE OFF)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MEDIA_SOURCE PRIVATE ON)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to