RESOLVED FIXED 147519
Get ready to build DumpRenderTree with CMake
https://bugs.webkit.org/show_bug.cgi?id=147519
Summary Get ready to build DumpRenderTree with CMake
Alex Christensen
Reported 2015-07-31 18:17:42 PDT
There's still one symbol the linker can't find, but this is ready to upstream.
Attachments
Patch (9.88 KB, patch)
2015-07-31 18:27 PDT, Alex Christensen
no flags
Patch (10.34 KB, patch)
2015-08-05 15:34 PDT, Alex Christensen
bfulgham: review+
Alex Christensen
Comment 1 2015-07-31 18:27:31 PDT
Martin Robinson
Comment 2 2015-07-31 19:31:07 PDT
Comment on attachment 257987 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=257987&action=review Looks pretty good, but I have a few suggestions... > Source/WebKit/CMakeLists.txt:22 > + PRIVATE JavaScriptCore > + PRIVATE WTF > + PRIVATE WebCore Small indentation issue here. > Tools/DumpRenderTree/CMakeLists.txt:85 > +if (WIN32) > + add_library(DumpRenderTreeLib SHARED ${DumpRenderTree_SOURCES}) > + set_target_properties(DumpRenderTreeLib PROPERTIES FOLDER "Tools") > + set_target_properties(DumpRenderTreeLib PROPERTIES OUTPUT_NAME "DumpRenderTree") > + target_link_libraries(DumpRenderTreeLib ${DumpRenderTree_LIBRARIES}) > + > + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ENTRY:wWinMainCRTStartup") > + add_executable(DumpRenderTree ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp) > + target_link_libraries(DumpRenderTree shlwapi) I wonder if you could move this to the Windows specific CMake file by using the DumpRenderTree_SOURCES variable to add the DumpRenderTreeLib library and then resetting it to only contain ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp. I think that would allow you to remove the Windows-specific code form this file.
Alex Christensen
Comment 3 2015-08-05 15:34:12 PDT
Brent Fulgham
Comment 4 2015-08-05 15:54:42 PDT
Comment on attachment 258308 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=258308&action=review LGTM! r=me. > Source/WebCore/CMakeLists.txt:-3297 > - WebCore Is this true for other platforms (EFL/GTK?)
Alex Christensen
Comment 5 2015-08-05 15:58:23 PDT
(In reply to comment #4) > Comment on attachment 258308 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=258308&action=review > > LGTM! r=me. > > > Source/WebCore/CMakeLists.txt:-3297 > > - WebCore > > Is this true for other platforms (EFL/GTK?) Yes, WebCoreTestSupport is a static library on all platforms currently, and their EWS bots are ok with this change. If someone wants to make it a static library in the future for some reason, then they can, provided they don't break anything.
Alex Christensen
Comment 6 2015-08-05 16:03:23 PDT
Moved include from WebView.h to WebView.cpp Committed to http://trac.webkit.org/changeset/187997
Note You need to log in before you can comment on or make changes to this bug.