Diff
Modified: trunk/ChangeLog (239555 => 239556)
--- trunk/ChangeLog 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/ChangeLog 2018-12-27 16:13:47 UTC (rev 239556)
@@ -1,3 +1,12 @@
+2018-12-27 Alex Christensen <[email protected]>
+
+ Resurrect Mac CMake build
+ https://bugs.webkit.org/show_bug.cgi?id=192658
+
+ Reviewed by Yusuke Suzuki.
+
+ * Source/cmake/OptionsMac.cmake:
+
2018-12-19 Adrian Perez de Castro <[email protected]>
[GTK] Cannot build with CMake <3.7
Modified: trunk/Source/_javascript_Core/ChangeLog (239555 => 239556)
--- trunk/Source/_javascript_Core/ChangeLog 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/_javascript_Core/ChangeLog 2018-12-27 16:13:47 UTC (rev 239556)
@@ -1,3 +1,12 @@
+2018-12-27 Alex Christensen <[email protected]>
+
+ Resurrect Mac CMake build
+ https://bugs.webkit.org/show_bug.cgi?id=192658
+
+ Reviewed by Yusuke Suzuki.
+
+ * PlatformMac.cmake:
+
2018-12-25 Fujii Hironori <[email protected]>
[JSC][Win][Clang] warning: implicit conversion from 'size_t' (aka 'unsigned long long') to 'int32_t' (aka 'int') changes value from 18446744073709551552 to -64 [-Wconstant-conversion]
Modified: trunk/Source/_javascript_Core/PlatformMac.cmake (239555 => 239556)
--- trunk/Source/_javascript_Core/PlatformMac.cmake 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/_javascript_Core/PlatformMac.cmake 2018-12-27 16:13:47 UTC (rev 239556)
@@ -10,6 +10,7 @@
)
list(APPEND _javascript_Core_PRIVATE_INCLUDE_DIRECTORIES
+ ${DERIVED_SOURCES_WTF_DIR}
${_javascript_CORE_DIR}/disassembler/udis86
${_javascript_CORE_DIR}/inspector/cocoa
${_javascript_CORE_DIR}/inspector/remote/cocoa
Modified: trunk/Source/WTF/ChangeLog (239555 => 239556)
--- trunk/Source/WTF/ChangeLog 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WTF/ChangeLog 2018-12-27 16:13:47 UTC (rev 239556)
@@ -1,3 +1,18 @@
+2018-12-27 Alex Christensen <[email protected]>
+
+ Resurrect Mac CMake build
+ https://bugs.webkit.org/show_bug.cgi?id=192658
+
+ Reviewed by Yusuke Suzuki.
+
+ * wtf/PlatformMac.cmake:
+ * wtf/cf/CFURLExtras.cpp:
+ * wtf/cf/CFURLExtras.h:
+ * wtf/cf/URLCF.cpp:
+ * wtf/cocoa/NSURLExtras.h:
+ * wtf/cocoa/NSURLExtras.mm:
+ * wtf/cocoa/URLCocoa.mm:
+
2018-12-21 Dan Bernstein <[email protected]>
Fixed building for macOS 10.13 using the macOS 10.14 SDK.
Modified: trunk/Source/WTF/wtf/PlatformMac.cmake (239555 => 239556)
--- trunk/Source/WTF/wtf/PlatformMac.cmake 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WTF/wtf/PlatformMac.cmake 2018-12-27 16:13:47 UTC (rev 239556)
@@ -8,11 +8,12 @@
)
list(APPEND WTF_PUBLIC_HEADERS
+ WeakObjCPtr.h
+
cf/CFURLExtras.h
cf/TypeCastsCF.h
cocoa/Entitlements.h
- cocoa/MachSendRight.h
cocoa/NSURLExtras.h
cocoa/SoftLinking.h
@@ -23,6 +24,7 @@
spi/cf/CFBundleSPI.h
spi/cf/CFStringSPI.h
+ spi/cocoa/CFXPCBridgeSPI.h
spi/cocoa/SecuritySPI.h
spi/cocoa/objcSPI.h
@@ -46,7 +48,7 @@
cocoa/AutodrainedPool.cpp
cocoa/CPUTimeCocoa.cpp
- cocoa/Entitlements.cpp
+ cocoa/Entitlements.mm
cocoa/MachSendRight.cpp
cocoa/MainThreadCocoa.mm
cocoa/MemoryFootprintCocoa.cpp
@@ -69,11 +71,11 @@
)
list(APPEND WTF_PRIVATE_INCLUDE_DIRECTORIES
- "${WTF_DIR}/icu"
${DERIVED_SOURCES_WTF_DIR}
)
file(COPY mac/MachExceptions.defs DESTINATION ${DERIVED_SOURCES_WTF_DIR})
+file(COPY "${WTF_DIR}/icu/unicode" DESTINATION ${DERIVED_SOURCES_WTF_DIR})
add_custom_command(
OUTPUT
Modified: trunk/Source/WTF/wtf/cf/CFURLExtras.cpp (239555 => 239556)
--- trunk/Source/WTF/wtf/cf/CFURLExtras.cpp 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WTF/wtf/cf/CFURLExtras.cpp 2018-12-27 16:13:47 UTC (rev 239556)
@@ -24,7 +24,7 @@
*/
#include "config.h"
-#include "CFURLExtras.h"
+#include <wtf/cf/CFURLExtras.h>
#include <wtf/URL.h>
#include <wtf/text/CString.h>
Modified: trunk/Source/WTF/wtf/cf/CFURLExtras.h (239555 => 239556)
--- trunk/Source/WTF/wtf/cf/CFURLExtras.h 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WTF/wtf/cf/CFURLExtras.h 2018-12-27 16:13:47 UTC (rev 239556)
@@ -23,8 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef CFURLExtras_h
-#define CFURLExtras_h
+#pragma once
#include <wtf/Forward.h>
#include <wtf/RetainPtr.h>
@@ -42,5 +41,3 @@
bool isCFURLSameOrigin(CFURLRef, const URL&);
}
-
-#endif // CFURLExtras_h
Modified: trunk/Source/WTF/wtf/cf/URLCF.cpp (239555 => 239556)
--- trunk/Source/WTF/wtf/cf/URLCF.cpp 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WTF/wtf/cf/URLCF.cpp 2018-12-27 16:13:47 UTC (rev 239556)
@@ -26,9 +26,9 @@
#include "config.h"
#include <wtf/URL.h>
-#include "CFURLExtras.h"
-#include "URLParser.h"
#include <CoreFoundation/CFURL.h>
+#include <wtf/URLParser.h>
+#include <wtf/cf/CFURLExtras.h>
#include <wtf/text/CString.h>
namespace WTF {
Modified: trunk/Source/WTF/wtf/cocoa/NSURLExtras.h (239555 => 239556)
--- trunk/Source/WTF/wtf/cocoa/NSURLExtras.h 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WTF/wtf/cocoa/NSURLExtras.h 2018-12-27 16:13:47 UTC (rev 239556)
@@ -26,6 +26,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#pragma once
+
@class NSString;
@class NSURL;
Modified: trunk/Source/WTF/wtf/cocoa/NSURLExtras.mm (239555 => 239556)
--- trunk/Source/WTF/wtf/cocoa/NSURLExtras.mm 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WTF/wtf/cocoa/NSURLExtras.mm 2018-12-27 16:13:47 UTC (rev 239556)
@@ -30,16 +30,16 @@
#import <Foundation/Foundation.h>
#import "NSURLExtras.h"
-#import "CFURLExtras.h"
-#import "URLParser.h"
+#import <unicode/uchar.h>
+#import <unicode/uidna.h>
+#import <unicode/uscript.h>
#import <wtf/Function.h>
#import <wtf/HexNumber.h>
#import <wtf/ObjCRuntimeExtras.h>
#import <wtf/RetainPtr.h>
+#import <wtf/URLParser.h>
#import <wtf/Vector.h>
-#import <unicode/uchar.h>
-#import <unicode/uidna.h>
-#import <unicode/uscript.h>
+#import <wtf/cf/CFURLExtras.h>
// Needs to be big enough to hold an IDN-encoded name.
// For host names bigger than this, we won't do IDN encoding, which is almost certainly OK.
Modified: trunk/Source/WTF/wtf/cocoa/URLCocoa.mm (239555 => 239556)
--- trunk/Source/WTF/wtf/cocoa/URLCocoa.mm 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WTF/wtf/cocoa/URLCocoa.mm 2018-12-27 16:13:47 UTC (rev 239556)
@@ -26,10 +26,10 @@
#import "config.h"
#import <wtf/URL.h>
-#import "CFURLExtras.h"
-#import "NSURLExtras.h"
#import <wtf/ObjCRuntimeExtras.h>
#import <wtf/URLParser.h>
+#import <wtf/cf/CFURLExtras.h>
+#import <wtf/cocoa/NSURLExtras.h>
#import <wtf/text/CString.h>
@interface NSString (WTFNSURLExtras)
Modified: trunk/Source/WebCore/CMakeLists.txt (239555 => 239556)
--- trunk/Source/WebCore/CMakeLists.txt 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WebCore/CMakeLists.txt 2018-12-27 16:13:47 UTC (rev 239556)
@@ -1843,7 +1843,7 @@
DEPENDS ${WebCore_CSS_VALUE_KEYWORDS}
WORKING_DIRECTORY ${DERIVED_SOURCES_WEBCORE_DIR}
COMMAND ${PERL_EXECUTABLE} -ne "print" ${WebCore_CSS_VALUE_KEYWORDS} > ${DERIVED_SOURCES_WEBCORE_DIR}/CSSValueKeywords.in
- COMMAND ${PERL_EXECUTABLE} ${WEBCORE_DIR}/css/makevalues.pl --defines "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}" --preprocessor "${CODE_GENERATOR_PREPROCESSOR}" --gperf-executable "${GPERF_EXECUTABLE}"
+ COMMAND ${PERL_EXECUTABLE} ${WEBCORE_DIR}/css/makevalues.pl --defines "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR} ${CSS_VALUE_PLATFORM_DEFINES}" --preprocessor "${CODE_GENERATOR_PREPROCESSOR}" --gperf-executable "${GPERF_EXECUTABLE}"
VERBATIM)
list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/CSSValueKeywords.cpp)
ADD_SOURCE_WEBCORE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/css/CSSParser.cpp CSSValueKeywords.h)
Modified: trunk/Source/WebCore/ChangeLog (239555 => 239556)
--- trunk/Source/WebCore/ChangeLog 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WebCore/ChangeLog 2018-12-27 16:13:47 UTC (rev 239556)
@@ -1,3 +1,16 @@
+2018-12-27 Alex Christensen <[email protected]>
+
+ Resurrect Mac CMake build
+ https://bugs.webkit.org/show_bug.cgi?id=192658
+
+ Reviewed by Yusuke Suzuki.
+
+ This makes it so JSC and most of WebCore builds.
+ WebCore's use of ARC seems inconsistent, so I'll fix that later.
+
+ * PlatformMac.cmake:
+ * config.h:
+
2018-12-26 Jim Mason <[email protected]>
[FreeType] Restore conditional compilation logic for recent HarfBuzz refactoring
Modified: trunk/Source/WebCore/Modules/webgpu/WHLSL/WHLSLLexer.cpp (239555 => 239556)
--- trunk/Source/WebCore/Modules/webgpu/WHLSL/WHLSLLexer.cpp 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WebCore/Modules/webgpu/WHLSL/WHLSLLexer.cpp 2018-12-27 16:13:47 UTC (rev 239556)
@@ -25,11 +25,11 @@
#pragma once
-#if ENABLE(WEBGPU)
-
#include "config.h"
#include "WHLSLLexer.h"
+#if ENABLE(WEBGPU)
+
namespace WebCore {
namespace WHLSL {
Modified: trunk/Source/WebCore/PAL/ChangeLog (239555 => 239556)
--- trunk/Source/WebCore/PAL/ChangeLog 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WebCore/PAL/ChangeLog 2018-12-27 16:13:47 UTC (rev 239556)
@@ -1,3 +1,12 @@
+2018-12-27 Alex Christensen <[email protected]>
+
+ Resurrect Mac CMake build
+ https://bugs.webkit.org/show_bug.cgi?id=192658
+
+ Reviewed by Yusuke Suzuki.
+
+ * pal/PlatformMac.cmake:
+
2018-12-21 Eric Carlson <[email protected]>
'ended' Event doesn't fire on MediaStreamTrack when a USB camera is unplugged
Modified: trunk/Source/WebCore/PAL/pal/PlatformMac.cmake (239555 => 239556)
--- trunk/Source/WebCore/PAL/pal/PlatformMac.cmake 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WebCore/PAL/pal/PlatformMac.cmake 2018-12-27 16:13:47 UTC (rev 239556)
@@ -16,6 +16,7 @@
spi/cg/ImageIOSPI.h
spi/cocoa/AVKitSPI.h
+ spi/cocoa/AudioToolboxSPI.h
spi/cocoa/CFNSURLConnectionSPI.h
spi/cocoa/CoreTextSPI.h
spi/cocoa/DataDetectorsCoreSPI.h
@@ -47,7 +48,11 @@
spi/cocoa/WebFilterEvaluatorSPI.h
spi/cocoa/pthreadSPI.h
+ spi/ios/DataDetectorsUISPI.h
+ spi/ios/GraphicsServicesSPI.h
+
spi/mac/AVFoundationSPI.h
+ spi/mac/CoreUISPI.h
spi/mac/DataDetectorsSPI.h
spi/mac/HIServicesSPI.h
spi/mac/HIToolboxSPI.h
@@ -55,11 +60,13 @@
spi/mac/MediaRemoteSPI.h
spi/mac/MetadataSPI.h
spi/mac/NSAccessibilitySPI.h
+ spi/mac/NSAppearanceSPI.h
spi/mac/NSApplicationSPI.h
spi/mac/NSCellSPI.h
spi/mac/NSEventSPI.h
spi/mac/NSFontSPI.h
spi/mac/NSGraphicsSPI.h
+ spi/mac/NSImageSPI.h
spi/mac/NSImmediateActionGestureRecognizerSPI.h
spi/mac/NSMenuSPI.h
spi/mac/NSPasteboardSPI.h
@@ -97,7 +104,6 @@
cf/CoreMediaSoftLink.cpp
cocoa/FileSizeFormatterCocoa.mm
- cocoa/LoggingCocoa.mm
cocoa/PassKitSoftLink.mm
crypto/commoncrypto/CryptoDigestCommonCrypto.cpp
@@ -115,6 +121,7 @@
)
list(APPEND PAL_PRIVATE_INCLUDE_DIRECTORIES
+ "${DERIVED_SOURCES_WTF_DIR}"
"${PAL_DIR}/pal/avfoundation"
"${PAL_DIR}/pal/cf"
"${PAL_DIR}/pal/cocoa"
Modified: trunk/Source/WebCore/PlatformMac.cmake (239555 => 239556)
--- trunk/Source/WebCore/PlatformMac.cmake 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WebCore/PlatformMac.cmake 2018-12-27 16:13:47 UTC (rev 239556)
@@ -1,4 +1,3 @@
-find_library(ACCELERATE_LIBRARY accelerate)
find_library(APPLICATIONSERVICES_LIBRARY ApplicationServices)
find_library(AVFOUNDATION_LIBRARY AVFoundation)
find_library(AUDIOTOOLBOX_LIBRARY AudioToolbox)
@@ -23,11 +22,9 @@
list(APPEND WebCore_UNIFIED_SOURCE_LIST_FILES
"SourcesCocoa.txt"
- "SourcesMac.txt"
)
list(APPEND WebCore_LIBRARIES
- ${ACCELERATE_LIBRARY}
${AUDIOTOOLBOX_LIBRARY}
${AUDIOUNIT_LIBRARY}
${AVFOUNDATION_LIBRARY}
@@ -67,6 +64,8 @@
endif ()
list(APPEND WebCore_INCLUDE_DIRECTORIES
+ "${CMAKE_SOURCE_DIR}/Source"
+ "${DERIVED_SOURCES_WTF_DIR}"
"${THIRDPARTY_DIR}/ANGLE"
"${THIRDPARTY_DIR}/ANGLE/include/KHR"
"${WEBCORE_DIR}/accessibility/mac"
@@ -94,6 +93,7 @@
"${WEBCORE_DIR}/platform/graphics/cg"
"${WEBCORE_DIR}/platform/graphics/cv"
"${WEBCORE_DIR}/platform/graphics/gpu"
+ "${WEBCORE_DIR}/platform/graphics/gpu/legacy"
"${WEBCORE_DIR}/platform/graphics/egl"
"${WEBCORE_DIR}/platform/graphics/opentype"
"${WEBCORE_DIR}/platform/graphics/opengl"
@@ -142,11 +142,9 @@
editing/ios/AutofillElements.cpp
editing/mac/AlternativeTextUIController.mm
- editing/mac/DictionaryLookup.mm
editing/mac/EditorMac.mm
editing/mac/TextAlternativeWithRange.mm
editing/mac/TextUndoInsertionMarkupMac.mm
- editing/mac/WebContentReaderMac.mm
html/HTMLSlotElement.cpp
@@ -158,7 +156,6 @@
page/mac/EventHandlerMac.mm
page/mac/ServicesOverlayController.mm
page/mac/TextIndicatorWindow.mm
- page/mac/UserAgentMac.mm
page/mac/WheelEventDeltaFilterMac.mm
page/scrolling/mac/ScrollingCoordinatorMac.mm
@@ -173,7 +170,6 @@
platform/audio/AudioSession.cpp
- platform/audio/cocoa/MediaSessionManagerCocoa.cpp
platform/audio/cocoa/WebAudioBufferList.cpp
platform/audio/mac/CAAudioStreamDescription.cpp
@@ -185,7 +181,6 @@
platform/audio/mac/AudioSessionMac.cpp
platform/audio/mac/CARingBuffer.cpp
platform/audio/mac/FFTFrameMac.cpp
- platform/audio/mac/MediaSessionManagerMac.mm
platform/cf/FileSystemCF.cpp
platform/cf/KeyedDecoderCF.cpp
@@ -202,7 +197,6 @@
platform/cocoa/KeyEventCocoa.mm
platform/cocoa/LocalizedStringsCocoa.mm
platform/cocoa/MIMETypeRegistryCocoa.mm
- platform/cocoa/MachSendRight.cpp
platform/cocoa/NetworkExtensionContentFilter.mm
platform/cocoa/ParentalControlsContentFilter.mm
platform/cocoa/PasteboardCocoa.mm
@@ -328,34 +322,10 @@
platform/graphics/mac/IntPointMac.mm
platform/graphics/mac/IntRectMac.mm
platform/graphics/mac/IntSizeMac.mm
- platform/graphics/mac/MediaPlayerPrivateQTKit.mm
- platform/graphics/mac/MediaTimeQTKit.mm
platform/graphics/mac/PDFDocumentImageMac.mm
platform/graphics/mac/SimpleFontDataCoreText.cpp
platform/graphics/mac/WebLayer.mm
- platform/graphics/metal/GPUBufferMetal.mm
- platform/graphics/metal/GPUCommandBufferMetal.mm
- platform/graphics/metal/GPUCommandQueueMetal.mm
- platform/graphics/metal/GPUComputeCommandEncoderMetal.mm
- platform/graphics/metal/GPUComputePipelineStateMetal.mm
- platform/graphics/metal/GPUDepthStencilDescriptorMetal.mm
- platform/graphics/metal/GPUDepthStencilStateMetal.mm
- platform/graphics/metal/GPUDeviceMetal.mm
- platform/graphics/metal/GPUDrawableMetal.mm
- platform/graphics/metal/GPUFunctionMetal.mm
- platform/graphics/metal/GPULibraryMetal.mm
- platform/graphics/metal/GPURenderCommandEncoderMetal.mm
- platform/graphics/metal/GPURenderPassAttachmentDescriptorMetal.mm
- platform/graphics/metal/GPURenderPassColorAttachmentDescriptorMetal.mm
- platform/graphics/metal/GPURenderPassDepthAttachmentDescriptorMetal.mm
- platform/graphics/metal/GPURenderPassDescriptorMetal.mm
- platform/graphics/metal/GPURenderPipelineColorAttachmentDescriptorMetal.mm
- platform/graphics/metal/GPURenderPipelineDescriptorMetal.mm
- platform/graphics/metal/GPURenderPipelineStateMetal.mm
- platform/graphics/metal/GPUTextureDescriptorMetal.mm
- platform/graphics/metal/GPUTextureMetal.mm
-
platform/graphics/opengl/Extensions3DOpenGL.cpp
platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
@@ -404,7 +374,6 @@
platform/mac/WebCoreObjCExtras.mm
platform/mac/WebGLBlacklist.mm
platform/mac/WebNSAttributedStringExtras.mm
- platform/mac/WebWindowAnimation.mm
platform/mac/WidgetMac.mm
platform/mediastream/mac/MockRealtimeVideoSourceMac.mm
@@ -512,6 +481,7 @@
html/forms
html/parser
html/shadow
+ html/track
inspector/agents
@@ -534,6 +504,7 @@
platform/audio
platform/cf
platform/cocoa
+ platform/ios
platform/graphics
platform/mac
platform/mediastream
@@ -547,6 +518,7 @@
platform/gamepad/cocoa
platform/gamepad/mac
+ platform/graphics/avfoundation
platform/graphics/ca
platform/graphics/cocoa
platform/graphics/cg
@@ -647,6 +619,7 @@
${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
)
+set(CSS_VALUE_PLATFORM_DEFINES WTF_PLATFORM_MAC=1)
list(APPEND WebCoreTestSupport_LIBRARIES PRIVATE WebCore)
list(APPEND WebCoreTestSupport_SOURCES
Modified: trunk/Source/WebCore/SourcesCocoa.txt (239555 => 239556)
--- trunk/Source/WebCore/SourcesCocoa.txt 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WebCore/SourcesCocoa.txt 2018-12-27 16:13:47 UTC (rev 239556)
@@ -494,7 +494,6 @@
platform/mediastream/mac/AudioTrackPrivateMediaStreamCocoa.cpp
platform/mediastream/mac/AVCaptureDeviceManager.mm @no-unify
-platform/mediastream/mac/AVMediaCaptureSource.mm @no-unify
platform/mediastream/mac/AVVideoCaptureSource.mm @no-unify
platform/mediastream/mac/MockRealtimeVideoSourceMac.mm
Modified: trunk/Source/WebCore/config.h (239555 => 239556)
--- trunk/Source/WebCore/config.h 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WebCore/config.h 2018-12-27 16:13:47 UTC (rev 239556)
@@ -36,7 +36,10 @@
// Using CMake with Unix makefiles does not use prefix headers.
#if PLATFORM(MAC) && defined(BUILDING_WITH_CMAKE)
#include "WebCorePrefix.h"
+#ifndef JSC_API_AVAILABLE
+#define JSC_API_AVAILABLE(...)
#endif
+#endif
#ifdef __cplusplus
Modified: trunk/Source/WebCore/platform/mac/WebCoreFullScreenPlaceholderView.h (239555 => 239556)
--- trunk/Source/WebCore/platform/mac/WebCoreFullScreenPlaceholderView.h 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WebCore/platform/mac/WebCoreFullScreenPlaceholderView.h 2018-12-27 16:13:47 UTC (rev 239556)
@@ -26,12 +26,13 @@
#if PLATFORM(MAC)
#import <wtf/RetainPtr.h>
+#import <wtf/WeakObjCPtr.h>
WEBCORE_EXPORT @interface WebCoreFullScreenPlaceholderView : NSView {
@private
RetainPtr<NSVisualEffectView> _effectView;
RetainPtr<NSTextField> _exitWarning;
- __weak NSResponder *_target;
+ WeakObjCPtr<NSResponder> _target;
}
@property (nullable, strong) id contents;
@property (nullable, weak) NSResponder *target;
Modified: trunk/Source/WebCore/platform/mac/WebCoreFullScreenPlaceholderView.mm (239555 => 239556)
--- trunk/Source/WebCore/platform/mac/WebCoreFullScreenPlaceholderView.mm 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WebCore/platform/mac/WebCoreFullScreenPlaceholderView.mm 2018-12-27 16:13:47 UTC (rev 239556)
@@ -81,8 +81,16 @@
return self;
}
-@synthesize target = _target;
+- (NSResponder *)target
+{
+ return _target.get().get();
+}
+- (void)setTarget:(NSResponder *)target
+{
+ _target = target;
+}
+
@dynamic contents;
- (void)setContents:(id)contents
Deleted: trunk/Source/WebCore/platform/mediastream/mac/AVMediaCaptureSource.mm (239555 => 239556)
--- trunk/Source/WebCore/platform/mediastream/mac/AVMediaCaptureSource.mm 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WebCore/platform/mediastream/mac/AVMediaCaptureSource.mm 2018-12-27 16:13:47 UTC (rev 239556)
@@ -1,439 +0,0 @@
-/*
- * Copyright (C) 2013-2015 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import "config.h"
-#import "AVMediaCaptureSource.h"
-
-#if ENABLE(MEDIA_STREAM) && USE(AVFOUNDATION)
-
-#import "AVCaptureDeviceManager.h"
-#import "AudioSourceProvider.h"
-#import "Logging.h"
-#import "MediaConstraints.h"
-#import "RealtimeMediaSourceSettings.h"
-#import <AVFoundation/AVCaptureDevice.h>
-#import <AVFoundation/AVCaptureInput.h>
-#import <AVFoundation/AVCaptureOutput.h>
-#import <AVFoundation/AVCaptureSession.h>
-#import <AVFoundation/AVError.h>
-#import <objc/runtime.h>
-#import <wtf/MainThread.h>
-
-#import <pal/cf/CoreMediaSoftLink.h>
-
-typedef AVCaptureConnection AVCaptureConnectionType;
-typedef AVCaptureDevice AVCaptureDeviceTypedef;
-typedef AVCaptureDeviceInput AVCaptureDeviceInputType;
-typedef AVCaptureOutput AVCaptureOutputType;
-typedef AVCaptureSession AVCaptureSessionType;
-typedef AVCaptureAudioDataOutput AVCaptureAudioDataOutputType;
-typedef AVCaptureVideoDataOutput AVCaptureVideoDataOutputType;
-
-SOFT_LINK_FRAMEWORK_OPTIONAL(AVFoundation)
-
-SOFT_LINK_CLASS(AVFoundation, AVCaptureAudioDataOutput)
-SOFT_LINK_CLASS(AVFoundation, AVCaptureConnection)
-SOFT_LINK_CLASS(AVFoundation, AVCaptureDevice)
-SOFT_LINK_CLASS(AVFoundation, AVCaptureDeviceInput)
-SOFT_LINK_CLASS(AVFoundation, AVCaptureOutput)
-SOFT_LINK_CLASS(AVFoundation, AVCaptureSession)
-SOFT_LINK_CLASS(AVFoundation, AVCaptureVideoDataOutput)
-
-#define AVCaptureAudioDataOutput getAVCaptureAudioDataOutputClass()
-#define AVCaptureConnection getAVCaptureConnectionClass()
-#define AVCaptureDevice getAVCaptureDeviceClass()
-#define AVCaptureDeviceInput getAVCaptureDeviceInputClass()
-#define AVCaptureOutput getAVCaptureOutputClass()
-#define AVCaptureSession getAVCaptureSessionClass()
-#define AVCaptureVideoDataOutput getAVCaptureVideoDataOutputClass()
-
-SOFT_LINK_CONSTANT(AVFoundation, AVMediaTypeAudio, NSString *)
-SOFT_LINK_CONSTANT(AVFoundation, AVMediaTypeMuxed, NSString *)
-SOFT_LINK_CONSTANT(AVFoundation, AVMediaTypeVideo, NSString *)
-
-#define AVMediaTypeAudio getAVMediaTypeAudio()
-#define AVMediaTypeMuxed getAVMediaTypeMuxed()
-#define AVMediaTypeVideo getAVMediaTypeVideo()
-
-#if PLATFORM(IOS_FAMILY)
-SOFT_LINK_POINTER_OPTIONAL(AVFoundation, AVCaptureSessionRuntimeErrorNotification, NSString *)
-SOFT_LINK_POINTER_OPTIONAL(AVFoundation, AVCaptureSessionWasInterruptedNotification, NSString *)
-SOFT_LINK_POINTER_OPTIONAL(AVFoundation, AVCaptureSessionInterruptionEndedNotification, NSString *)
-SOFT_LINK_POINTER_OPTIONAL(AVFoundation, AVCaptureSessionInterruptionReasonKey, NSString *)
-SOFT_LINK_POINTER_OPTIONAL(AVFoundation, AVCaptureSessionErrorKey, NSString *)
-
-#define AVCaptureSessionRuntimeErrorNotification getAVCaptureSessionRuntimeErrorNotification()
-#define AVCaptureSessionWasInterruptedNotification getAVCaptureSessionWasInterruptedNotification()
-#define AVCaptureSessionInterruptionEndedNotification getAVCaptureSessionInterruptionEndedNotification()
-#define AVCaptureSessionInterruptionReasonKey getAVCaptureSessionInterruptionReasonKey()
-#define AVCaptureSessionErrorKey getAVCaptureSessionErrorKey()
-#endif
-
-using namespace WebCore;
-
-@interface WebCoreAVMediaCaptureSourceObserver : NSObject<AVCaptureAudioDataOutputSampleBufferDelegate, AVCaptureVideoDataOutputSampleBufferDelegate>
-{
- AVMediaCaptureSource* m_callback;
-}
-
--(id)initWithCallback:(AVMediaCaptureSource*)callback;
--(void)disconnect;
--(void)addNotificationObservers;
--(void)removeNotificationObservers;
--(void)captureOutput:(AVCaptureOutputType*)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnectionType*)connection;
--(void)observeValueForKeyPath:keyPath ofObject:(id)object change:(NSDictionary*)change context:(void*)context;
-#if PLATFORM(IOS_FAMILY)
--(void)sessionRuntimeError:(NSNotification*)notification;
--(void)beginSessionInterrupted:(NSNotification*)notification;
--(void)endSessionInterrupted:(NSNotification*)notification;
-#endif
-@end
-
-namespace WebCore {
-
-static NSArray<NSString*>* sessionKVOProperties();
-
-static dispatch_queue_t globaAudioCaptureSerialQueue()
-{
- static dispatch_queue_t globalQueue;
- static dispatch_once_t onceToken;
- dispatch_once(&onceToken, ^{
- globalQueue = dispatch_queue_create("WebCoreAVMediaCaptureSource audio capture queue", DISPATCH_QUEUE_SERIAL);
- });
- return globalQueue;
-}
-
-static dispatch_queue_t globaVideoCaptureSerialQueue()
-{
- static dispatch_queue_t globalQueue;
- static dispatch_once_t onceToken;
- dispatch_once(&onceToken, ^{
- globalQueue = dispatch_queue_create_with_target("WebCoreAVMediaCaptureSource video capture queue", DISPATCH_QUEUE_SERIAL, dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0));
- });
- return globalQueue;
-}
-
-AVMediaCaptureSource::AVMediaCaptureSource(AVCaptureDeviceTypedef* device, const AtomicString& id, RealtimeMediaSource::Type type)
- : RealtimeMediaSource(id, type, device.localizedName)
- , m_objcObserver(adoptNS([[WebCoreAVMediaCaptureSourceObserver alloc] initWithCallback:this]))
- , m_device(device)
-{
-#if PLATFORM(IOS_FAMILY)
- static_assert(static_cast<int>(InterruptionReason::VideoNotAllowedInBackground) == static_cast<int>(AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableInBackground), "InterruptionReason::VideoNotAllowedInBackground is not AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableInBackground as expected");
- static_assert(static_cast<int>(InterruptionReason::VideoNotAllowedInSideBySide) == AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableWithMultipleForegroundApps, "InterruptionReason::VideoNotAllowedInSideBySide is not AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableWithMultipleForegroundApps as expected");
- static_assert(static_cast<int>(InterruptionReason::VideoInUse) == AVCaptureSessionInterruptionReasonVideoDeviceInUseByAnotherClient, "InterruptionReason::VideoInUse is not AVCaptureSessionInterruptionReasonVideoDeviceInUseByAnotherClient as expected");
- static_assert(static_cast<int>(InterruptionReason::AudioInUse) == AVCaptureSessionInterruptionReasonAudioDeviceInUseByAnotherClient, "InterruptionReason::AudioInUse is not AVCaptureSessionInterruptionReasonAudioDeviceInUseByAnotherClient as expected");
-#endif
-
- setPersistentID(String(device.uniqueID));
-}
-
-AVMediaCaptureSource::~AVMediaCaptureSource()
-{
- [m_objcObserver disconnect];
-
- if (!m_session)
- return;
-
- for (NSString *keyName in sessionKVOProperties())
- [m_session removeObserver:m_objcObserver.get() forKeyPath:keyName];
-
- if ([m_session isRunning])
- [m_session stopRunning];
-
-}
-
-void AVMediaCaptureSource::startProducingData()
-{
- if (!m_session) {
- if (!setupSession())
- return;
- }
-
- if ([m_session isRunning])
- return;
-
- [m_objcObserver addNotificationObservers];
- [m_session startRunning];
-}
-
-void AVMediaCaptureSource::stopProducingData()
-{
- if (!m_session)
- return;
-
- [m_objcObserver removeNotificationObservers];
-
- if ([m_session isRunning])
- [m_session stopRunning];
-
- m_interruption = InterruptionReason::None;
-#if PLATFORM(IOS_FAMILY)
- m_session = nullptr;
-#endif
-}
-
-void AVMediaCaptureSource::beginConfiguration()
-{
- if (m_session)
- [m_session beginConfiguration];
-}
-
-void AVMediaCaptureSource::commitConfiguration()
-{
- if (m_session)
- [m_session commitConfiguration];
-}
-
-void AVMediaCaptureSource::initializeSettings()
-{
- if (m_currentSettings.deviceId().isEmpty())
- m_currentSettings.setSupportedConstraints(supportedConstraints());
-
- m_currentSettings.setDeviceId(id());
- updateSettings(m_currentSettings);
-}
-
-const RealtimeMediaSourceSettings& AVMediaCaptureSource::settings() const
-{
- const_cast<AVMediaCaptureSource&>(*this).initializeSettings();
- return m_currentSettings;
-}
-
-RealtimeMediaSourceSupportedConstraints& AVMediaCaptureSource::supportedConstraints()
-{
- if (m_supportedConstraints.supportsDeviceId())
- return m_supportedConstraints;
-
- m_supportedConstraints.setSupportsDeviceId(true);
- initializeSupportedConstraints(m_supportedConstraints);
-
- return m_supportedConstraints;
-}
-
-void AVMediaCaptureSource::initializeCapabilities()
-{
- m_capabilities = std::make_unique<RealtimeMediaSourceCapabilities>(supportedConstraints());
- m_capabilities->setDeviceId(id());
-
- initializeCapabilities(*m_capabilities.get());
-}
-
-const RealtimeMediaSourceCapabilities& AVMediaCaptureSource::capabilities() const
-{
- if (!m_capabilities)
- const_cast<AVMediaCaptureSource&>(*this).initializeCapabilities();
- return *m_capabilities;
-}
-
-bool AVMediaCaptureSource::setupSession()
-{
- if (m_session)
- return true;
-
- m_session = adoptNS([allocAVCaptureSessionInstance() init]);
- for (NSString* keyName in sessionKVOProperties())
- [m_session addObserver:m_objcObserver.get() forKeyPath:keyName options:NSKeyValueObservingOptionNew context:(void *)nil];
-
- [m_session beginConfiguration];
- bool success = setupCaptureSession();
- [m_session commitConfiguration];
-
- if (!success)
- captureFailed();
-
- return success;
-}
-
-void AVMediaCaptureSource::captureSessionIsRunningDidChange(bool state)
-{
- scheduleDeferredTask([this, state] {
- if ((state == m_isRunning) && (state == !muted()))
- return;
-
- m_isRunning = state;
- notifyMutedChange(!m_isRunning);
- });
-}
-
-#if PLATFORM(IOS_FAMILY)
-void AVMediaCaptureSource::captureSessionRuntimeError(RetainPtr<NSError> error)
-{
- if (!m_isRunning || error.get().code != AVErrorMediaServicesWereReset)
- return;
-
- // Try to restart the session, but reset m_isRunning immediately so if it fails we won't try again.
- [m_session startRunning];
- m_isRunning = [m_session isRunning];
-}
-
-void AVMediaCaptureSource::captureSessionBeginInterruption(RetainPtr<NSNotification> notification)
-{
- m_interruption = static_cast<AVMediaCaptureSource::InterruptionReason>([notification.get().userInfo[AVCaptureSessionInterruptionReasonKey] integerValue]);
-}
-
-void AVMediaCaptureSource::captureSessionEndInterruption(RetainPtr<NSNotification>)
-{
- InterruptionReason reason = m_interruption;
-
- m_interruption = InterruptionReason::None;
- if (reason != InterruptionReason::VideoNotAllowedInSideBySide || m_isRunning || !m_session)
- return;
-
- [m_session startRunning];
- m_isRunning = [m_session isRunning];
-}
-#endif
-
-void AVMediaCaptureSource::setVideoSampleBufferDelegate(AVCaptureVideoDataOutputType* videoOutput)
-{
- [videoOutput setSampleBufferDelegate:m_objcObserver.get() queue:globaVideoCaptureSerialQueue()];
-}
-
-void AVMediaCaptureSource::setAudioSampleBufferDelegate(AVCaptureAudioDataOutputType* audioOutput)
-{
- [audioOutput setSampleBufferDelegate:m_objcObserver.get() queue:globaAudioCaptureSerialQueue()];
-}
-
-bool AVMediaCaptureSource::interrupted() const
-{
- if (m_interruption != InterruptionReason::None)
- return true;
-
- return RealtimeMediaSource::interrupted();
-}
-
-NSArray<NSString*>* sessionKVOProperties()
-{
- static NSArray* keys = [@[@"running"] retain];
- return keys;
-}
-
-} // namespace WebCore
-
-@implementation WebCoreAVMediaCaptureSourceObserver
-
-- (id)initWithCallback:(AVMediaCaptureSource*)callback
-{
- self = [super init];
- if (!self)
- return nil;
-
- m_callback = callback;
-
- return self;
-}
-
-- (void)disconnect
-{
- [NSObject cancelPreviousPerformRequestsWithTarget:self];
- [self removeNotificationObservers];
- m_callback = nullptr;
-}
-
-- (void)addNotificationObservers
-{
-#if PLATFORM(IOS_FAMILY)
- ASSERT(m_callback);
-
- NSNotificationCenter* center = [NSNotificationCenter defaultCenter];
- AVCaptureSessionType* session = m_callback->session();
-
- [center addObserver:self selector:@selector(sessionRuntimeError:) name:AVCaptureSessionRuntimeErrorNotification object:session];
- [center addObserver:self selector:@selector(beginSessionInterrupted:) name:AVCaptureSessionWasInterruptedNotification object:session];
- [center addObserver:self selector:@selector(endSessionInterrupted:) name:AVCaptureSessionInterruptionEndedNotification object:session];
-#endif
-}
-
-- (void)removeNotificationObservers
-{
-#if PLATFORM(IOS_FAMILY)
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-#endif
-}
-
-- (void)captureOutput:(AVCaptureOutputType*)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnectionType*)connection
-{
- if (!m_callback)
- return;
-
- m_callback->captureOutputDidOutputSampleBufferFromConnection(captureOutput, sampleBuffer, connection);
-}
-
-- (void)observeValueForKeyPath:keyPath ofObject:(id)object change:(NSDictionary*)change context:(void*)context
-{
- UNUSED_PARAM(object);
- UNUSED_PARAM(context);
-
- if (!m_callback)
- return;
-
- id newValue = [change valueForKey:NSKeyValueChangeNewKey];
-
-#if !LOG_DISABLED
- bool willChange = [[change valueForKey:NSKeyValueChangeNotificationIsPriorKey] boolValue];
-
- if (willChange)
- LOG(Media, "WebCoreAVMediaCaptureSourceObserver::observeValueForKeyPath(%p) - will change, keyPath = %s", self, [keyPath UTF8String]);
- else {
- RetainPtr<NSString> valueString = adoptNS([[NSString alloc] initWithFormat:@"%@", newValue]);
- LOG(Media, "WebCoreAVMediaCaptureSourceObserver::observeValueForKeyPath(%p) - did change, keyPath = %s, value = %s", self, [keyPath UTF8String], [valueString.get() UTF8String]);
- }
-#endif
-
- if ([keyPath isEqualToString:@"running"])
- m_callback->captureSessionIsRunningDidChange([newValue boolValue]);
-}
-
-#if PLATFORM(IOS_FAMILY)
-- (void)sessionRuntimeError:(NSNotification*)notification
-{
- NSError *error = notification.userInfo[AVCaptureSessionErrorKey];
- LOG(Media, "WebCoreAVMediaCaptureSourceObserver::sessionRuntimeError(%p) - error = %s", self, [[error localizedDescription] UTF8String]);
-
- if (m_callback)
- m_callback->captureSessionRuntimeError(error);
-}
-
--(void)beginSessionInterrupted:(NSNotification*)notification
-{
- LOG(Media, "WebCoreAVMediaCaptureSourceObserver::beginSessionInterrupted(%p) - reason = %d", self, [notification.userInfo[AVCaptureSessionInterruptionReasonKey] integerValue]);
-
- if (m_callback)
- m_callback->captureSessionBeginInterruption(notification);
-}
-
-- (void)endSessionInterrupted:(NSNotification*)notification
-{
- LOG(Media, "WebCoreAVMediaCaptureSourceObserver::endSessionInterrupted(%p)", self);
-
- if (m_callback)
- m_callback->captureSessionEndInterruption(notification);
-}
-#endif
-
-@end
-
-#endif // ENABLE(MEDIA_STREAM)
Modified: trunk/Source/WebKit/ChangeLog (239555 => 239556)
--- trunk/Source/WebKit/ChangeLog 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WebKit/ChangeLog 2018-12-27 16:13:47 UTC (rev 239556)
@@ -1,3 +1,12 @@
+2018-12-27 Alex Christensen <[email protected]>
+
+ Resurrect Mac CMake build
+ https://bugs.webkit.org/show_bug.cgi?id=192658
+
+ Reviewed by Yusuke Suzuki.
+
+ * PlatformMac.cmake:
+
2018-12-26 Fujii Hironori <[email protected]>
[MSVC] error C2381: 'WebKit::NetworkHTTPSUpgradeChecker::~NetworkHTTPSUpgradeChecker': redefinition; '__declspec(noreturn)' or '[[noreturn]]' differs
Modified: trunk/Source/WebKit/PlatformMac.cmake (239555 => 239556)
--- trunk/Source/WebKit/PlatformMac.cmake 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WebKit/PlatformMac.cmake 2018-12-27 16:13:47 UTC (rev 239556)
@@ -95,8 +95,6 @@
Shared/API/c/mac/WKWebArchive.cpp
Shared/API/c/mac/WKWebArchiveResource.cpp
- Shared/Authentication/mac/AuthenticationManager.mac.mm
-
Shared/Cocoa/APIDataCocoa.mm
Shared/Cocoa/APIObject.mm
Shared/Cocoa/ChildProcessCocoa.mm
@@ -137,7 +135,6 @@
Shared/mac/ChildProcessMac.mm
Shared/mac/CodeSigning.mm
Shared/mac/ColorSpaceData.mm
- Shared/mac/CookieStorageShimLibrary.cpp
Shared/mac/HangDetectionDisablerMac.mm
Shared/mac/NativeWebGestureEventMac.mm
Shared/mac/NativeWebKeyboardEventMac.mm
@@ -263,7 +260,6 @@
UIProcess/Cocoa/WebPasteboardProxyCocoa.mm
UIProcess/Cocoa/WebProcessPoolCocoa.mm
UIProcess/Cocoa/WebProcessProxyCocoa.mm
- UIProcess/Cocoa/WebResourceLoadStatisticsStoreCocoa.mm
UIProcess/Cocoa/WebURLSchemeHandlerCocoa.mm
UIProcess/Cocoa/WebViewImpl.mm
@@ -271,8 +267,6 @@
UIProcess/Network/CustomProtocols/LegacyCustomProtocolManagerProxy.cpp
- UIProcess/Network/mac/NetworkProcessProxyMac.mm
-
UIProcess/Plugins/mac/PluginInfoStoreMac.mm
UIProcess/Plugins/mac/PluginProcessManagerMac.mm
UIProcess/Plugins/mac/PluginProcessProxyMac.mm
Modified: trunk/Source/WebKitLegacy/ChangeLog (239555 => 239556)
--- trunk/Source/WebKitLegacy/ChangeLog 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WebKitLegacy/ChangeLog 2018-12-27 16:13:47 UTC (rev 239556)
@@ -1,3 +1,12 @@
+2018-12-27 Alex Christensen <[email protected]>
+
+ Resurrect Mac CMake build
+ https://bugs.webkit.org/show_bug.cgi?id=192658
+
+ Reviewed by Yusuke Suzuki.
+
+ * PlatformMac.cmake:
+
2018-12-20 Yusuke Suzuki <[email protected]>
Use Ref<> as much as possible
Modified: trunk/Source/WebKitLegacy/PlatformMac.cmake (239555 => 239556)
--- trunk/Source/WebKitLegacy/PlatformMac.cmake 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/WebKitLegacy/PlatformMac.cmake 2018-12-27 16:13:47 UTC (rev 239556)
@@ -6,25 +6,22 @@
list(APPEND WebKitLegacy_INCLUDE_DIRECTORIES
"${DERIVED_SOURCES_WEBKITLEGACY_DIR}"
"${CMAKE_SOURCE_DIR}/WebKitLibraries"
+ "${WEBKITLEGACY_DIR}/mac"
+ "${WEBKITLEGACY_DIR}/mac/Carbon"
+ "${WEBKITLEGACY_DIR}/mac/DefaultDelegates"
+ "${WEBKITLEGACY_DIR}/mac/DOM"
+ "${WEBKITLEGACY_DIR}/mac/History"
+ "${WEBKITLEGACY_DIR}/mac/icu"
+ "${WEBKITLEGACY_DIR}/mac/Misc"
+ "${WEBKITLEGACY_DIR}/mac/Panels"
+ "${WEBKITLEGACY_DIR}/mac/Plugins"
+ "${WEBKITLEGACY_DIR}/mac/Plugins/Hosted"
+ "${WEBKITLEGACY_DIR}/mac/Storage"
+ "${WEBKITLEGACY_DIR}/mac/WebCoreSupport"
+ "${WEBKITLEGACY_DIR}/mac/WebInspector"
+ "${WEBKITLEGACY_DIR}/mac/WebView"
)
-list(APPEND WebKitLegacy_SYSTEM_INCLUDE_DIRECTORIES
- mac
- mac/Carbon
- mac/DefaultDelegates
- mac/DOM
- mac/History
- mac/icu
- mac/Misc
- mac/Panels
- mac/Plugins
- mac/Plugins/Hosted
- mac/Storage
- mac/WebCoreSupport
- mac/WebInspector
- mac/WebView
-)
-
list(APPEND WebKitLegacy_SOURCES
cf/WebCoreSupport/WebInspectorClientCF.cpp
@@ -271,7 +268,6 @@
mac/WebCoreSupport/WebProgressTrackerClient.mm
mac/WebCoreSupport/WebSecurityOrigin.mm
mac/WebCoreSupport/WebSelectionServiceController.mm
- mac/WebCoreSupport/WebUserMediaClient.mm
mac/WebCoreSupport/WebValidationMessageClient.mm
mac/WebCoreSupport/WebVisitedLinkStore.mm
Modified: trunk/Source/cmake/OptionsMac.cmake (239555 => 239556)
--- trunk/Source/cmake/OptionsMac.cmake 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Source/cmake/OptionsMac.cmake 2018-12-27 16:13:47 UTC (rev 239556)
@@ -27,19 +27,22 @@
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_LEGACY_ENCRYPTED_MEDIA PRIVATE ON)
-WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LETTERPRESS PRIVATE ON)
+WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LETTERPRESS PRIVATE OFF)
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MEDIA_SOURCE PRIVATE ON)
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MEMORY_SAMPLER PRIVATE ON)
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MOUSE_CURSOR_SCALE PRIVATE ON)
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_PDFKIT_PLUGIN PRIVATE ON)
+WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_RESOURCE_LOAD_STATISTICS PRIVATE ON)
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_RESOURCE_USAGE PRIVATE ON)
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_RUBBER_BANDING PRIVATE ON)
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SERVICE_CONTROLS PRIVATE ON)
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SPEECH_SYNTHESIS PRIVATE ON)
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_TELEPHONE_NUMBER_DETECTION PRIVATE ON)
+WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_VIDEO_PRESENTATION_MODE PRIVATE ON)
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEBGL2 PRIVATE ON)
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEBGPU PRIVATE ON)
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEBMETAL PRIVATE ON)
+WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WIRELESS_PLAYBACK_TARGET PRIVATE ON)
# FIXME: These are turned off temporarily to get CMake working easier.
# https://bugs.webkit.org/show_bug.cgi?id=135856
Modified: trunk/Tools/ChangeLog (239555 => 239556)
--- trunk/Tools/ChangeLog 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Tools/ChangeLog 2018-12-27 16:13:47 UTC (rev 239556)
@@ -1,3 +1,14 @@
+2018-12-27 Alex Christensen <[email protected]>
+
+ Resurrect Mac CMake build
+ https://bugs.webkit.org/show_bug.cgi?id=192658
+
+ Reviewed by Yusuke Suzuki.
+
+ * DumpRenderTree/PlatformMac.cmake:
+ * MiniBrowser/mac/CMakeLists.txt:
+ * TestWebKitAPI/PlatformMac.cmake:
+
2018-12-26 Adrian Perez de Castro <[email protected]>
[Tools] Remove references to Bison and Flex
Modified: trunk/Tools/DumpRenderTree/PlatformMac.cmake (239555 => 239556)
--- trunk/Tools/DumpRenderTree/PlatformMac.cmake 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Tools/DumpRenderTree/PlatformMac.cmake 2018-12-27 16:13:47 UTC (rev 239556)
@@ -77,7 +77,6 @@
mac/DumpRenderTreeDraggingInfo.mm
mac/DumpRenderTreeMain.mm
mac/DumpRenderTreePasteboard.mm
- mac/DumpRenderTreeSpellChecker.mm
mac/DumpRenderTreeWindow.mm
mac/EditingDelegate.mm
mac/EventSendingController.mm
Modified: trunk/Tools/MiniBrowser/mac/CMakeLists.txt (239555 => 239556)
--- trunk/Tools/MiniBrowser/mac/CMakeLists.txt 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Tools/MiniBrowser/mac/CMakeLists.txt 2018-12-27 16:13:47 UTC (rev 239556)
@@ -12,7 +12,6 @@
${MINIBROWSER_DIR}/WK2BrowserWindowController.m
${MINIBROWSER_DIR}/main.m
${TOOLS_DIR}/MiniBrowser/MBToolbarItem.m
- ${TOOLS_DIR}/MiniBrowser/MiniBrowserWebProcessPlugIn.m
)
set(MiniBrowser_INCLUDE_DIRECTORIES
Modified: trunk/Tools/TestWebKitAPI/PlatformMac.cmake (239555 => 239556)
--- trunk/Tools/TestWebKitAPI/PlatformMac.cmake 2018-12-27 04:01:23 UTC (rev 239555)
+++ trunk/Tools/TestWebKitAPI/PlatformMac.cmake 2018-12-27 16:13:47 UTC (rev 239556)
@@ -25,7 +25,6 @@
)
set(bundle_harness_SOURCES
- ${TESTWEBKITAPI_DIR}/cocoa/InstanceMethodSwizzler.mm
${TESTWEBKITAPI_DIR}/cocoa/PlatformUtilitiesCocoa.mm
${TESTWEBKITAPI_DIR}/cocoa/UtilitiesCocoa.mm
${TESTWEBKITAPI_DIR}/mac/InjectedBundleControllerMac.mm