| set(MiniBrowser_INCLUDE_DIRECTORIES |
| "${FORWARDING_HEADERS_DIR}" |
| "${FORWARDING_HEADERS_DIR}/WebKitLegacy" |
| "${CMAKE_SOURCE_DIR}" |
| "${CMAKE_SOURCE_DIR}/Source" |
| ) |
| |
| set(MiniBrowser_SOURCES |
| AccessibilityDelegate.cpp |
| DOMDefaultImpl.cpp |
| PageLoadTestClient.cpp |
| PrintWebUIDelegate.cpp |
| ResourceLoadDelegate.cpp |
| WebDownloadDelegate.cpp |
| MiniBrowser.cpp |
| MiniBrowserLib.rc |
| MiniBrowserWebHost.cpp |
| WinMain.cpp |
| stdafx.cpp |
| ) |
| |
| set(MiniBrowser_LIBRARIES |
| DbgHelp |
| WTF |
| WebKitLegacy |
| WebKitLegacyGUID |
| comctl32 |
| comsupp |
| comsuppw |
| shlwapi |
| ) |
| |
| if (USE_CF) |
| list(APPEND MiniBrowser_LIBRARIES |
| ${COREFOUNDATION_LIBRARY} |
| ) |
| endif () |
| |
| set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${MSVC_RUNTIME_LINKER_FLAGS}") |
| set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ENTRY:wWinMainCRTStartup") |
| |
| if (${WTF_PLATFORM_WIN_CAIRO}) |
| add_definitions(-DWIN_CAIRO) |
| endif () |
| add_definitions(-D_UNICODE) |
| include_directories(${MiniBrowser_INCLUDE_DIRECTORIES}) |
| add_library(MiniBrowserLib SHARED ${MiniBrowser_SOURCES}) |
| target_link_libraries(MiniBrowserLib ${MiniBrowser_LIBRARIES}) |
| |
| add_executable(MiniBrowser WIN32 ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp MiniBrowser.rc) |
| target_link_libraries(MiniBrowser shlwapi) |
| set_target_properties(MiniBrowser PROPERTIES OUTPUT_NAME "MiniBrowser") |
| |
| add_dependencies(MiniBrowser MiniBrowserLib) |