From e8410bc2eed857b1ed305d1a5ee2f984cf17f0a9 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Thu, 6 Oct 2022 08:09:45 -0400 Subject: [PATCH] Meta: Hide WebView behind ENABLE_LAGOM_LIBWEB CMake option If ENABLE_LAGOM_LIBWEB is OFF, this will fail to build. --- Meta/Lagom/CMakeLists.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index 3758456b12..cfcc434687 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -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