achristensen@apple.com | d5b418c | 2015-08-05 23:02:25 +0000 | [diff] [blame] | 1 | set(DumpRenderTreeLib_SOURCES |
| 2 | ${DumpRenderTree_SOURCES} |
achristensen@apple.com | 822154c | 2015-08-07 23:42:07 +0000 | [diff] [blame^] | 3 | |
achristensen@apple.com | d5b418c | 2015-08-05 23:02:25 +0000 | [diff] [blame] | 4 | 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 | |
| 26 | set(DumpRenderTree_SOURCES |
| 27 | ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp |
| 28 | ) |
| 29 | |
achristensen@apple.com | 822154c | 2015-08-07 23:42:07 +0000 | [diff] [blame^] | 30 | list(APPEND TestNetscapePlugin_SOURCES |
| 31 | DumpRenderTree.vcxproj/TestNetscapePlugin/TestNetscapePlugin.def |
| 32 | DumpRenderTree.vcxproj/TestNetscapePlugin/TestNetscapePlugin.rc |
| 33 | |
| 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 |
| 42 | |
| 43 | TestNetscapePlugin/win/WindowGeometryTest.cpp |
| 44 | TestNetscapePlugin/win/WindowedPluginTest.cpp |
| 45 | ) |
| 46 | |
| 47 | list(APPEND TestNetscapePlugin_LIBRARIES |
| 48 | Msimg32 |
| 49 | Shlwapi |
| 50 | ) |
| 51 | |
| 52 | set(ImageDiff_SOURCES |
| 53 | win/ImageDiffWin.cpp |
| 54 | ) |
| 55 | |
| 56 | set(ImageDiff_LIBRARIES |
| 57 | JavaScriptCore |
| 58 | WTF |
| 59 | WebKit |
| 60 | ) |
| 61 | |
achristensen@apple.com | 4cd70e4 | 2015-07-20 15:55:03 +0000 | [diff] [blame] | 62 | list(APPEND DumpRenderTree_INCLUDE_DIRECTORIES |
| 63 | win |
achristensen@apple.com | 822154c | 2015-08-07 23:42:07 +0000 | [diff] [blame^] | 64 | DumpRenderTree.vcxproj/TestNetscapePlugin |
| 65 | TestNetscapePlugin |
| 66 | TestNetscapePlugin/ForwardingHeaders |
| 67 | TestNetscapePlugin/Tests |
| 68 | TestNetscapePlugin/win |
| 69 | TestNetscapePlugin/Tests/win |
achristensen@apple.com | 4cd70e4 | 2015-07-20 15:55:03 +0000 | [diff] [blame] | 70 | ) |
| 71 | |
achristensen@apple.com | d5b418c | 2015-08-05 23:02:25 +0000 | [diff] [blame] | 72 | list(APPEND DumpRenderTree_LIBRARIES |
| 73 | shlwapi |
| 74 | ) |
| 75 | |
| 76 | set(DumpRenderTreeLib_LIBRARIES |
| 77 | ${DumpRenderTree_LIBRARIES} |
| 78 | Comsuppw |
| 79 | Oleacc |
| 80 | WebKitGUID |
achristensen@apple.com | 4cd70e4 | 2015-07-20 15:55:03 +0000 | [diff] [blame] | 81 | ) |
| 82 | |
| 83 | if (${WTF_PLATFORM_WIN_CAIRO}) |
| 84 | list(APPEND DumpRenderTree_INCLUDE_DIRECTORIES |
| 85 | cairo |
| 86 | "$ENV{WEBKIT_LIBRARIES}/include/cairo" |
| 87 | ) |
achristensen@apple.com | d5b418c | 2015-08-05 23:02:25 +0000 | [diff] [blame] | 88 | list(APPEND DumpRenderTreeLib_SOURCES |
achristensen@apple.com | 4cd70e4 | 2015-07-20 15:55:03 +0000 | [diff] [blame] | 89 | cairo/PixelDumpSupportCairo.cpp |
| 90 | ) |
achristensen@apple.com | 822154c | 2015-08-07 23:42:07 +0000 | [diff] [blame^] | 91 | list(APPEND ImageDiff_SOURCES |
| 92 | win/ImageDiffCairo.cpp |
| 93 | ) |
| 94 | list(APPEND ImageDiff_LIBRARIES |
| 95 | cairo |
| 96 | ) |
| 97 | else () |
| 98 | list(APPEND DumpRenderTree_INCLUDE_DIRECTORIES |
| 99 | cg |
| 100 | ) |
| 101 | list(APPEND DumpRenderTreeLib_SOURCES |
| 102 | cg/PixelDumpSupportCG.cpp |
| 103 | ) |
| 104 | list(APPEND DumpRenderTreeLib_LIBRARIES |
| 105 | CFNetwork |
| 106 | CoreGraphics |
| 107 | ) |
| 108 | list(APPEND ImageDiff_SOURCES |
| 109 | cg/ImageDiffCG.cpp |
| 110 | ) |
| 111 | list(APPEND ImageDiff_LIBRARIES |
| 112 | CoreFoundation |
| 113 | CoreGraphics |
| 114 | ) |
achristensen@apple.com | 4cd70e4 | 2015-07-20 15:55:03 +0000 | [diff] [blame] | 115 | endif () |
achristensen@apple.com | d5b418c | 2015-08-05 23:02:25 +0000 | [diff] [blame] | 116 | |
| 117 | ADD_PRECOMPILED_HEADER("DumpRenderTreePrefix.h" "win/DumpRenderTreePrefix.cpp" DumpRenderTreeLib_SOURCES) |
achristensen@apple.com | 822154c | 2015-08-07 23:42:07 +0000 | [diff] [blame^] | 118 | set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /NODEFAULTLIB:MSVCRT") |
| 119 | add_definitions(-DUSE_CONSOLE_ENTRY_POINT) |
achristensen@apple.com | d5b418c | 2015-08-05 23:02:25 +0000 | [diff] [blame] | 120 | |
| 121 | add_library(DumpRenderTreeLib SHARED ${DumpRenderTreeLib_SOURCES}) |
| 122 | set_target_properties(DumpRenderTreeLib PROPERTIES FOLDER "Tools") |
| 123 | set_target_properties(DumpRenderTreeLib PROPERTIES OUTPUT_NAME "DumpRenderTree") |
| 124 | target_link_libraries(DumpRenderTreeLib ${DumpRenderTreeLib_LIBRARIES}) |
| 125 | |
achristensen@apple.com | 822154c | 2015-08-07 23:42:07 +0000 | [diff] [blame^] | 126 | add_executable(ImageDiff ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp) |
| 127 | target_link_libraries(ImageDiff shlwapi) |
| 128 | set_target_properties(ImageDiff PROPERTIES FOLDER "Tools") |
| 129 | set_target_properties(ImageDiff PROPERTIES OUTPUT_NAME "ImageDiff") |
| 130 | |
| 131 | add_library(ImageDiffLib SHARED ${ImageDiff_SOURCES}) |
| 132 | set_target_properties(ImageDiffLib PROPERTIES FOLDER "Tools") |
| 133 | set_target_properties(ImageDiffLib PROPERTIES OUTPUT_NAME "ImageDiff") |
| 134 | target_link_libraries(ImageDiffLib ${ImageDiff_LIBRARIES}) |
achristensen@apple.com | d5b418c | 2015-08-05 23:02:25 +0000 | [diff] [blame] | 135 | |
| 136 | add_definitions(-D_UNICODE) |