Changeset 260341 in webkit
- Timestamp:
- Apr 19, 2020 11:12:40 AM (4 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 added
- 4 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r260339 r260341 1 2020-04-19 Don Olmstead <don.olmstead@sony.com> 2 3 [CMake] Consolidate TestNetscapePlugin build 4 https://bugs.webkit.org/show_bug.cgi?id=210691 5 6 Reviewed by Fujii Hironori. 7 8 The DumpRenderTree CMakeLists.txt contained a definition of TestNetscapePlugIn 9 which was used for WebKitLegacy ports. The TestNetscapePlugIn directory also had 10 a CMakeLists.txt used by GTK for its port. The definitions in DumpRenderTree's 11 CMake are moved into the TestNetscapePlugIn CMake to provide a common definition 12 for all ports that ENABLE_NETSCAPE_PLUGIN_API. 13 14 * DumpRenderTree/CMakeLists.txt: 15 * DumpRenderTree/PlatformWin.cmake: 16 * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: 17 * DumpRenderTree/TestNetscapePlugIn/PlatformGTK.cmake: Added. 18 * DumpRenderTree/TestNetscapePlugIn/PlatformWin.cmake: Added. 19 * DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugIn.def: Renamed from Tools/DumpRenderTree/win/TestNetscapePlugin.def. 20 * DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugIn.rc: Renamed from Tools/DumpRenderTree/win/TestNetscapePlugin.rc. 21 * DumpRenderTree/TestNetscapePlugIn/win/resource.h: Renamed from Tools/DumpRenderTree/win/resource.h. 22 1 23 2020-04-19 Emilio Cobos Álvarez <emilio@crisal.io> 2 24 -
trunk/Tools/DumpRenderTree/CMakeLists.txt
r259617 r260341 48 48 ) 49 49 50 set(TestNetscapePlugIn_SOURCES51 TestNetscapePlugIn/PluginObject.cpp52 TestNetscapePlugIn/PluginTest.cpp53 TestNetscapePlugIn/TestObject.cpp54 TestNetscapePlugIn/main.cpp55 56 TestNetscapePlugIn/Tests/DocumentOpenInDestroyStream.cpp57 TestNetscapePlugIn/Tests/EvaluateJSAfterRemovingPluginElement.cpp58 TestNetscapePlugIn/Tests/FormValue.cpp59 TestNetscapePlugIn/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp60 TestNetscapePlugIn/Tests/GetURLWithJavaScriptURL.cpp61 TestNetscapePlugIn/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp62 TestNetscapePlugIn/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp63 TestNetscapePlugIn/Tests/LogNPPSetWindow.cpp64 TestNetscapePlugIn/Tests/NPDeallocateCalledBeforeNPShutdown.cpp65 TestNetscapePlugIn/Tests/NPPNewFails.cpp66 TestNetscapePlugIn/Tests/NPPSetWindowCalledDuringDestruction.cpp67 TestNetscapePlugIn/Tests/NPRuntimeCallsWithNullNPP.cpp68 TestNetscapePlugIn/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp69 TestNetscapePlugIn/Tests/NPRuntimeRemoveProperty.cpp70 TestNetscapePlugIn/Tests/NullNPPGetValuePointer.cpp71 TestNetscapePlugIn/Tests/PassDifferentNPPStruct.cpp72 TestNetscapePlugIn/Tests/PluginScriptableNPObjectInvokeDefault.cpp73 TestNetscapePlugIn/Tests/PluginScriptableObjectOverridesAllProperties.cpp74 TestNetscapePlugIn/Tests/PrivateBrowsing.cpp75 TestNetscapePlugIn/Tests/ToStringAndValueOfObject.cpp76 TestNetscapePlugIn/Tests/URLRedirect.cpp77 )78 79 set(TestNetscapePlugIn_PRIVATE_INCLUDE_DIRECTORIES80 ${CMAKE_BINARY_DIR}81 ${DumpRenderTree_DIR}/TestNetscapePlugIn82 ${DumpRenderTree_DIR}/TestNetscapePlugIn/ForwardingHeaders83 ${DumpRenderTree_DIR}/TestNetscapePlugIn/Tests84 )85 86 list(APPEND TestNetscapePlugIn_PRIVATE_INCLUDE_DIRECTORIES87 ${PAL_FRAMEWORK_HEADERS_DIR}88 ${WebCore_PRIVATE_FRAMEWORK_HEADERS_DIR}89 ${WebKitLegacy_FRAMEWORK_HEADERS_DIR}90 )91 92 set(TestNetscapePlugIn_LIBRARIES93 WebCoreTestSupport94 WebKit::JavaScriptCore95 )96 97 50 set(DumpRenderTree_IDL_FILES 98 51 "${WebKitTestRunner_UISCRIPTCONTEXT_DIR}/Bindings/UIScriptController.idl" … … 115 68 116 69 if (ENABLE_NETSCAPE_PLUGIN_API) 117 add_library(TestNetscapePlugIn SHARED ${TestNetscapePlugIn_SOURCES}) 118 target_include_directories(TestNetscapePlugIn PRIVATE ${TestNetscapePlugIn_PRIVATE_INCLUDE_DIRECTORIES}) 119 target_link_libraries(TestNetscapePlugIn PRIVATE ${TestNetscapePlugIn_LIBRARIES}) 70 add_subdirectory(TestNetscapePlugIn) 120 71 endif () -
trunk/Tools/DumpRenderTree/PlatformWin.cmake
r259617 r260341 24 24 ) 25 25 26 list(APPEND TestNetscapePlugIn_SOURCES27 win/TestNetscapePlugin.def28 win/TestNetscapePlugin.rc29 30 TestNetscapePlugIn/Tests/win/CallJSThatDestroysPlugin.cpp31 TestNetscapePlugIn/Tests/win/DrawsGradient.cpp32 TestNetscapePlugIn/Tests/win/DumpWindowRect.cpp33 TestNetscapePlugIn/Tests/win/GetValueNetscapeWindow.cpp34 TestNetscapePlugIn/Tests/win/NPNInvalidateRectInvalidatesWindow.cpp35 TestNetscapePlugIn/Tests/win/WindowGeometryInitializedBeforeSetWindow.cpp36 TestNetscapePlugIn/Tests/win/WindowRegionIsSetToClipRect.cpp37 TestNetscapePlugIn/Tests/win/WindowlessPaintRectCoordinates.cpp38 39 TestNetscapePlugIn/win/WindowGeometryTest.cpp40 TestNetscapePlugIn/win/WindowedPluginTest.cpp41 )42 43 26 set(wrapper_DEFINITIONS USE_CONSOLE_ENTRY_POINT) 44 45 list(APPEND TestNetscapePlugIn_LIBRARIES46 Msimg3247 Shlwapi48 WebKitLegacy49 )50 27 51 28 list(APPEND DumpRenderTree_PRIVATE_INCLUDE_DIRECTORIES 52 29 ${DumpRenderTree_DIR}/win 53 )54 55 list(APPEND TestNetscapePlugIn_PRIVATE_INCLUDE_DIRECTORIES56 ${DumpRenderTree_DIR}/TestNetscapePlugIn/win57 ${DumpRenderTree_DIR}/TestNetscapePlugIn/Tests/win58 30 ) 59 31 -
trunk/Tools/DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt
r260277 r260341 1 set(WEBKIT_TESTNETSCAPEPLUGIN_DIR "${TOOLS_DIR}/DumpRenderTree/TestNetscapePlugIn") 1 set(TestNetscapePlugIn_DIR "${TOOLS_DIR}/DumpRenderTree/TestNetscapePlugIn") 2 set(TestNetscapePlugIn_LIBRARY_TYPE SHARED) 2 3 3 set( WebKitTestNetscapePlugIn_SOURCES4 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/PluginObject.cpp5 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/PluginTest.cpp6 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/TestObject.cpp7 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/main.cpp4 set(TestNetscapePlugIn_SOURCES 5 PluginObject.cpp 6 PluginTest.cpp 7 TestObject.cpp 8 main.cpp 8 9 9 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/DocumentOpenInDestroyStream.cpp10 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/EvaluateJSAfterRemovingPluginElement.cpp11 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/FormValue.cpp12 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp13 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/GetURLWithJavaScriptURL.cpp14 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp15 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp16 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/LogNPPSetWindow.cpp17 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/NPDeallocateCalledBeforeNPShutdown.cpp18 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/NPPNewFails.cpp19 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/NPPSetWindowCalledDuringDestruction.cpp20 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/NPRuntimeCallsWithNullNPP.cpp21 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp22 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/NPRuntimeRemoveProperty.cpp23 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/NullNPPGetValuePointer.cpp24 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/PassDifferentNPPStruct.cpp25 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/PluginScriptableNPObjectInvokeDefault.cpp26 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/PluginScriptableObjectOverridesAllProperties.cpp27 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/PrivateBrowsing.cpp28 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/ToStringAndValueOfObject.cpp29 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/URLRedirect.cpp10 Tests/DocumentOpenInDestroyStream.cpp 11 Tests/EvaluateJSAfterRemovingPluginElement.cpp 12 Tests/FormValue.cpp 13 Tests/GetURLNotifyWithURLThatFailsToLoad.cpp 14 Tests/GetURLWithJavaScriptURL.cpp 15 Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp 16 Tests/GetUserAgentWithNullNPPFromNPPNew.cpp 17 Tests/LogNPPSetWindow.cpp 18 Tests/NPDeallocateCalledBeforeNPShutdown.cpp 19 Tests/NPPNewFails.cpp 20 Tests/NPPSetWindowCalledDuringDestruction.cpp 21 Tests/NPRuntimeCallsWithNullNPP.cpp 22 Tests/NPRuntimeObjectFromDestroyedPlugin.cpp 23 Tests/NPRuntimeRemoveProperty.cpp 24 Tests/NullNPPGetValuePointer.cpp 25 Tests/PassDifferentNPPStruct.cpp 26 Tests/PluginScriptableNPObjectInvokeDefault.cpp 27 Tests/PluginScriptableObjectOverridesAllProperties.cpp 28 Tests/PrivateBrowsing.cpp 29 Tests/ToStringAndValueOfObject.cpp 30 Tests/URLRedirect.cpp 30 31 ) 31 32 32 set(WebKitTestNetscapePlugIn_INCLUDE_DIRECTORIES 33 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR} 34 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/ForwardingHeaders 35 ${WebCore_PRIVATE_FRAMEWORK_HEADERS_DIR} 36 ${WTF_DIR} 33 set(TestNetscapePlugIn_PRIVATE_INCLUDE_DIRECTORIES 34 ${TestNetscapePlugIn_DIR} 35 ${TestNetscapePlugIn_DIR}/ForwardingHeaders 36 ${TestNetscapePlugIn_DIR}/Tests 37 37 ) 38 38 39 set( WebKitTestNetscapePlugIn_LIBRARIES39 set(TestNetscapePlugIn_LIBRARIES 40 40 WebKit::WTF 41 41 ) 42 42 43 if (MOZ_X11) 44 set(WebKitTestNetscapePlugIn_SYSTEM_INCLUDE_DIRECTORIES 45 ${X11_INCLUDE_DIR} 46 43 # The ForwardingHeaders directory contains np*.h which are copied from WebCore 44 # so depend on the WebKit::WebCore target when building 45 set(TestNetscapePlugIn_DEPENDENCIES WebKit::WebCore) 46 list(APPEND TestNetscapePlugIn_PRIVATE_INCLUDE_DIRECTORIES ${WebCore_PRIVATE_FRAMEWORK_HEADERS_DIR}) 47 47 48 list(APPEND WebKitTestNetscapePlugIn_LIBRARIES 49 ${X11_LIBRARIES} 50 48 WEBKIT_FRAMEWORK_DECLARE(TestNetscapePlugIn) 49 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS() 50 WEBKIT_FRAMEWORK(TestNetscapePlugIn) 51 51 52 add_definitions(-DMOZ_X11) 52 if (COMPILER_IS_GCC_OR_CLANG) 53 WEBKIT_ADD_TARGET_CXX_FLAGS(TestNetscapePlugIn -Wno-unused-parameter) 53 54 endif () 54 55 if (XP_UNIX)56 list(APPEND WebKitTestNetscapePlugIn_SOURCES57 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/unix/CallInvalidateRectWithNullNPPArgument.cpp58 )59 60 add_definitions(-DXP_UNIX)61 endif ()62 63 include_directories(${WebKitTestNetscapePlugIn_INCLUDE_DIRECTORIES})64 include_directories(SYSTEM ${WebKitTestNetscapePlugIn_SYSTEM_INCLUDE_DIRECTORIES})65 66 add_library(TestNetscapePlugIn SHARED ${WebKitTestNetscapePlugIn_SOURCES})67 target_link_libraries(TestNetscapePlugIn ${WebKitTestNetscapePlugIn_LIBRARIES})68 add_dependencies(TestNetscapePlugIn WebKit::WebCore)69 set_target_properties(TestNetscapePlugIn PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/plugins)70 71 WEBKIT_ADD_TARGET_CXX_FLAGS(TestNetscapePlugIn -Wno-unused-parameter)
Note: See TracChangeset
for help on using the changeset viewer.