1 set(DumpRenderTreeLib_SOURCES
2 ${DumpRenderTree_SOURCES}
4 win/AccessibilityControllerWin.cpp
5 win/AccessibilityUIElementWin.cpp
7 win/DRTDesktopNotificationPresenter.cpp
10 win/EditingDelegate.cpp
12 win/FrameLoadDelegate.cpp
13 win/GCControllerWin.cpp
14 win/HistoryDelegate.cpp
16 win/PixelDumpSupportWin.cpp
17 win/PolicyDelegate.cpp
18 win/ResourceLoadDelegate.cpp
20 win/TextInputController.cpp
21 win/TextInputControllerWin.cpp
23 win/WorkQueueItemWin.cpp
26 set(DumpRenderTree_SOURCES
27 ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp
30 list(APPEND TestNetscapePlugin_SOURCES
31 DumpRenderTree.vcxproj/TestNetscapePlugin/TestNetscapePlugin.def
32 DumpRenderTree.vcxproj/TestNetscapePlugin/TestNetscapePlugin.rc
34 TestNetscapePlugin/Tests/win/CallJSThatDestroysPlugin.cpp
35 TestNetscapePlugin/Tests/win/DrawsGradient.cpp
36 TestNetscapePlugin/Tests/win/DumpWindowRect.cpp
37 TestNetscapePlugin/Tests/win/GetValueNetscapeWindow.cpp
38 TestNetscapePlugin/Tests/win/NPNInvalidateRectInvalidatesWindow.cpp
39 TestNetscapePlugin/Tests/win/WindowGeometryInitializedBeforeSetWindow.cpp
40 TestNetscapePlugin/Tests/win/WindowRegionIsSetToClipRect.cpp
41 TestNetscapePlugin/Tests/win/WindowlessPaintRectCoordinates.cpp
43 TestNetscapePlugin/win/WindowGeometryTest.cpp
44 TestNetscapePlugin/win/WindowedPluginTest.cpp
47 if (${WTF_PLATFORM_WIN_CAIRO})
48 add_definitions(-DWIN_CAIRO)
51 list(APPEND TestNetscapePlugin_LIBRARIES
60 set(ImageDiff_LIBRARIES
66 list(APPEND DumpRenderTree_INCLUDE_DIRECTORIES
68 DumpRenderTree.vcxproj/TestNetscapePlugin
70 TestNetscapePlugin/ForwardingHeaders
71 TestNetscapePlugin/Tests
72 TestNetscapePlugin/win
73 TestNetscapePlugin/Tests/win
76 list(APPEND DumpRenderTree_LIBRARIES
80 set(DumpRenderTreeLib_LIBRARIES
81 ${DumpRenderTree_LIBRARIES}
87 if (${WTF_PLATFORM_WIN_CAIRO})
88 list(APPEND DumpRenderTree_INCLUDE_DIRECTORIES
90 "${WEBKIT_LIBRARIES_DIR}/include/cairo"
92 list(APPEND DumpRenderTreeLib_SOURCES
93 cairo/PixelDumpSupportCairo.cpp
95 list(APPEND ImageDiff_SOURCES
96 win/ImageDiffCairo.cpp
98 list(APPEND ImageDiff_LIBRARIES
102 list(APPEND DumpRenderTree_INCLUDE_DIRECTORIES
105 list(APPEND DumpRenderTreeLib_SOURCES
106 cg/PixelDumpSupportCG.cpp
108 list(APPEND DumpRenderTreeLib_LIBRARIES
112 list(APPEND ImageDiff_SOURCES
115 list(APPEND ImageDiff_LIBRARIES
121 ADD_PRECOMPILED_HEADER("DumpRenderTreePrefix.h" "win/DumpRenderTreePrefix.cpp" DumpRenderTreeLib_SOURCES)
122 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /NODEFAULTLIB:MSVCRT /NODEFAULTLIB:MSVCRTD")
123 add_definitions(-DUSE_CONSOLE_ENTRY_POINT)
125 add_library(DumpRenderTreeLib SHARED ${DumpRenderTreeLib_SOURCES})
126 set_target_properties(DumpRenderTreeLib PROPERTIES FOLDER "Tools")
127 target_link_libraries(DumpRenderTreeLib ${DumpRenderTreeLib_LIBRARIES})
129 add_executable(ImageDiff ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp)
130 target_link_libraries(ImageDiff shlwapi)
131 set_target_properties(ImageDiff PROPERTIES FOLDER "Tools")
132 set_target_properties(ImageDiff PROPERTIES OUTPUT_NAME "ImageDiff")
134 add_library(ImageDiffLib SHARED ${ImageDiff_SOURCES})
135 set_target_properties(ImageDiffLib PROPERTIES FOLDER "Tools")
136 target_link_libraries(ImageDiffLib ${ImageDiff_LIBRARIES})
138 add_dependencies(ImageDiff ImageDiffLib)
140 add_definitions(-D_UNICODE)