mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:17: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
74
Meta/gn/secondary/Userland/Libraries/LibSQL/BUILD.gn
Normal file
74
Meta/gn/secondary/Userland/Libraries/LibSQL/BUILD.gn
Normal file
|
@ -0,0 +1,74 @@
|
|||
import("//Meta/gn/build/compiled_action.gni")
|
||||
|
||||
compiled_action("SQLClientEndpoint") {
|
||||
tool = "//Meta/Lagom/Tools/CodeGenerators/IPCCompiler"
|
||||
inputs = [ "//Userland/Services/SQLServer/SQLClient.ipc" ]
|
||||
outputs = [ "$root_gen_dir/SQLServer/SQLClientEndpoint.h" ]
|
||||
args = [
|
||||
rebase_path(inputs[0], root_build_dir),
|
||||
"-o",
|
||||
rebase_path(outputs[0], root_build_dir),
|
||||
]
|
||||
}
|
||||
|
||||
compiled_action("SQLServerEndpoint") {
|
||||
tool = "//Meta/Lagom/Tools/CodeGenerators/IPCCompiler"
|
||||
inputs = [ "//Userland/Services/SQLServer/SQLServer.ipc" ]
|
||||
outputs = [ "$root_gen_dir/SQLServer/SQLServerEndpoint.h" ]
|
||||
args = [
|
||||
rebase_path(inputs[0], root_build_dir),
|
||||
"-o",
|
||||
rebase_path(outputs[0], root_build_dir),
|
||||
]
|
||||
}
|
||||
|
||||
shared_library("LibSQL") {
|
||||
output_name = "sql"
|
||||
include_dirs = [
|
||||
"//Userland/Libraries",
|
||||
"//Userland",
|
||||
]
|
||||
sources = [
|
||||
"AST/CreateSchema.cpp",
|
||||
"AST/CreateTable.cpp",
|
||||
"AST/Delete.cpp",
|
||||
"AST/Describe.cpp",
|
||||
"AST/Expression.cpp",
|
||||
"AST/Insert.cpp",
|
||||
"AST/Lexer.cpp",
|
||||
"AST/Parser.cpp",
|
||||
"AST/Select.cpp",
|
||||
"AST/Statement.cpp",
|
||||
"AST/SyntaxHighlighter.cpp",
|
||||
"AST/Token.cpp",
|
||||
"AST/Update.cpp",
|
||||
"BTree.cpp",
|
||||
"BTreeIterator.cpp",
|
||||
"Database.cpp",
|
||||
"HashIndex.cpp",
|
||||
"Heap.cpp",
|
||||
"Index.cpp",
|
||||
"Key.cpp",
|
||||
"Meta.cpp",
|
||||
"Result.cpp",
|
||||
"ResultSet.cpp",
|
||||
"Row.cpp",
|
||||
"SQLClient.cpp",
|
||||
"Serializer.cpp",
|
||||
"TreeNode.cpp",
|
||||
"Tuple.cpp",
|
||||
"Value.cpp",
|
||||
]
|
||||
sources += get_target_outputs(":SQLClientEndpoint") +
|
||||
get_target_outputs(":SQLServerEndpoint")
|
||||
deps = [
|
||||
":SQLClientEndpoint",
|
||||
":SQLServerEndpoint",
|
||||
"//AK",
|
||||
"//Userland/Libraries/LibCore",
|
||||
"//Userland/Libraries/LibFileSystem",
|
||||
"//Userland/Libraries/LibIPC",
|
||||
"//Userland/Libraries/LibRegex",
|
||||
"//Userland/Libraries/LibSyntax",
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue