Meta: Hide WebView behind ENABLE_LAGOM_LIBWEB CMake option

If ENABLE_LAGOM_LIBWEB is OFF, this will fail to build.
This commit is contained in:
Timothy Flynn 2022-10-06 08:09:45 -04:00 committed by Andreas Kling
parent 8a37badc42
commit e8410bc2ee
Notes: sideshowbarker 2024-07-17 06:19:50 +09:00

View file

@ -585,11 +585,13 @@ if (BUILD_LAGOM)
)
# WebView
list(APPEND LIBWEBVIEW_SOURCES "../../Userland/Libraries/LibWebView/DOMTreeModel.cpp")
list(APPEND LIBWEBVIEW_SOURCES "../../Userland/Libraries/LibWebView/WebContentClient.cpp")
lagom_lib(WebView webview
SOURCES ${LIBWEBVIEW_SOURCES}
LIBS LibGUI LibWeb)
if (ENABLE_LAGOM_LIBWEB)
list(APPEND LIBWEBVIEW_SOURCES "../../Userland/Libraries/LibWebView/DOMTreeModel.cpp")
list(APPEND LIBWEBVIEW_SOURCES "../../Userland/Libraries/LibWebView/WebContentClient.cpp")
lagom_lib(WebView webview
SOURCES ${LIBWEBVIEW_SOURCES}
LIBS LibGUI LibWeb)
endif()
# x86
# FIXME: Excluding arm64 is a temporary hack to circumvent a build problem