Changeset 282190 in webkit
- Timestamp:
- Sep 8, 2021, 8:31:01 PM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/workers/service/ServiceWorkerFetchResult.h (modified) (1 diff)
-
WebKit/CMakeLists.txt (modified) (1 diff)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/Scripts/webkit/messages.py (modified) (2 diffs)
-
WebKit/Scripts/webkit/tests/MessageArgumentDescriptions.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r282165 r282190 1 2021-09-08 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 generated MessageArgumentDescriptions.cpp can't compile for non-Cocoa ports due to missing headers 4 https://bugs.webkit.org/show_bug.cgi?id=230075 5 6 Reviewed by Ryosuke Niwa. 7 8 * workers/service/ServiceWorkerFetchResult.h: Added a missing 9 header inclusion for MessageArgumentDescriptions.cpp. 10 1 11 2021-09-08 Fujii Hironori <Hironori.Fujii@sony.com> 2 12 -
trunk/Source/WebCore/workers/service/ServiceWorkerFetchResult.h
r280953 r282190 32 32 #include "ResourceError.h" 33 33 #include "ScriptBuffer.h" 34 #include "ServiceWorkerJobDataIdentifier.h" 34 35 #include "ServiceWorkerRegistrationKey.h" 35 36 #include "ServiceWorkerTypes.h" -
trunk/Source/WebKit/CMakeLists.txt
r282130 r282190 456 456 list(APPEND ${_output_source} ${WebKit_DERIVED_SOURCES_DIR}/${_name}MessageReceiver.cpp) 457 457 endforeach () 458 list(APPEND ${_output_source} ${WebKit_DERIVED_SOURCES_DIR}/MessageNames.cpp) 458 459 list(APPEND ${_output_source} 460 ${WebKit_DERIVED_SOURCES_DIR}/MessageArgumentDescriptions.cpp 461 ${WebKit_DERIVED_SOURCES_DIR}/MessageNames.cpp 462 ) 459 463 460 464 add_custom_command( -
trunk/Source/WebKit/ChangeLog
r282189 r282190 1 2021-09-08 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 generated MessageArgumentDescriptions.cpp can't compile for non-Cocoa ports due to missing headers 4 https://bugs.webkit.org/show_bug.cgi?id=230075 5 6 Reviewed by Ryosuke Niwa. 7 8 The generated MessageArgumentDescriptions.cpp unconditionally 9 included platform specific headers, for example 10 <WebCore/CAAudioStreamDescription.h>. 11 12 generate_message_argument_description_implementation generates the 13 #includes, it should take receiver.condition into account. 14 15 * CMakeLists.txt: 16 (GENERATE_MESSAGE_SOURCES): Added MessageArgumentDescriptions.cpp to compile. 17 * Scripts/webkit/messages.py: 18 (generate_message_argument_description_implementation): 19 * Scripts/webkit/tests/MessageArgumentDescriptions.cpp: 20 1 21 2021-09-08 Tim Horton <timothy_horton@apple.com> 2 22 -
trunk/Source/WebKit/Scripts/webkit/messages.py
r282115 r282190 1232 1232 1233 1233 def generate_message_argument_description_implementation(receivers, receiver_headers): 1234 header_conditions = {1235 '"JSIPCBinding.h"': [None]1236 }1237 for receiver in receivers:1238 if receiver.has_attribute(BUILTIN_ATTRIBUTE):1239 continue1240 header_conditions['"%s"' % messages_header_filename(receiver)] = [None]1241 collect_header_conditions_for_receiver(receiver, header_conditions)1242 1243 1234 result = [] 1244 1235 result.append(_license_header) … … 1248 1239 result.append('#if ENABLE(IPC_TESTING_API)\n') 1249 1240 result.append('\n') 1250 result += generate_header_includes_from_conditions(header_conditions) 1241 result.append('#include "JSIPCBinding.h"\n') 1242 1243 for receiver in receivers: 1244 if receiver.has_attribute(BUILTIN_ATTRIBUTE): 1245 continue 1246 if receiver.condition: 1247 result.append('#if %s\n' % receiver.condition) 1248 header_conditions = { 1249 '"%s"' % messages_header_filename(receiver): [None] 1250 } 1251 collect_header_conditions_for_receiver(receiver, header_conditions) 1252 result += generate_header_includes_from_conditions(header_conditions) 1253 if receiver.condition: 1254 result.append('#endif\n') 1255 1251 1256 result.append('\n') 1252 1257 -
trunk/Source/WebKit/Scripts/webkit/tests/MessageArgumentDescriptions.cpp
r281732 r282190 28 28 #if ENABLE(IPC_TESTING_API) 29 29 30 #include "JSIPCBinding.h" 30 31 #include "ArgumentCoders.h" 31 #if USE(AVFOUNDATION) 32 #include "ArgumentCodersCF.h" 33 #endif 32 #include "TestClassName.h" 33 #if ENABLE(TEST_FEATURE) 34 #include "TestTwoStateEnum.h" 35 #endif 36 #include "TestWithSuperclassMessages.h" 37 #include <optional> 38 #include <wtf/text/WTFString.h> 39 #if (ENABLE(WEBKIT2) && (NESTED_MASTER_CONDITION || MASTER_OR && MASTER_AND)) 40 #include "ArgumentCoders.h" 34 41 #include "Connection.h" 35 42 #if ENABLE(DEPRECATED_FEATURE) || ENABLE(EXPERIMENTAL_FEATURE) … … 39 46 #include "GestureTypes.h" 40 47 #endif 41 #include "IPCSemaphore.h"42 #include "JSIPCBinding.h"43 48 #if PLATFORM(MAC) 44 49 #include "MachPort.h" 45 50 #endif 46 51 #include "Plugin.h" 47 #include "StreamConnectionBuffer.h"48 #include "TestClassName.h"49 #if ENABLE(TEST_FEATURE)50 #include "TestTwoStateEnum.h"51 #endif52 #include "TestWithCVPixelBufferMessages.h"53 #include "TestWithIfMessageMessages.h"54 #include "TestWithImageDataMessages.h"55 52 #include "TestWithLegacyReceiverMessages.h" 56 #include "TestWithSemaphoreMessages.h" 57 #include "TestWithStreamBufferMessages.h" 58 #include "TestWithStreamMessages.h" 59 #include "TestWithSuperclassMessages.h" 53 #include "WebCoreArgumentCoders.h" 54 #include "WebPreferencesStore.h" 55 #if (ENABLE(TOUCH_EVENTS) && (NESTED_MESSAGE_CONDITION && SOME_OTHER_MESSAGE_CONDITION)) || (ENABLE(TOUCH_EVENTS) && (NESTED_MESSAGE_CONDITION || SOME_OTHER_MESSAGE_CONDITION)) 56 #include "WebTouchEvent.h" 57 #endif 58 #include <WebCore/GraphicsLayer.h> 59 #if PLATFORM(MAC) 60 #include <WebCore/KeyboardEvent.h> 61 #endif 62 #include <WebCore/PluginData.h> 63 #include <utility> 64 #include <wtf/HashMap.h> 65 #if PLATFORM(MAC) 66 #include <wtf/OptionSet.h> 67 #endif 68 #include <wtf/Vector.h> 69 #include <wtf/text/WTFString.h> 70 #endif 71 #if (ENABLE(WEBKIT2) && (NESTED_MASTER_CONDITION || MASTER_OR && MASTER_AND)) 72 #include "ArgumentCoders.h" 73 #include "Connection.h" 74 #if ENABLE(DEPRECATED_FEATURE) || ENABLE(EXPERIMENTAL_FEATURE) 75 #include "DummyType.h" 76 #endif 77 #if PLATFORM(MAC) 78 #include "GestureTypes.h" 79 #endif 80 #if PLATFORM(MAC) 81 #include "MachPort.h" 82 #endif 83 #include "Plugin.h" 60 84 #include "TestWithoutAttributesMessages.h" 61 85 #include "WebCoreArgumentCoders.h" … … 65 89 #endif 66 90 #include <WebCore/GraphicsLayer.h> 67 #include <WebCore/ImageData.h>68 91 #if PLATFORM(MAC) 69 92 #include <WebCore/KeyboardEvent.h> 70 93 #endif 71 94 #include <WebCore/PluginData.h> 72 #include <optional>73 95 #include <utility> 74 96 #include <wtf/HashMap.h> 97 #if PLATFORM(MAC) 98 #include <wtf/OptionSet.h> 99 #endif 100 #include <wtf/Vector.h> 101 #include <wtf/text/WTFString.h> 102 #endif 103 #if PLATFORM(COCOA) || PLATFORM(GTK) 104 #include "ArgumentCoders.h" 105 #endif 106 #include "TestWithIfMessageMessages.h" 107 #if PLATFORM(COCOA) || PLATFORM(GTK) 108 #include <wtf/text/WTFString.h> 109 #endif 110 #include "IPCSemaphore.h" 111 #include "TestWithSemaphoreMessages.h" 112 #include "ArgumentCoders.h" 113 #include "TestWithImageDataMessages.h" 114 #include "WebCoreArgumentCoders.h" 115 #include <WebCore/ImageData.h> 116 #include <wtf/RefCounted.h> 117 #include "ArgumentCoders.h" 118 #include "TestWithStreamMessages.h" 75 119 #if PLATFORM(COCOA) 76 120 #include <wtf/MachSendRight.h> 77 121 #endif 78 #if PLATFORM(MAC) 79 #include <wtf/OptionSet.h> 80 #endif 81 #include <wtf/RefCounted.h> 122 #include <wtf/text/WTFString.h> 123 #include "StreamConnectionBuffer.h" 124 #include "TestWithStreamBufferMessages.h" 125 #if USE(AVFOUNDATION) 126 #include "ArgumentCodersCF.h" 127 #endif 128 #include "TestWithCVPixelBufferMessages.h" 82 129 #if USE(AVFOUNDATION) 83 130 #include <wtf/RetainPtr.h> 84 131 #endif 85 #include <wtf/Vector.h>86 #include <wtf/text/WTFString.h>87 132 88 133 namespace IPC {
Note:
See TracChangeset
for help on using the changeset viewer.