mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:57:35 +00:00
Meta: Add gn rules for dependencies of LibWeb
There's a lot of them, and LibWeb is a massive set of files to build as well, so let's add these first :^).
This commit is contained in:
parent
13a5606cdc
commit
7b3d0fb002
15 changed files with 427 additions and 0 deletions
76
Meta/gn/secondary/Userland/Libraries/LibWebView/BUILD.gn
Normal file
76
Meta/gn/secondary/Userland/Libraries/LibWebView/BUILD.gn
Normal file
|
@ -0,0 +1,76 @@
|
|||
import("//Meta/gn/build/compiled_action.gni")
|
||||
|
||||
compiled_action("WebContentClientEndpoint") {
|
||||
tool = "//Meta/Lagom/Tools/CodeGenerators/IPCCompiler"
|
||||
inputs = [ "//Userland/Services/WebContent/WebContentClient.ipc" ]
|
||||
outputs = [ "$root_gen_dir/WebContent/WebContentClientEndpoint.h" ]
|
||||
args = [
|
||||
rebase_path(inputs[0], root_build_dir),
|
||||
"-o",
|
||||
rebase_path(outputs[0], root_build_dir),
|
||||
]
|
||||
}
|
||||
|
||||
compiled_action("WebContentServerEndpoint") {
|
||||
tool = "//Meta/Lagom/Tools/CodeGenerators/IPCCompiler"
|
||||
inputs = [ "//Userland/Services/WebContent/WebContentServer.ipc" ]
|
||||
outputs = [ "$root_gen_dir/WebContent/WebContentServerEndpoint.h" ]
|
||||
args = [
|
||||
rebase_path(inputs[0], root_build_dir),
|
||||
"-o",
|
||||
rebase_path(outputs[0], root_build_dir),
|
||||
]
|
||||
}
|
||||
|
||||
compiled_action("WebDriverClientEndpoint") {
|
||||
tool = "//Meta/Lagom/Tools/CodeGenerators/IPCCompiler"
|
||||
inputs = [ "//Userland/Services/WebContent/WebDriverClient.ipc" ]
|
||||
outputs = [ "$root_gen_dir/WebContent/WebDriverClientEndpoint.h" ]
|
||||
args = [
|
||||
rebase_path(inputs[0], root_build_dir),
|
||||
"-o",
|
||||
rebase_path(outputs[0], root_build_dir),
|
||||
]
|
||||
}
|
||||
|
||||
compiled_action("WebDriverServerEndpoint") {
|
||||
tool = "//Meta/Lagom/Tools/CodeGenerators/IPCCompiler"
|
||||
inputs = [ "//Userland/Services/WebContent/WebDriverServer.ipc" ]
|
||||
outputs = [ "$root_gen_dir/WebContent/WebDriverServerEndpoint.h" ]
|
||||
args = [
|
||||
rebase_path(inputs[0], root_build_dir),
|
||||
"-o",
|
||||
rebase_path(outputs[0], root_build_dir),
|
||||
]
|
||||
}
|
||||
|
||||
shared_library("LibWebView") {
|
||||
output_name = "webview"
|
||||
include_dirs = [
|
||||
"//Userland/Libraries",
|
||||
"//Userland",
|
||||
]
|
||||
deps = [
|
||||
":WebContentClientEndpoint",
|
||||
":WebContentServerEndpoint",
|
||||
":WebDriverClientEndpoint",
|
||||
":WebDriverServerEndpoint",
|
||||
"//AK",
|
||||
"//Userland/Libraries/LibCore",
|
||||
"//Userland/Libraries/LibGUI",
|
||||
"//Userland/Libraries/LibGfx",
|
||||
"//Userland/Libraries/LibIPC",
|
||||
"//Userland/Libraries/LibWeb",
|
||||
]
|
||||
sources = [
|
||||
"AccessibilityTreeModel.cpp",
|
||||
"DOMTreeModel.cpp",
|
||||
"StylePropertiesModel.cpp",
|
||||
"ViewImplementation.cpp",
|
||||
"WebContentClient.cpp",
|
||||
]
|
||||
sources += get_target_outputs(":WebContentClientEndpoint") +
|
||||
get_target_outputs(":WebContentServerEndpoint") +
|
||||
get_target_outputs(":WebDriverClientEndpoint") +
|
||||
get_target_outputs(":WebDriverServerEndpoint")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue