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:
parent
8a37badc42
commit
e8410bc2ee
Notes:
sideshowbarker
2024-07-17 06:19:50 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/e8410bc2ee Pull-request: https://github.com/SerenityOS/serenity/pull/15489
1 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue