playwright/browser_patches/deprecated-webkit-mac-10.14/embedder/Playwright/win/CMakeLists.txt
Andrey Lushnikov e64f66685a
devops: fork webkit into a separate browser (#5834)
Official WebKit no longer supports Mac 10.14. However, since
this system is still very much in use, we want to be able to
keep it running for a while.

This patch adds a new browser that we would compile and maintain
specifically for Mac 10.14: `deprecated-webkit-mac-10.14`. This
browser is a clone of Webkit r1443 that is the last known revision
to compile on Mac 10.14.

As we move on, we're free to modify this browser however we want,
backporting important patches.

References #5833
2021-03-16 01:08:21 -07:00

42 lines
938 B
CMake

set(Playwright_PRIVATE_INCLUDE_DIRECTORIES
${CMAKE_BINARY_DIR}
${WebCore_PRIVATE_FRAMEWORK_HEADERS_DIR}
)
set(Playwright_SOURCES
Common.cpp
MainWindow.cpp
PlaywrightLib.rc
WebKitBrowserWindow.cpp
WinMain.cpp
stdafx.cpp
)
set(Playwright_PRIVATE_DEFINITIONS _UNICODE)
set(Playwright_PRIVATE_LIBRARIES
WebKit::WTF
comctl32
shlwapi
user32
)
list(APPEND Playwright_PRIVATE_DEFINITIONS ENABLE_WEBKIT)
list(APPEND Playwright_SOURCES
WebKitBrowserWindow.cpp
)
list(APPEND Playwright_PRIVATE_LIBRARIES
WebKit::WebKit
)
WEBKIT_EXECUTABLE_DECLARE(Playwright)
WEBKIT_WRAP_EXECUTABLE(Playwright
SOURCES ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp Playwright.rc
LIBRARIES shlwapi
)
WEBKIT_EXECUTABLE(Playwright)
set_target_properties(Playwright PROPERTIES WIN32_EXECUTABLE ON)
if (${WTF_PLATFORM_WIN_CAIRO})
target_compile_definitions(Playwright PRIVATE WIN_CAIRO)
endif ()