forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlatformWin.cmake
78 lines (60 loc) · 1.56 KB
/
PlatformWin.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
set(TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
set(test_main_SOURCES
win/main.cpp
)
# TestWTF
list(APPEND TestWTF_SOURCES
${test_main_SOURCES}
)
# TestWebCore
list(APPEND TestWebCore_SOURCES
${test_main_SOURCES}
Tests/WebCore/CryptoDigest.cpp
Tests/WebCore/curl/Cookies.cpp
Tests/WebCore/curl/CurlMultipartHandleTests.cpp
Tests/WebCore/curl/OpenSSLHelperTests.cpp
Tests/WebCore/win/BitmapImage.cpp
Tests/WebCore/win/DIBPixelData.cpp
Tests/WebCore/win/LinkedFonts.cpp
Tests/WebCore/win/WebCoreBundle.cpp
win/TestWebCoreStubs.cpp
)
list(APPEND TestWebCore_LIBRARIES
Crypt32
D2d1
Dwrite
Iphlpapi
Psapi
Shlwapi
Usp10
WindowsCodecs
dxguid
)
target_compile_definitions(TestWebCore PRIVATE ${wrapper_DEFINITIONS})
# TestWebKitLegacy
if (ENABLE_WEBKIT_LEGACY)
list(APPEND TestWebKitLegacy_SOURCES
${test_main_SOURCES}
Tests/WebKitLegacy/win/ScaleWebView.cpp
Tests/WebKitLegacy/win/WebViewDestruction.cpp
win/HostWindow.cpp
)
list(APPEND TestWebKitLegacy_LIBRARIES
WebKit::WTF
)
list(APPEND TestWebKitLegacy_PRIVATE_INCLUDE_DIRECTORIES
${TESTWEBKITAPI_DIR}/win
)
endif ()
# TestWebKit
if (ENABLE_WEBKIT)
target_sources(TestWebKitAPIInjectedBundle PRIVATE
win/PlatformUtilitiesWin.cpp
)
list(APPEND TestWebKit_SOURCES
${test_main_SOURCES}
Tests/WebKit/CookieStorageFile.cpp
win/PlatformUtilitiesWin.cpp
win/PlatformWebViewWin.cpp
)
endif ()