blob: 21962440400fd8cd897f38edf95a8ee46291aa0b [file] [log] [blame]
include(platform/Cairo.cmake)
include(platform/Curl.cmake)
include(platform/ImageDecoders.cmake)
include(platform/OpenSSL.cmake)
include(platform/TextureMapper.cmake)
if (USE_DAWN)
include(platform/Dawn.cmake)
endif ()
list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES
"${WEBKIT_LIBRARIES_DIR}/include"
"${WEBCORE_DIR}/loader/archive/cf"
"${WEBCORE_DIR}/platform/cf"
"${WEBCORE_DIR}/platform/graphics/wc"
)
list(APPEND WebCore_SOURCES
page/win/FrameCairoWin.cpp
page/win/ResourceUsageOverlayWin.cpp
page/win/ResourceUsageThreadWin.cpp
platform/graphics/GLContext.cpp
platform/graphics/PlatformDisplay.cpp
platform/graphics/harfbuzz/DrawGlyphsRecorderHarfBuzz.cpp
platform/graphics/win/FontCustomPlatformDataCairo.cpp
platform/graphics/win/FontPlatformDataCairoWin.cpp
platform/graphics/win/GlyphPageTreeNodeCairoWin.cpp
platform/graphics/win/GraphicsContextCairoWin.cpp
platform/graphics/win/ImageCairoWin.cpp
platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp
platform/graphics/win/PlatformDisplayWin.cpp
platform/graphics/win/SimpleFontDataCairoWin.cpp
platform/network/win/CurlSSLHandleWin.cpp
platform/text/win/LocaleWin.cpp
platform/win/DelayLoadedModulesEnumerator.cpp
platform/win/DragImageCairoWin.cpp
platform/win/ImportedFunctionsEnumerator.cpp
platform/win/ImportedModulesEnumerator.cpp
platform/win/PEImage.cpp
)
list(APPEND WebCore_PRIVATE_FRAMEWORK_HEADERS
platform/graphics/wc/WCPlatformLayer.h
)
list(APPEND WebCore_LIBRARIES
comctl32
crypt32
delayimp
iphlpapi
rpcrt4
shlwapi
usp10
version
winmm
ws2_32
)
# Define a INTERFACE library for MediaFoundation and link it
# explicitly with direct WebCore consumers because /DELAYLOAD causes
# linker warnings for modules not using MediaFoundation.
# LINK : warning LNK4199: /DELAYLOAD:mf.dll ignored; no imports found from mf.dll
add_library(MediaFoundation INTERFACE)
target_link_libraries(MediaFoundation INTERFACE
d3d9
dxva2
evr
mf
mfplat
)
target_link_options(MediaFoundation INTERFACE
/DELAYLOAD:d3d9.dll
/DELAYLOAD:dxva2.dll
/DELAYLOAD:evr.dll
/DELAYLOAD:mf.dll
/DELAYLOAD:mfplat.dll
)
if (USE_WOFF2)
# The WOFF2 libraries don't compile as DLLs on Windows, so add in
# the additional libraries WOFF2::dec requires
list(APPEND WebCore_LIBRARIES
WOFF2::common
brotlidec
)
endif ()
list(APPEND WebCoreTestSupport_LIBRARIES
Cairo::Cairo
shlwapi
)