[CMake][WinCairo] Use find_package for libpng and libjpeg
[WebKit-https.git] / Source / WebCore / PlatformWinCairo.cmake
1 include(platform/Cairo.cmake)
2 include(platform/Curl.cmake)
3 include(platform/ImageDecoders.cmake)
4 include(platform/TextureMapper.cmake)
5
6 list(APPEND WebCore_INCLUDE_DIRECTORIES
7     "${FORWARDING_HEADERS_DIR}/JavaScriptCore"
8     "${DirectX_INCLUDE_DIRS}"
9     "${WEBKIT_LIBRARIES_DIR}/include"
10     "${WEBCORE_DIR}/loader/archive/cf"
11     "${WEBCORE_DIR}/platform/cf"
12 )
13
14 list(APPEND WebCore_SOURCES
15     page/win/FrameCairoWin.cpp
16
17     platform/graphics/GLContext.cpp
18     platform/graphics/PlatformDisplay.cpp
19
20     platform/graphics/win/FontCustomPlatformDataCairo.cpp
21     platform/graphics/win/FontPlatformDataCairoWin.cpp
22     platform/graphics/win/GlyphPageTreeNodeCairoWin.cpp
23     platform/graphics/win/GraphicsContextCairoWin.cpp
24     platform/graphics/win/ImageCairoWin.cpp
25     platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp
26     platform/graphics/win/SimpleFontDataCairoWin.cpp
27
28     platform/network/NetworkStorageSessionStub.cpp
29
30     platform/text/win/LocaleWin.cpp
31
32     platform/win/DelayLoadedModulesEnumerator.cpp
33     platform/win/DragImageCairoWin.cpp
34     platform/win/ImportedFunctionsEnumerator.cpp
35     platform/win/ImportedModulesEnumerator.cpp
36     platform/win/PEImage.cpp
37 )
38
39 list(APPEND WebCore_LIBRARIES
40     ${DirectX_LIBRARIES}
41     CFLite
42     comctl32
43     crypt32
44     iphlpapi
45     libcurl_imp
46     rpcrt4
47     shlwapi
48     usp10
49     version
50     winmm
51     ws2_32
52 )
53
54 list(APPEND WebCoreTestSupport_LIBRARIES
55     ${CAIRO_LIBRARIES}
56     CFLite
57     shlwapi
58 )
59
60 list(APPEND WebCore_FORWARDING_HEADERS_DIRECTORIES
61     platform/graphics/cairo
62
63     platform/network/curl
64 )