mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 09:25:11 +00:00

This ports the following commits:f76c614a84
ddbe6bd7b4
2eaa528a0e
1b40bf9783
9f6ceff7cf
52d6df5ee5
9e22f01eba
bf4e2f3e9c
da2cd73bcf
73 lines
1.8 KiB
Text
73 lines
1.8 KiB
Text
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",
|
|
"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",
|
|
]
|
|
}
|