[Win] Rename 'WinLauncher' to 'MiniBrowser'
[WebKit-https.git] / Tools / MiniBrowser / win / CMakeLists.txt
1 set(MiniBrowser_INCLUDE_DIRECTORIES
2     MiniBrowser.vcxproj
3     "${DERIVED_SOURCES_DIR}/ForwardingHeaders"
4     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKit"
5     "${DERIVED_SOURCES_DIR}"
6     "${DERIVED_SOURCES_WEBKIT_DIR}/Interfaces"
7     "${WTF_DIR}"
8     "${CMAKE_SOURCE_DIR}"
9     "${CMAKE_SOURCE_DIR}/Source"
10 )
11
12 set(MiniBrowser_SOURCES
13     AccessibilityDelegate.cpp
14     DOMDefaultImpl.cpp
15     PageLoadTestClient.cpp
16     PrintWebUIDelegate.cpp
17     ResourceLoadDelegate.cpp
18     WebDownloadDelegate.cpp
19     MiniBrowser.cpp
20     MiniBrowserWebHost.cpp
21     WinMain.cpp
22     stdafx.cpp
23
24     MiniBrowser.vcxproj/MiniBrowserLib.rc
25 )
26
27 set(MiniBrowser_LIBRARIES
28     DbgHelp
29     WTF
30     WebKit
31     WebKitGUID
32     comctl32
33     comsupp
34     comsuppw
35     shlwapi
36 )
37
38 if (WTF_PLATFORM_WIN_CAIRO)
39     list(APPEND MiniBrowser_LIBRARIES
40         CFLite
41     )
42 else ()
43     list(APPEND MiniBrowser_LIBRARIES
44         CoreFoundation
45     )
46 endif ()
47
48 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /NODEFAULTLIB:MSVCRT /NODEFAULTLIB:MSVCRTD")
49 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ENTRY:wWinMainCRTStartup")
50
51 if (${WTF_PLATFORM_WIN_CAIRO})
52     add_definitions(-DWIN_CAIRO)
53 endif ()
54 add_definitions(-D_UNICODE)
55 include_directories(${MiniBrowser_INCLUDE_DIRECTORIES})
56 add_library(MiniBrowserLib SHARED ${MiniBrowser_SOURCES})
57 target_link_libraries(MiniBrowserLib ${MiniBrowser_LIBRARIES})
58 set_target_properties(MiniBrowserLib PROPERTIES FOLDER "Tools")
59 set_target_properties(MiniBrowserLib PROPERTIES OUTPUT_NAME "MiniBrowser")
60
61 add_executable(MiniBrowser WIN32 ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp MiniBrowser.vcxproj/MiniBrowser.rc)
62 target_link_libraries(MiniBrowser shlwapi)
63 set_target_properties(MiniBrowser PROPERTIES FOLDER "Tools")
64 set_target_properties(MiniBrowser PROPERTIES OUTPUT_NAME "MiniBrowser")