blob: b68deb05a7499a0346b2e4efbff78a98862320b3 [file] [log] [blame]
achristensen@apple.comd5b418c2015-08-05 23:02:25 +00001set(DumpRenderTreeLib_SOURCES
2 ${DumpRenderTree_SOURCES}
achristensen@apple.com822154c2015-08-07 23:42:07 +00003
achristensen@apple.comd5b418c2015-08-05 23:02:25 +00004 win/AccessibilityControllerWin.cpp
5 win/AccessibilityUIElementWin.cpp
6 win/DRTDataObject.cpp
7 win/DRTDesktopNotificationPresenter.cpp
8 win/DRTDropSource.cpp
9 win/DumpRenderTree.cpp
10 win/EditingDelegate.cpp
11 win/EventSender.cpp
12 win/FrameLoadDelegate.cpp
13 win/GCControllerWin.cpp
14 win/HistoryDelegate.cpp
15 win/MD5.cpp
16 win/PixelDumpSupportWin.cpp
17 win/PolicyDelegate.cpp
18 win/ResourceLoadDelegate.cpp
19 win/TestRunnerWin.cpp
20 win/TextInputController.cpp
21 win/TextInputControllerWin.cpp
22 win/UIDelegate.cpp
23 win/WorkQueueItemWin.cpp
24)
25
commit-queue@webkit.org9d3b3782016-04-01 16:45:58 +000026list(APPEND TestNetscapePlugin_LIBRARIES
27 WebKit
28)
29
achristensen@apple.comd5b418c2015-08-05 23:02:25 +000030set(DumpRenderTree_SOURCES
31 ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp
32)
33
achristensen@apple.com822154c2015-08-07 23:42:07 +000034list(APPEND TestNetscapePlugin_SOURCES
achristensen@apple.com948ac802016-06-10 06:11:26 +000035 win/TestNetscapePlugin.def
36 win/TestNetscapePlugin.rc
achristensen@apple.com822154c2015-08-07 23:42:07 +000037
38 TestNetscapePlugin/Tests/win/CallJSThatDestroysPlugin.cpp
39 TestNetscapePlugin/Tests/win/DrawsGradient.cpp
40 TestNetscapePlugin/Tests/win/DumpWindowRect.cpp
41 TestNetscapePlugin/Tests/win/GetValueNetscapeWindow.cpp
42 TestNetscapePlugin/Tests/win/NPNInvalidateRectInvalidatesWindow.cpp
43 TestNetscapePlugin/Tests/win/WindowGeometryInitializedBeforeSetWindow.cpp
44 TestNetscapePlugin/Tests/win/WindowRegionIsSetToClipRect.cpp
45 TestNetscapePlugin/Tests/win/WindowlessPaintRectCoordinates.cpp
46
47 TestNetscapePlugin/win/WindowGeometryTest.cpp
48 TestNetscapePlugin/win/WindowedPluginTest.cpp
49)
50
achristensen@apple.com57b4c9d2015-08-20 19:08:06 +000051if (${WTF_PLATFORM_WIN_CAIRO})
52 add_definitions(-DWIN_CAIRO)
53endif ()
54
achristensen@apple.com822154c2015-08-07 23:42:07 +000055list(APPEND TestNetscapePlugin_LIBRARIES
56 Msimg32
57 Shlwapi
achristensen@apple.com69c47742016-04-06 05:31:07 +000058 WebKit
achristensen@apple.com822154c2015-08-07 23:42:07 +000059)
60
61set(ImageDiff_SOURCES
62 win/ImageDiffWin.cpp
63)
64
65set(ImageDiff_LIBRARIES
66 JavaScriptCore
67 WTF
68 WebKit
69)
70
achristensen@apple.com4cd70e42015-07-20 15:55:03 +000071list(APPEND DumpRenderTree_INCLUDE_DIRECTORIES
72 win
achristensen@apple.com822154c2015-08-07 23:42:07 +000073 TestNetscapePlugin
74 TestNetscapePlugin/ForwardingHeaders
75 TestNetscapePlugin/Tests
76 TestNetscapePlugin/win
77 TestNetscapePlugin/Tests/win
pvollan@apple.comde4448b2016-07-19 10:56:09 +000078 ${WEBKIT_DIR}/win
79 ${DERIVED_SOURCES_DIR}/WebKit/Interfaces
achristensen@apple.com4cd70e42015-07-20 15:55:03 +000080)
81
achristensen@apple.comd5b418c2015-08-05 23:02:25 +000082list(APPEND DumpRenderTree_LIBRARIES
achristensen@apple.comb0095262016-04-12 06:53:54 +000083 WTF
achristensen@apple.com69c47742016-04-06 05:31:07 +000084 WebKit
achristensen@apple.comd5b418c2015-08-05 23:02:25 +000085 shlwapi
86)
87
88set(DumpRenderTreeLib_LIBRARIES
89 ${DumpRenderTree_LIBRARIES}
90 Comsuppw
91 Oleacc
92 WebKitGUID
achristensen@apple.com4cd70e42015-07-20 15:55:03 +000093)
94
95if (${WTF_PLATFORM_WIN_CAIRO})
96 list(APPEND DumpRenderTree_INCLUDE_DIRECTORIES
97 cairo
commit-queue@webkit.orgef1cf3a2015-11-09 19:17:55 +000098 "${WEBKIT_LIBRARIES_DIR}/include/cairo"
achristensen@apple.com4cd70e42015-07-20 15:55:03 +000099 )
achristensen@apple.comd5b418c2015-08-05 23:02:25 +0000100 list(APPEND DumpRenderTreeLib_SOURCES
achristensen@apple.com4cd70e42015-07-20 15:55:03 +0000101 cairo/PixelDumpSupportCairo.cpp
102 )
achristensen@apple.com822154c2015-08-07 23:42:07 +0000103 list(APPEND ImageDiff_SOURCES
104 win/ImageDiffCairo.cpp
105 )
106 list(APPEND ImageDiff_LIBRARIES
107 cairo
108 )
109else ()
110 list(APPEND DumpRenderTree_INCLUDE_DIRECTORIES
111 cg
112 )
113 list(APPEND DumpRenderTreeLib_SOURCES
114 cg/PixelDumpSupportCG.cpp
115 )
116 list(APPEND DumpRenderTreeLib_LIBRARIES
117 CFNetwork
118 CoreGraphics
119 )
120 list(APPEND ImageDiff_SOURCES
121 cg/ImageDiffCG.cpp
122 )
123 list(APPEND ImageDiff_LIBRARIES
124 CoreFoundation
125 CoreGraphics
126 )
achristensen@apple.com4cd70e42015-07-20 15:55:03 +0000127endif ()
achristensen@apple.comd5b418c2015-08-05 23:02:25 +0000128
129ADD_PRECOMPILED_HEADER("DumpRenderTreePrefix.h" "win/DumpRenderTreePrefix.cpp" DumpRenderTreeLib_SOURCES)
achristensen@apple.comab17f1e2015-08-12 19:00:48 +0000130set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /NODEFAULTLIB:MSVCRT /NODEFAULTLIB:MSVCRTD")
achristensen@apple.com822154c2015-08-07 23:42:07 +0000131add_definitions(-DUSE_CONSOLE_ENTRY_POINT)
achristensen@apple.comd5b418c2015-08-05 23:02:25 +0000132
133add_library(DumpRenderTreeLib SHARED ${DumpRenderTreeLib_SOURCES})
achristensen@apple.comd5b418c2015-08-05 23:02:25 +0000134target_link_libraries(DumpRenderTreeLib ${DumpRenderTreeLib_LIBRARIES})
135
achristensen@apple.com822154c2015-08-07 23:42:07 +0000136add_executable(ImageDiff ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp)
137target_link_libraries(ImageDiff shlwapi)
achristensen@apple.com822154c2015-08-07 23:42:07 +0000138set_target_properties(ImageDiff PROPERTIES OUTPUT_NAME "ImageDiff")
139
140add_library(ImageDiffLib SHARED ${ImageDiff_SOURCES})
achristensen@apple.com822154c2015-08-07 23:42:07 +0000141target_link_libraries(ImageDiffLib ${ImageDiff_LIBRARIES})
achristensen@apple.comd5b418c2015-08-05 23:02:25 +0000142
achristensen@apple.com52743ce2015-08-28 00:04:52 +0000143add_dependencies(ImageDiff ImageDiffLib)
144
achristensen@apple.comd5b418c2015-08-05 23:02:25 +0000145add_definitions(-D_UNICODE)