| list(APPEND WebKitTestRunner_SOURCES |
| cairo/TestInvocationCairo.cpp |
| |
| win/EventSenderProxyWin.cpp |
| win/PlatformWebViewWin.cpp |
| win/TestControllerWin.cpp |
| win/UIScriptControllerWin.cpp |
| win/main.cpp |
| ) |
| |
| set(wrapper_DEFINITIONS |
| USE_CONSOLE_ENTRY_POINT |
| WIN_CAIRO |
| ) |
| |
| list(APPEND WebKitTestRunnerInjectedBundle_SOURCES |
| InjectedBundle/win/AccessibilityControllerWin.cpp |
| InjectedBundle/win/AccessibilityUIElementWin.cpp |
| InjectedBundle/win/ActivateFontsWin.cpp |
| InjectedBundle/win/InjectedBundleWin.cpp |
| InjectedBundle/win/TestRunnerWin.cpp |
| ) |
| |
| list(APPEND WebKitTestRunner_INCLUDE_DIRECTORIES |
| ${WebKitTestRunner_DIR}/InjectedBundle/win |
| ) |
| |
| list(APPEND WebKitTestRunner_LIBRARIES |
| Comsuppw |
| Oleacc |
| ) |
| |
| list(APPEND WebKitTestRunnerInjectedBundle_LIBRARIES |
| $<TARGET_OBJECTS:WebCoreTestSupport> |
| ) |
| |
| # Add precompiled header |
| # JSWrapper.cpp is shared between the test runner and injected bundle so it can't be |
| # present in the list of sources when the macro is invoked. Remove it, create the precompiled |
| # header, and add it back to work around this. |
| list(REMOVE_ITEM WebKitTestRunner_SOURCES ${WebKitTestRunner_BINDINGS_DIR}/JSWrapper.cpp) |
| WEBKIT_ADD_PRECOMPILED_HEADER("WebKitTestRunnerPrefix.h" "win/WebKitTestRunnerPrefix.cpp" WebKitTestRunner_SOURCES) |
| list(APPEND WebKitTestRunner_SOURCES ${WebKitTestRunner_BINDINGS_DIR}/JSWrapper.cpp) |
| |
| set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${MSVC_RUNTIME_LINKER_FLAGS}") |
| |
| WEBKIT_WRAP_EXECUTABLE(WebKitTestRunner |
| SOURCES ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp |
| LIBRARIES shlwapi |
| ) |
| target_compile_definitions(WebKitTestRunner PRIVATE ${wrapper_DEFINITIONS}) |