mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibWebView+Services+UI: Move the Web plugins to LibWebView
This commit is contained in:
parent
9e1f001ffe
commit
a14937c45e
Notes:
github-actions[bot]
2024-11-11 12:36:47 +00:00
Author: https://github.com/trflynn89
Commit: a14937c45e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2269
9 changed files with 22 additions and 34 deletions
|
@ -1,7 +1,4 @@
|
|||
include(fontconfig)
|
||||
|
||||
set(WEBWORKER_SOURCES
|
||||
${LADYBIRD_SOURCE_DIR}/UI/FontPlugin.cpp
|
||||
${LADYBIRD_SOURCE_DIR}/UI/HelperProcess.cpp
|
||||
${LADYBIRD_SOURCE_DIR}/UI/Utilities.cpp
|
||||
ConnectionFromClient.cpp
|
||||
|
@ -20,10 +17,6 @@ target_include_directories(webworkerservice PRIVATE ${LADYBIRD_SOURCE_DIR}/Servi
|
|||
|
||||
target_link_libraries(webworkerservice PUBLIC LibCore LibFileSystem LibGfx LibIPC LibJS LibRequests LibWeb LibWebView LibUnicode LibImageDecoderClient LibMain LibURL)
|
||||
|
||||
if (HAS_FONTCONFIG)
|
||||
target_link_libraries(webworkerservice PRIVATE Fontconfig::Fontconfig)
|
||||
endif()
|
||||
|
||||
if (ENABLE_QT)
|
||||
qt_add_executable(WebWorker main.cpp)
|
||||
target_link_libraries(WebWorker PRIVATE webworkerservice LibWebSocket)
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <LibWeb/Platform/EventLoopPlugin.h>
|
||||
#include <LibWeb/Platform/EventLoopPluginSerenity.h>
|
||||
#include <LibWeb/WebSockets/WebSocket.h>
|
||||
#include <UI/FontPlugin.h>
|
||||
#include <LibWebView/Plugins/FontPlugin.h>
|
||||
#include <UI/HelperProcess.h>
|
||||
#include <UI/Utilities.h>
|
||||
#include <WebWorker/ConnectionFromClient.h>
|
||||
|
@ -60,7 +60,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
Web::Platform::EventLoopPlugin::install(*new Web::Platform::EventLoopPluginSerenity);
|
||||
|
||||
Web::Platform::FontPlugin::install(*new Ladybird::FontPlugin(false));
|
||||
Web::Platform::FontPlugin::install(*new WebView::FontPlugin(false));
|
||||
|
||||
TRY(Web::Bindings::initialize_main_thread_vm(Web::HTML::EventLoop::Type::Worker));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue