1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:57:35 +00:00

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

View file

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