blob: 7fbd2ffc03ca3ebbfc9e8f291f828b6e897749cb [file] [log] [blame]
set(MiniBrowser_INCLUDE_DIRECTORIES
${PAL_FRAMEWORK_HEADERS_DIR}
${WebCore_PRIVATE_FRAMEWORK_HEADERS_DIR}
)
set(MiniBrowser_SOURCES
BrowserWindow.cpp
Common.cpp
MainWindow.cpp
MiniBrowserLib.rc
WinMain.cpp
stdafx.cpp
)
set(MiniBrowser_LIBRARIES
DbgHelp
WebKit::WTF
comctl32
comsupp
comsuppw
shlwapi
)
if (USE_CF)
list(APPEND MiniBrowser_LIBRARIES
${COREFOUNDATION_LIBRARY}
)
endif ()
if (ENABLE_WEBKIT_LEGACY)
add_definitions(-DENABLE_WEBKIT_LEGACY)
list(APPEND MiniBrowser_INCLUDE_DIRECTORIES
${WebKitLegacy_FRAMEWORK_HEADERS_DIR}
)
list(APPEND MiniBrowser_SOURCES
AccessibilityDelegate.cpp
MiniBrowserWebHost.cpp
PrintWebUIDelegate.cpp
ResourceLoadDelegate.cpp
WebDownloadDelegate.cpp
WebKitLegacyBrowserWindow.cpp
)
list(APPEND MiniBrowser_LIBRARIES
WebKitLegacy
WebKitLegacyGUID
)
endif ()
if (ENABLE_WEBKIT)
add_definitions(-DENABLE_WEBKIT)
list(APPEND MiniBrowser_INCLUDE_DIRECTORIES
${WebKit_FRAMEWORK_HEADERS_DIR}
${WebKit_PRIVATE_FRAMEWORK_HEADERS_DIR}
)
list(APPEND MiniBrowser_SOURCES
WebKitBrowserWindow.cpp
)
list(APPEND MiniBrowser_LIBRARIES
WebKit
)
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)