mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:37:47 +00:00
Ladybird: Move Qt-specific classes and functions to a Qt subdirectory
This will help a lot with developing chromes for different UI frameworks where we can see which helper classes and processes are really using Qt vs just using it to get at helper data. As a bonus, remove Qt dependency from WebDriver.
This commit is contained in:
parent
ccaa423372
commit
391beef707
53 changed files with 160 additions and 157 deletions
|
@ -12,20 +12,20 @@ group("ladybird") {
|
|||
|
||||
moc_qt_objects("generate_moc") {
|
||||
sources = [
|
||||
"BrowserWindow.h",
|
||||
"ConsoleWidget.h",
|
||||
"EventLoopImplementationQtEventTarget.h",
|
||||
"InspectorWidget.h",
|
||||
"LocationEdit.h",
|
||||
"ModelTranslator.h",
|
||||
"SettingsDialog.h",
|
||||
"Tab.h",
|
||||
"WebContentView.h",
|
||||
"Qt/BrowserWindow.h",
|
||||
"Qt/ConsoleWidget.h",
|
||||
"Qt/EventLoopImplementationQtEventTarget.h",
|
||||
"Qt/InspectorWidget.h",
|
||||
"Qt/LocationEdit.h",
|
||||
"Qt/ModelTranslator.h",
|
||||
"Qt/SettingsDialog.h",
|
||||
"Qt/Tab.h",
|
||||
"Qt/WebContentView.h",
|
||||
]
|
||||
}
|
||||
|
||||
compile_qt_resource_file("compile_resource_file") {
|
||||
sources = [ "ladybird.qrc" ]
|
||||
sources = [ "Qt/ladybird.qrc" ]
|
||||
}
|
||||
|
||||
link_qt("ladybird_qt_components") {
|
||||
|
@ -79,21 +79,22 @@ executable("ladybird_executable") {
|
|||
"//Userland/Applications/Browser/CookieJar.cpp",
|
||||
"//Userland/Applications/Browser/Database.cpp",
|
||||
"//Userland/Applications/Browser/History.cpp",
|
||||
"BrowserWindow.cpp",
|
||||
"ConsoleWidget.cpp",
|
||||
"EventLoopImplementationQt.cpp",
|
||||
"EventLoopImplementationQtEventTarget.cpp",
|
||||
"HelperProcess.cpp",
|
||||
"InspectorWidget.cpp",
|
||||
"LocationEdit.cpp",
|
||||
"ModelTranslator.cpp",
|
||||
"Settings.cpp",
|
||||
"SettingsDialog.cpp",
|
||||
"TVGIconEngine.cpp",
|
||||
"Tab.cpp",
|
||||
"Qt/BrowserWindow.cpp",
|
||||
"Qt/ConsoleWidget.cpp",
|
||||
"Qt/EventLoopImplementationQt.cpp",
|
||||
"Qt/EventLoopImplementationQtEventTarget.cpp",
|
||||
"Qt/InspectorWidget.cpp",
|
||||
"Qt/LocationEdit.cpp",
|
||||
"Qt/ModelTranslator.cpp",
|
||||
"Qt/Settings.cpp",
|
||||
"Qt/SettingsDialog.cpp",
|
||||
"Qt/StringUtils.cpp",
|
||||
"Qt/TVGIconEngine.cpp",
|
||||
"Qt/Tab.cpp",
|
||||
"Qt/WebContentView.cpp",
|
||||
"Qt/main.cpp",
|
||||
"Utilities.cpp",
|
||||
"WebContentView.cpp",
|
||||
"main.cpp",
|
||||
]
|
||||
sources += get_target_outputs(":generate_moc") +
|
||||
get_target_outputs(":compile_resource_file")
|
||||
|
@ -103,16 +104,9 @@ executable("ladybird_executable") {
|
|||
output_name = "ladybird"
|
||||
}
|
||||
|
||||
link_qt("headless_browser_qt") {
|
||||
qt_components = [ "Core" ]
|
||||
}
|
||||
|
||||
executable("headless-browser") {
|
||||
include_dirs = [ "//Userland/Services" ]
|
||||
configs += [
|
||||
":ladybird_config",
|
||||
":headless_browser_qt",
|
||||
]
|
||||
configs += [ ":ladybird_config" ]
|
||||
deps = [
|
||||
"//Userland/Libraries/LibCore",
|
||||
"//Userland/Libraries/LibCrypto",
|
||||
|
|
|
@ -4,10 +4,10 @@ import("//Meta/gn/build/libs/pulse/enable.gni")
|
|||
|
||||
moc_qt_objects("generate_moc") {
|
||||
sources = [
|
||||
"//Ladybird/AudioCodecPluginQt.h",
|
||||
"//Ladybird/AudioThread.h",
|
||||
"//Ladybird/EventLoopImplementationQtEventTarget.h",
|
||||
"//Ladybird/RequestManagerQt.h",
|
||||
"//Ladybird/Qt/AudioCodecPluginQt.h",
|
||||
"//Ladybird/Qt/AudioThread.h",
|
||||
"//Ladybird/Qt/EventLoopImplementationQtEventTarget.h",
|
||||
"//Ladybird/Qt/RequestManagerQt.h",
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -48,18 +48,19 @@ executable("WebContent") {
|
|||
"//Userland/Libraries/LibWebView:WebDriverServerEndpoint",
|
||||
]
|
||||
sources = [
|
||||
"../AudioCodecPluginQt.cpp",
|
||||
"../AudioThread.cpp",
|
||||
"../EventLoopImplementationQt.cpp",
|
||||
"../EventLoopImplementationQtEventTarget.cpp",
|
||||
"../FontPlugin.cpp",
|
||||
"../HelperProcess.cpp",
|
||||
"../ImageCodecPlugin.cpp",
|
||||
"../RequestManagerQt.cpp",
|
||||
"../Utilities.cpp",
|
||||
"../WebSocketClientManagerQt.cpp",
|
||||
"../WebSocketImplQt.cpp",
|
||||
"../WebSocketQt.cpp",
|
||||
"//Ladybird/FontPlugin.cpp",
|
||||
"//Ladybird/HelperProcess.cpp",
|
||||
"//Ladybird/ImageCodecPlugin.cpp",
|
||||
"//Ladybird/Qt/AudioCodecPluginQt.cpp",
|
||||
"//Ladybird/Qt/AudioThread.cpp",
|
||||
"//Ladybird/Qt/EventLoopImplementationQt.cpp",
|
||||
"//Ladybird/Qt/EventLoopImplementationQtEventTarget.cpp",
|
||||
"//Ladybird/Qt/RequestManagerQt.cpp",
|
||||
"//Ladybird/Qt/StringUtils.cpp",
|
||||
"//Ladybird/Qt/WebSocketClientManagerQt.cpp",
|
||||
"//Ladybird/Qt/WebSocketImplQt.cpp",
|
||||
"//Ladybird/Qt/WebSocketQt.cpp",
|
||||
"//Ladybird/Utilities.cpp",
|
||||
"//Userland/Services/WebContent/ConnectionFromClient.cpp",
|
||||
"//Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp",
|
||||
"//Userland/Services/WebContent/PageHost.cpp",
|
||||
|
|
|
@ -1,17 +1,7 @@
|
|||
import("//Ladybird/link_qt.gni")
|
||||
|
||||
link_qt("WebDriver_qt") {
|
||||
qt_components = [
|
||||
"Core",
|
||||
"Network",
|
||||
]
|
||||
}
|
||||
|
||||
executable("WebDriver") {
|
||||
configs += [
|
||||
"//Ladybird:ladybird_config",
|
||||
":WebDriver_qt",
|
||||
]
|
||||
configs += [ "//Ladybird:ladybird_config" ]
|
||||
include_dirs = [
|
||||
"//Userland/Services",
|
||||
"//Ladybird",
|
||||
|
@ -31,7 +21,7 @@ executable("WebDriver") {
|
|||
"//Userland/Libraries/LibWebView:WebDriverServerEndpoint",
|
||||
]
|
||||
sources = [
|
||||
"../Utilities.cpp",
|
||||
"//Ladybird/Utilities.cpp",
|
||||
"//Userland/Services/WebDriver/Client.cpp",
|
||||
"//Userland/Services/WebDriver/Session.cpp",
|
||||
"//Userland/Services/WebDriver/WebContentConnection.cpp",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue